Skip to content

test(frontend): add Storybook coverage for WorkspaceNav - #438

Merged
seonghobae merged 4 commits into
chore/rename-buyer-terminology-v2from
worktree-fix-buyernav-story
Aug 23, 2026
Merged

test(frontend): add Storybook coverage for WorkspaceNav#438
seonghobae merged 4 commits into
chore/rename-buyer-terminology-v2from
worktree-fix-buyernav-story

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • pnpm --dir frontend run test — 140/140 pass (13 files)
  • pnpm --dir frontend run lint — clean except the 2 known pre-existing App.tsx warnings (unrelated, already fixed on fix: repair frontend build and publish ontology Pages #426)
  • pnpm --dir frontend run build — same 2 known pre-existing App.tsx errors, confirmed present on pristine origin/main too

🤖 Generated with Claude Code


Open in Devin Review

BuyerNav had a test file but no story, the last remaining gap in
frontend/src/components/*.tsx test+story coverage. Adds stories for
each destination plus an edge case with an extra tools slot.
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5409adf4-9835-4856-bd6c-5adda81b81de

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Same shared-ancestor bug as #418/#415/#426/#427/#429/#431/#434/#435/#436/#437:
the login button built an unsanitized returnUrl inline instead of
returnUrlFromLocation()/rememberOidcReturnUrl(), and removed the
unreachable login-screen AdminPanel render (accessToken is always
undefined pre-auth). This PR's own diff doesn't touch AdminPanel.
@seonghobae
seonghobae enabled auto-merge (squash) August 22, 2026 12:52
devin-ai-integration[bot]

This comment was marked as resolved.

Comment thread frontend/src/components/BuyerNav.stories.tsx Outdated
seonghobae added a commit that referenced this pull request Aug 22, 2026
Same shared-ancestor bug as #418/#415/#426/#427/#429/#431/#434/#435/#436/#437/#438:
the login button built an unsanitized returnUrl inline instead of
returnUrlFromLocation()/rememberOidcReturnUrl(), and removed the
unreachable login-screen AdminPanel render.
seonghobae added a commit that referenced this pull request Aug 22, 2026
Same shared-ancestor bug as #418/#415/#426/#427/#429/#431/#434/#435/#436/#437/#438/#439:
the login button built an unsanitized returnUrl inline instead of
returnUrlFromLocation()/rememberOidcReturnUrl(), and removed the
unreachable login-screen AdminPanel render.
@opencode-agent
opencode-agent Bot disabled auto-merge August 22, 2026 15:28
@seonghobae
seonghobae enabled auto-merge (squash) August 23, 2026 06:41
@opencode-agent
opencode-agent Bot disabled auto-merge August 23, 2026 07:38
@seonghobae seonghobae changed the title test(frontend): add Storybook coverage for BuyerNav test(frontend): add Storybook coverage for WorkspaceNav Aug 23, 2026
@seonghobae
seonghobae changed the base branch from main to chore/rename-buyer-terminology-v2 August 23, 2026 08:27
@seonghobae
seonghobae merged commit 025bb3d into chore/rename-buyer-terminology-v2 Aug 23, 2026
30 checks passed
seonghobae added a commit that referenced this pull request Aug 23, 2026
* test(frontend): cover LineageDag with tests and stories

LineageDag renders the git-branch-style multi-thread lineage graph
used by both the post-detail popup and the Ask Agent's multi-lineage
answer view (ADR 0120), and had zero test or story coverage despite
being a core, non-trivial component. Adds tests for the empty state,
multi-group branch rendering, group-heading fallback for missing/UUID
groups, click and keyboard node selection, the current-post marker,
and label truncation with an accessible full-label fallback. Adds
stories for empty, single-branch, multi-branch (with an actual fork),
ungrouped, and long-label scenarios.

* fix(frontend): use OIDC return-url helpers on the login button

Same shared-ancestor bug as #418/#415/#426/#427/#429/#431/#434/#435/#436/#437/#438:
the login button built an unsanitized returnUrl inline instead of
returnUrlFromLocation()/rememberOidcReturnUrl(), and removed the
unreachable login-screen AdminPanel render.

* Revert "fix(frontend): use OIDC return-url helpers on the login button"

This reverts commit 590c6c3.

* fix(frontend): keep lineage edge evidence visible-only

* fix(frontend): terminate rooted lineage cycles

* chore(frontend): keep shared OIDC repair on #426

* refactor(frontend): remove unreachable cycle guard

* test(frontend): cover converging lineage DAGs

* fix(frontend): position converging DAG nodes once
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.

1 participant