Repository navigation
feat(frontend): help center at /help - #412
Merged
Merged
Conversation
lambda-auth depends on @branch/rbac and every lambda depends on @branch/store, but the Dockerfiles never copied or built either, so `make up` failed with "Cannot find module '@branch/rbac'". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
resolveBaseUrl split on '/' only, so '/expenditures?page=1' looked up service 'expenditures?page=1', missed, and fell back to the auth port. Local dev only; production sets NEXT_PUBLIC_API_BASE_URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Short numbered how-to guides with annotated screenshots, one page per guide, prerendered into the static export. /help is a new 'open' route class: readable signed in or out, and rendered outside the Chakra/Auth shell so the prerendered HTML hydrates cleanly. Linked from the sidebar and the login page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sections now follow the app's areas (Accounts, Expenses, Projects, Donors & donations, Reports) with an Admins tag on admin-only guides. Each guide can carry short product rules, e.g. only approved expenses count toward spending. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
Adds a help center at
/help(served atbranchaccounting.org/helponce deployed): 11 short, numbered how-to guides, with screenshots that have a red box around each click target.[Expenses](/expenses)inguides.ts).How
openroute class inlib/routes.tsfor/help/**, readable signed in or out.AuthGatelets it through.providers.tsxrenders open routes outside the Chakra/Auth shell. The help pages are prerendered with real content, and Chakra's Emotion styles inline into SSR HTML, which caused React hydration error fix(frontend): center the forgot and reset password pages #418.[slug]/page.tsxusesgenerateStaticParams, so every guide is its own static document. The existing CloudFront rewrite already maps/help/xto/help/x/index.html, so no infra change is needed.test/app/HelpGuides.test.tsfails on a missing screenshot, missing alt text, or a link to a page that doesn't exist.Also fixed (separate commits)
shared/rbacorshared/store, somake upfailed withCannot find module '@branch/rbac'.api.ts: local dev routed any path with a query string (e.g./expenditures?page=1) to the auth port. This affects local dev only; production usesNEXT_PUBLIC_API_BASE_URL.Existing bugs found while capturing (not fixed here)
/forgot-passwordcontent is unstyled and stuck flush-left.185.40gives18,540./auth/mfa-statusfails, because one failed call inPromise.allhides everything.docker-compose.ymlpins the network namebranch-network, so a second compose project (e.g. from a worktree) shares DNS with the main stack and itspostgreshost.Checks
tsc --noEmitand eslint are clean.npm run buildexports/helpplus 11 guide pages.🤖 Generated with Claude Code