Skip to content

fix(sidemenu): Issue Credentials button works on Boost a Friend page - #2133

Merged
TaylorBeeston merged 1 commit into
mainfrom
anvil/boost-a-friend-issue-credentials-nav
Nov 24, 2026
Merged

TaylorBeeston merged 1 commit into
mainfrom
anvil/boost-a-friend-issue-credentials-nav

Conversation

@TaylorBeeston

@TaylorBeeston TaylorBeeston commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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 /issue there 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.

  1. Go to /boost-a-friend (My Apps → Boost a Friend).
  2. Click Issue Credentials at the top of the left nav.
    • Before (main): nothing happens and you stay on Boost a Friend.
    • After: you land on the Issue Credentials page (/issue).
  3. Go to /wallet and click it again. It should still open /issue.
  4. Edge case: open the Boost CMS (/boost or /boost/update) and click it. It should still do nothing there, same as before.

Automated: bunx vitest run src/components/sidemenu/SideMenu.test.tsx from apps/learn-card-app.

A before/after Loom is still to come.


Full context

Context and goal

SideMenu.handleBoost returns early when location.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 (/boost and /boost/*) and left everything else alone.

Verification

  • New SideMenu.test.tsx clicks the button on /boost-a-friend, /wallet, /boost and /boost/update. With SideMenu.tsx from main, the /boost-a-friend case fails (no push('/issue')) and the other three pass. With this change, all 4 pass.
  • src/components/sidemenu tests: 12/12 pass. ESLint has no errors on the touched files (the 2 warnings were already there). tsc reports no new errors in them.

Changeset

learn-card-app patch.

— 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

Feature Result Entries Duration
credentials passed 3/3 154.0s
app-store passed 4/4 85.9s
account passed 4/4 163.8s
language passed 3/3 112.6s
sdk passed 6/6 15.9s
cli passed 4/4 2.6s
consent-flow passed 6/6 95.3s
docs passed 3/3 1.6s
sharing passed 5/5 194.9s
contacts passed 4/4 164.4s
sdk-to-app passed 4/4 97.6s
ai-sessions passed 3/3 100.5s

credentials

app-store

account

language

consent-flow

sharing

contacts

sdk-to-app

ai-sessions

Note: Published by CI from LearnCard Verification run https://github.com/learningeconomy/LearnCard/actions/runs/45272513006

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b64bb4d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
learn-card-app Patch

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-cm

gitstream-cm Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

🚨 gitStream Monthly Automation Limit Reached 🚨

Your organization has exceeded the number of pull requests allowed for automation with gitStream.
Monthly PRs automated: 250/250

To continue automating your PR workflows and unlock additional features, please contact LinearB.

@atlassian

atlassian Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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.

@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey there! It looks like you modified code, but didn't update the documentation in /docs.

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 Tip

You can ask Windsurf to help:

"Analyze the changes in this PR and update the gitbook docs in /docs accordingly."

Windsurf will review your changes and suggest appropriate documentation updates based on what was modified.


📚 Documentation Guide
Change Type Doc Location
New feature/API docs/tutorials/ or docs/how-to-guides/
SDK/API changes docs/sdks/
New concepts docs/core-concepts/
App UI/UX flows docs/apps/ (LearnCard App, ScoutPass)
Internal patterns AGENTS.md

This is an automated reminder. If no docs are needed, feel free to ignore this message.

@Custard7 Custard7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@TaylorBeeston
TaylorBeeston added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit b084c62 Nov 24, 2026
47 of 50 checks passed
@TaylorBeeston
TaylorBeeston deleted the anvil/boost-a-friend-issue-credentials-nav branch November 24, 2026 00:00

Copy link
Copy Markdown
Collaborator Author

Before/after Loom walkthrough: https://www.loom.com/share/a568ed09ff9a4a3c97de49dac277fd18 (~1:14, local Vite build against staging as demo user)

  • Before (main 739cd565): on /boost-a-friend, clicking Issue Credentials at the top of the left nav does nothing; URL stays on /boost-a-friend.
  • After (PR fix(sidemenu): Issue Credentials button works on Boost a Friend page #2133 b64bb4d1b): on /boost-a-friend, clicking Issue Credentials navigates directly to /issue ("What are you issuing?").
  • Note: /boost and /boost/update staying a no-op are covered by SideMenu.test.tsx (direct /boost navigation without query params hits an unrelated CategoryImage error screen locally, so it was omitted from the clip).

This branch was previously deployed

1 inactive deployment
ci-tests — b64bb4d1 Deployed Nov 23, 2026 by TaylorBeeston via Test #10622
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants