Repository navigation
feat: added the login/signup pages and dashboard's - #45
Merged
Merged
Conversation
✅ Deploy Preview for zepaui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
… actually runs, not when the module is imported
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.
Component Name
N/A — infrastructure PR. Adds auth, database, dashboards and admin.
Description
Zepa goes from a static registry to an application with accounts.
Clerk for auth (v7, scaffolded with
clerk init), Neon + Drizzle foruser data,
/dashboardand/admin, bookmarks, a code gate, GA4 analytics,and a pre-launch security pass.
Fixes a live production bug: views, likes and installs were writing to
data/component-stats.json— a serverless container's throwaway filesystem.Every one of those events recorded in production was being discarded.
lib/stats/store.tsis deleted; all four counters now persist in Neon.Architecture in
backend.md, failure log indev-journal.md(both gitignored).Added
proxy.ts,/sign-in,/sign-up,<UserButton>popuplib/db/— schema, client,server-onlyqueries/api/bookmarks,/api/webhooks/clerk/dashboard— overview, bookmarks, submissions, settings/admin— overview, component stats, users, submissions, analyticslib/analytics/ga4.ts— Data API via self-signed JWT, no SDKlib/rate-limit.ts, security headers, code gate/componentsChanged
anonymous increment anyone could inflate in a loop
aspect-video→aspect-[1.74]— recordings are ~1280×735, so16:9 had been cropping every preview on the site
NEXT_PUBLIC_GA_MEASUREMENT_IDPreview
Dependencies Added
@clerk/nextjsdrizzle-orm,@neondatabase/serverlessdrizzle-kit(dev)drizzle-ormpinned to 0.45.2 — closes a high SQL-injection advisory.No GA SDK: the Data API is called directly with
node:crypto.Checklist
meta.ts— n/a, no new componentsdemo.tsx— n/anpm run build:registrynpm run lintnpm run test— 23 passingnpm run build— 175 pages, TypeScript passes/componentsgets a drawer belowlgconsole.loggit log --all -Sacross 5 patterns → 0 commitsSecurity
userIdalways fromauth(), never a request body/adminrole checked server-side in layout and every page; unauthorisedgets
notFound(), not 403X-Frame-Options,nosniff,Referrer-Policy,Permissions-Policy, HSTSnpm audit: 16 → 4 (remaining areesbuildindrizzle-kit's dev-only chain;do not run
audit fix --force— it downgrades drizzle-kit and breaksdb:push)Deploy requirements
Netlify env vars — the build fails without
DATABASE_URL(it throws atmodule load):