Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent extra tab from adding in history #9039

Merged
merged 7 commits into from
Mar 19, 2025

Conversation

ritikraj26
Copy link
Contributor

Motivation and context

This PR fixes an issue where navigating to task analytics caused #overview to be appended to the URL, requiring two back button presses to return to the previous page.
The fix ensures that the hash change does not create a new history entry, fixing navigation.

How has this been tested?

  • Manually tested in a local development environment.
  • Verified that opening task analytics no longer creates an extra history entry.
  • Ensured the browser back button correctly navigates to the previous page in a single press.

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
    - [ ] I have updated the documentation accordingly
    - [ ] I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@klakhov
Copy link
Contributor

klakhov commented Feb 4, 2025

The patch doesnt really work. Assuming I've added one more tab in analytics, I can not switch to it. It automatically goes back to first one:
history-doesntwork

@ritikraj26
Copy link
Contributor Author

Ah, I see the issue. I will fix it.

@klakhov
Copy link
Contributor

klakhov commented Feb 24, 2025

Any updates on this?

@ritikraj26
Copy link
Contributor Author

Made some changes and tested whether the issue you mentioned above still exists or not. I have fixed it.

@klakhov klakhov requested a review from nmanovic as a code owner March 17, 2025 08:47
@codecov-commenter
Copy link

codecov-commenter commented Mar 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.15%. Comparing base (83a212e) to head (c17b4fd).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9039      +/-   ##
===========================================
+ Coverage    74.13%   74.15%   +0.01%     
===========================================
  Files          428      428              
  Lines        44976    44976              
  Branches      3917     3917              
===========================================
+ Hits         33345    33350       +5     
+ Misses       11631    11626       -5     
Components Coverage Δ
cvat-ui 77.23% <ø> (+0.02%) ⬆️
cvat-server 71.58% <ø> (ø)
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@klakhov klakhov left a comment

Choose a reason for hiding this comment

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

Thanks for contribution!

@klakhov klakhov merged commit a6e7dd7 into cvat-ai:develop Mar 19, 2025
34 checks passed
@ritikraj26
Copy link
Contributor Author

Looking forward to contributing more !!

@nmanovic
Copy link
Contributor

@ritikraj26 , great to know! Just select any issues on GitHub which you like and ping us. We will advise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants