Skip to content

feat: replace Partners tab with Verticals dropdown and remove partner… - #101

Merged
rongquan1 merged 1 commit into
mainfrom
develop
Aug 6, 2026
Merged

feat: replace Partners tab with Verticals dropdown and remove partner…#101
rongquan1 merged 1 commit into
mainfrom
develop

Conversation

@isaackps

@isaackps isaackps commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

…… (#97)

  • feat: replace Partners tab with Verticals dropdown and remove partners page
  • Navbar Partners tab is now a Verticals dropdown (desktop + mobile) linking to TradeTrust, OpenCerts, and SAL, opening in new tabs
  • Remove /partners route and PartnersSection from Home
  • Pin @trustvc/trustvc to 2.15.0-beta.2 in lockfile
  • test: update navbar and home tests for Verticals dropdown
  • Navbar/App tests: expect Verticals instead of removed Partners tab
  • Add Verticals dropdown test asserting TradeTrust/OpenCerts/SAL links
  • Drop Home Partners-section tests (section removed)
  • fix: keep mobile Verticals submenu interactions contained on outside-click

The document mousedown handler closed the Verticals dropdown whenever the target was outside the desktop dropdown container, so taps on the mobile submenu (links and toggle) unmounted the target before click fired. Track the mobile menu with its own ref and treat clicks inside either container as contained.


Summary by CodeRabbit

  • New Features

    • Added a Verticals dropdown to desktop and mobile navigation.
    • Added links to TradeTrust, OpenCerts, and SAL.
    • Added menu behaviors including highlighting, outside-click dismissal, and automatic closure after mobile selection.
  • Changes

    • Removed the Partners navigation link and /partners page route.
    • Removed the Partners section from the home page.

#97)

* feat: replace Partners tab with Verticals dropdown and remove partners page

- Navbar Partners tab is now a Verticals dropdown (desktop + mobile) linking
  to TradeTrust, OpenCerts, and SAL, opening in new tabs
- Remove /partners route and PartnersSection from Home
- Pin @trustvc/trustvc to 2.15.0-beta.2 in lockfile

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test: update navbar and home tests for Verticals dropdown

- Navbar/App tests: expect Verticals instead of removed Partners tab
- Add Verticals dropdown test asserting TradeTrust/OpenCerts/SAL links
- Drop Home Partners-section tests (section removed)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: keep mobile Verticals submenu interactions contained on outside-click

The document mousedown handler closed the Verticals dropdown whenever the
target was outside the desktop dropdown container, so taps on the mobile
submenu (links and toggle) unmounted the target before click fired. Track
the mobile menu with its own ref and treat clicks inside either container
as contained.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The navbar replaces the Partners link with responsive Verticals dropdowns for TradeTrust, OpenCerts, and SAL. The Partners route and home-page section are removed. Tests cover desktop and mobile menu behavior.

Changes

Verticals navigation replacement

Layer / File(s) Summary
Desktop Verticals menu
src/components/common/Navbar/Navbar.tsx, src/components/common/Navbar/Navbar.test.tsx, src/App.test.tsx
The desktop navbar renders a Verticals dropdown with external links and updated assertions.
Responsive menu interactions
src/components/common/Navbar/Navbar.tsx, src/components/common/Navbar/Navbar.test.tsx
Mobile and desktop menu state now supports Verticals submenu toggling, outside-click dismissal, accessibility attributes, and link-selection closing behavior.
Remove Partners surfaces
src/pages/Home/index.tsx, src/routes.tsx
The home page no longer renders PartnersSection, and the /partners route is removed.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Suggested reviewers: manishdex25

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: replacing the Partners tab with a Verticals dropdown and removing partner-related functionality.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch develop

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.

@isaackps
isaackps requested a review from rongquan1 August 6, 2026 06:15

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/common/Navbar/Navbar.test.tsx`:
- Around line 49-51: Update the desktop Verticals trigger lookup in the Navbar
test to query within the desktop navigation container rather than using the
global screen query. Reuse the existing container-scoping pattern and keep the
role/name matcher unchanged so the desktop control is selected uniquely.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a081d372-8036-45f1-b3b4-daac10e11d47

📥 Commits

Reviewing files that changed from the base of the PR and between 8f60217 and ef9eaf8.

📒 Files selected for processing (6)
  • src/App.test.tsx
  • src/__tests__/home.test.tsx
  • src/components/common/Navbar/Navbar.test.tsx
  • src/components/common/Navbar/Navbar.tsx
  • src/pages/Home/index.tsx
  • src/routes.tsx
💤 Files with no reviewable changes (3)
  • src/routes.tsx
  • src/tests/home.test.tsx
  • src/pages/Home/index.tsx

Comment on lines +49 to +51
fireEvent.click(
screen.getByRole('button', { name: /toggle verticals menu/i })
)

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Scope the desktop Verticals trigger query.

Navbar renders both Verticals triggers in the test DOM. screen.getByRole() can find two controls named "Toggle verticals menu" and throw. Scope this query to the desktop navigation container, as the mobile test does for its trigger.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/common/Navbar/Navbar.test.tsx` around lines 49 - 51, Update
the desktop Verticals trigger lookup in the Navbar test to query within the
desktop navigation container rather than using the global screen query. Reuse
the existing container-scoping pattern and keep the role/name matcher unchanged
so the desktop control is selected uniquely.

@rongquan1
rongquan1 merged commit fa08146 into main Aug 6, 2026
13 checks passed
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