Skip to content

[Fix] Navigation Bar Links from chat page causes Hard Refresh Instead of Client-Side Routing #399

Open
Priyadharshini0101 wants to merge 1 commit intolmcrean:mainfrom
Priyadharshini0101:bug01
Open

[Fix] Navigation Bar Links from chat page causes Hard Refresh Instead of Client-Side Routing #399
Priyadharshini0101 wants to merge 1 commit intolmcrean:mainfrom
Priyadharshini0101:bug01

Conversation

@Priyadharshini0101
Copy link
Contributor

@Priyadharshini0101 Priyadharshini0101 commented Jul 8, 2025

Replaced Link components with button elements using useNavigate() for programmatic navigation. Navigation now works but causes hard page refresh instead of smooth client-side routing.

Screenshots / Screen Recordings

Dottie.App.-.Google.Chrome.08-Jul-25.19_21_48.1.3.1.mp4

How to Test

Please provide step-by-step testing instructions. If any specific test data or test accounts are needed, mention them here.

  1. Pull this branch
  2. Follow setup instructions correctly as per README-developers.md
  3. Navigate from chat-detail page to assessment list or user profile from the Navigation Bar at the top
  4. Navigate between signin and sign up in home page
  5. tested navigation in assessment modal

Checklist

Before submitting this PR, the following must be confirmed:

  • Pulled the latest main branch and resolved any merge conflicts
  • Ran cd frontend && npm run build to confirm no type or build errors
  • Ran linter/formatter commands (e.g., npm run lint) and fixed warnings/errors
  • Manually tested the feature/fix on relevant browsers/devices (if UI-related)
  • Added or updated relevant documentation (if applicable)
  • Linked related issue(s) correctly in the PR description using closing keywords
  • Added Screenshots to the PR where applicable. Screenshots are mandatory for any frontend, styling, or layout changes.

Issue Links

#333

@vercel
Copy link

vercel bot commented Jul 8, 2025

@Priyadharshini0101 is attempting to deploy a commit to the lmcrean's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jul 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dottie ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 7:24pm

@lmcrean
Copy link
Owner

lmcrean commented Jul 10, 2025

LGTM but what about at the beginning -- is assessment detail not working? I am working on a Deployment Branch feature which I hope to port over at some point in the near future -- will make easier to test

@Priyadharshini0101
Copy link
Contributor Author

Priyadharshini0101 commented Jul 10, 2025

@lmcrean Yes, the Assessment History page itself isn’t working right now, so I used dummy data to test my changes.

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.

Navigation Bar Links from chat page causes Hard Refresh Instead of Client-Side Routing

2 participants