Skip to content

Improved routing on the client side - #419

Merged
stasel merged 1 commit into
mainfrom
frontend/route-improvements
Oct 7, 2026
Merged

stasel merged 1 commit into
mainfrom
frontend/route-improvements

Conversation

@stasel

@stasel stasel commented Oct 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings October 7, 2026 21:07

Copilot AI 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.

🟢 Approval recommended

The routing and notification-link changes are consistent, focused, and covered by relevant backend assertions.

0 open findings

What changed in this PR

Improves client routing with canonical home and profile-tab URLs, including direct Slack links.

Changes:

  • Makes / the home route and redirects legacy/unknown routes there.
  • Stores active profile tabs in URLs.
  • Deep-links Slack notifications to relevant tabs.
File Description
client/​src/​routes/​routes.tsx Updates home and profile routes.
client/​src/​hooks/​useProfileTab.ts Adds URL-backed tab navigation.
client/​src/​layout/​Sidebar/​SidebarMenu.tsx Corrects root-route matching.
client/​src/​layout/​Sidebar/​constants.ts Points Home to /.
client/​src/​layout/​ResponsiveNavBar.tsx Updates the logo link.
client/​src/​features/​login/​LoginPage.tsx Redirects authenticated users home.
client/​src/​features/​trainee-profile/​profile/​components/​TraineeProfile.tsx Enables routed trainee tabs.
client/​src/​features/​volunteers/​profile/​VolunteerProfile.tsx Enables routed volunteer tabs.
client/​src/​features/​organisations/​profile/​OrganisationProfile.tsx Enables routed organisation tabs.
server-spring/​src/​main/​java/​nl/​hackyourfuture/​dojoserver/​slack/​SlackNotificationSender.java Adds tab-specific Slack links.
server-spring/​src/​test/​java/​nl/​hackyourfuture/​dojoserver/​interaction/​VolunteerInteractionTest.java Verifies volunteer interaction links.
server-spring/​src/​test/​java/​nl/​hackyourfuture/​dojoserver/​interaction/​OrganisationInteractionTest.java Verifies organisation interaction links.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@stasel
stasel merged commit 120282f into main Oct 7, 2026
8 checks passed
@stasel
stasel deleted the frontend/route-improvements branch October 7, 2026 21:23
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