Repository navigation
[SETUP] Proof of concept - #2
Merged
Merged
Conversation
…graph - pre-commit: lint-staged (eslint --fix, prettier) then regenerates kb/assets/dependency-graph.svg - commit-msg: commitlint enforcing kb/commit_guidelines.md types - pnpm scripts: lint:fix, format, format:check, typecheck, graph - setup guide switched to pnpm and the org repo; graph shown in README
Prepares the repo for the planned layout (apps/, services/, packages/). Repo-wide tooling (prettier, husky, lint-staged, commitlint, graph) stays at the root; the site and its eslint/vite/tsconfig move to apps/web. Root pnpm scripts forward to the web app.
The website no longer reads or writes Supabase tables, storage or edge functions directly. A Spring Boot API (apps/api) is now the only thing that touches data. The browser keeps Supabase only for logging in. - Every request is checked against the Supabase JWT and the caller's role in the database; anything not explicitly allowed is denied - RSVP, payment, upload and audit-restore rules are enforced on the server - Bank transfer screenshots are stored under random names and only streamed to admins - Public admin sign-up is removed in favour of invitations - Migrations close the leaked data, add the api_app role, and revoke browser access to every table - Docker Compose runs Postgres, migrations, fake seed data and the API locally
Brings in the apps/web move, pnpm workspace, prettier, eslint, commitlint and dependency graph tooling. Conflicts resolved by keeping the Java API data layer from 2034f20 (signup.ts and AdminSignup.tsx stay deleted) and pointing firebase hosting at apps/web/dist.
Ports Gh05stt/devsuoa#155 and #156 (2b1c066, 84d07c9) into apps/web: per-year exec photos under public/team/execs/<year>/, team.json, teamController and the year-selectable Team page.
Creates the event-images, event-payments and Links buckets with production's settings (skipped where Supabase Storage isn't installed), and restores production's on_auth_user_created trigger, which the baseline missed because it lives on auth.users.
npm run dev now brings up the Docker database and API before Vite. dev:web runs the website alone and dev:stop stops the containers. Also ignores personal .claude/ settings.
on_auth_user_created now makes a plain 'user' profile for every seeded auth user, so the seed's do-nothing insert left nobody an admin and the API's admin tests got 403s. Update the existing rows instead.
Collaborator
Author
|
This is a working backup of the java api. It may be used for reference if you find it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this:
