Skip to content

Replace foundation Topbar JS with jQuery#3478

Merged
Simrayz merged 1 commit intomasterfrom
chore/3476-replace-topbar-js-with-jquery
Sep 1, 2025
Merged

Replace foundation Topbar JS with jQuery#3478
Simrayz merged 1 commit intomasterfrom
chore/3476-replace-topbar-js-with-jquery

Conversation

@Simrayz
Copy link
Copy Markdown
Contributor

@Simrayz Simrayz commented Aug 28, 2025

Scope and purpose

Fixes #3476, as part of #2972.

This PR replaces usages of [data-topbar] with a jQuery implementation. All the plugin did was to toggle the .expanded class on the .top-bar container, and remove the class if the screen resizes.

This pull request

  • Removes usage of Topbar JS Plugin
  • Implements topbar menu toggle with jQuery

Contributor Checklist

  • Added a changelog fragment for towncrier
  • Added/amended tests for new/changed code
  • Added/changed documentation
  • Linted/formatted the code with ruff, easiest by using pre-commit
  • The first line of the commit message continues the sentence "If applied, this commit will ...", starts with a capital letter, does not end with punctuation and is 50 characters or less long. See https://cbea.ms/git-commit/
  • This pull request is based on the correct upstream branch: For a patch/bugfix affecting the latest stable version, it should be based on that version's branch (<major>.<minor>.x). For a new feature or other additions, it should be based on master.
  • If applicable: Created new issues if this PR does not fix the issue completely/there is further work to be done
  • If this results in changes in the UI: Added screenshots of the before and after
  • If this adds a new Python source code file: Added the boilerplate header to that file

@Simrayz Simrayz requested a review from a team August 28, 2025 11:22
@Simrayz Simrayz self-assigned this Aug 28, 2025
@Simrayz Simrayz force-pushed the chore/3476-replace-topbar-js-with-jquery branch from ab49e91 to 72aa156 Compare August 28, 2025 11:25
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Test results

   12 files     12 suites   12m 22s ⏱️
2 366 tests 2 366 ✅ 0 💤 0 ❌
6 633 runs  6 633 ✅ 0 💤 0 ❌

Results for commit 72aa156.

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.04%. Comparing base (0279150) to head (72aa156).
⚠️ Report is 387 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3478   +/-   ##
=======================================
  Coverage   61.04%   61.04%           
=======================================
  Files         610      610           
  Lines       44708    44708           
  Branches       43       43           
=======================================
  Hits        27294    27294           
  Misses      17404    17404           
  Partials       10       10           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

@johannaengland johannaengland requested review from a team and removed request for a team August 29, 2025 08:30
Copy link
Copy Markdown
Contributor

@hmpf hmpf left a comment

Choose a reason for hiding this comment

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

I wonder if this is doable with pure CSS now...

@hmpf hmpf requested review from a team and hmpf August 29, 2025 12:51
@Simrayz Simrayz merged commit 18e2b18 into master Sep 1, 2025
17 checks passed
@Simrayz Simrayz deleted the chore/3476-replace-topbar-js-with-jquery branch September 1, 2025 13:38
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.

Replace Topbar JS

2 participants