Repository navigation
fix(sidemenu): Issue Credentials button works on Boost a Friend page - #2133
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
🦋 Changeset detectedLatest commit: b64bb4d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
🚨 gitStream Monthly Automation Limit Reached 🚨 Your organization has exceeded the number of pull requests allowed for automation with gitStream. To continue automating your PR workflows and unlock additional features, please contact LinearB. |
|
To enable Code Reviewer, link your GitHub account to your Atlassian account. This is a one-time task that takes less than a minute. Once your account is linked, resubmit the pull request to trigger a code review. |
|
👋 Hey there! It looks like you modified code, but didn't update the documentation in If this PR introduces new features, changes APIs, or modifies behavior that users or developers need to know about, please consider updating the docs. 🏄 Windsurf TipYou can ask Windsurf to help:
Windsurf will review your changes and suggest appropriate documentation updates based on what was modified. 📚 Documentation Guide
This is an automated reminder. If no docs are needed, feel free to ignore this message. |
Custard7
left a comment
There was a problem hiding this comment.
The path-segment check fixes /boost-a-friend without changing the guard on the registered composer routes (/boost and /boost/update). The network gate and recovery flow are unchanged. The component tests cover both navigation and no-op cases, and the exact-head app test target, Mock E2E, and LearnCard Verification passed. The standalone E2E run checked eligibility only, so the signed-in sidebar click is still a useful staging smoke test. No blocking findings.
|
Before/after Loom walkthrough: https://www.loom.com/share/a568ed09ff9a4a3c97de49dac277fd18 (~1:14, local Vite build against staging as demo user)
|
What is this?
The Issue Credentials button at the top of the left nav did nothing on the Boost a Friend page (
/boost-a-friend). Now it opens/issuethere like it does everywhere else.How do I test this?
Setup: run the app locally on this branch, logged in with any test account. No flags or seed data needed.
/boost-a-friend(My Apps → Boost a Friend)./issue)./walletand click it again. It should still open/issue./boostor/boost/update) and click it. It should still do nothing there, same as before.Automated:
bunx vitest run src/components/sidemenu/SideMenu.test.tsxfromapps/learn-card-app.A before/after Loom is still to come.
Full context
Context and goal
SideMenu.handleBoostreturns early whenlocation.pathname.includes('/boost'). That guard is from the Nov 2025 migration and keeps the button from abandoning an in-progress boost in the Boost CMS. Boost a Friend (/boost-a-friend, added later) also contains/boost, so the click got swallowed before the LCN gate or the navigation ever ran. Nothing was disabled and the button looked normal. It just returned.I narrowed the guard to the actual CMS routes (
/boostand/boost/*) and left everything else alone.Verification
SideMenu.test.tsxclicks the button on/boost-a-friend,/wallet,/boostand/boost/update. WithSideMenu.tsxfrom main, the/boost-a-friendcase fails (nopush('/issue')) and the other three pass. With this change, all 4 pass.src/components/sidemenutests: 12/12 pass. ESLint has no errors on the touched files (the 2 warnings were already there).tscreports no new errors in them.Changeset
learn-card-apppatch.— Grok Bot
Proof — head b64bb4d · 2026-11-23T22:17:29.640Z
Head at publication time; lc verify reports do not record the tested commit. Confirm the run matches this head.
Run result: passed
Note: Published by CI from LearnCard Verification run https://github.com/learningeconomy/LearnCard/actions/runs/45272513006