Skip to content

[WebUI] Fix legacy web UI mobile menu + Add menu items#1190

Merged
krowvin merged 7 commits into
developfrom
web-ui-updates
Jul 21, 2025
Merged

[WebUI] Fix legacy web UI mobile menu + Add menu items#1190
krowvin merged 7 commits into
developfrom
web-ui-updates

Conversation

@krowvin
Copy link
Copy Markdown
Collaborator

@krowvin krowvin commented Jul 18, 2025

This PR adds new header links for the client-side libraries.

I also noticed the mobile menu was not working. If you attempt to tap it currently nothing happens visually.

It looks as if the JavaScript for the event listener was not being loaded. Updated the load() method to account for this.

Brief Summary of Changes

  • Update touched files to newer const/let
  • Update load method for html files with JS
  • Update header to include github + client library links to desktop and mobile

Testing

I ran the index.html using VSCode's live server to ensure it rendered as expected on mobile and desktop:

Mobile Menu

image

Desktop Menu

image

@krowvin krowvin added bug Something isn't working enhancement New feature or request labels Jul 18, 2025

<!-- Burger Bar Control -->
<script defer type="text/javascript" src="./js/header.js"></script>
<script defer type="text/javascript" src="./js/header.js?_=2"></script>
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.

what is the purpose of the ?_=2?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This makes sure if someone has loaded the header recently and has it cached that it will force the browser to refetch the file (ignore cache). I've also used v=2 to try to make that more clear in other sites, but I wasn't intending on starting versioning for that file as someone may miss this little detail between updates.

Instead I use _ to suggest this parameter value is not important to being passed in.

Although technically I don't think this JavaScript was being executed/fetched in the current site so in this case it might not actually do anything!

We could certainly get more into this topic, but it won't matter when the site goes to using vite as it uses a new css/file hash for each build. (Files are hashed on the output of the bundler rollup): https://vite.dev/guide/build.html#advanced-base-options

Read more on the cache busting I did above with _= here: (they use ver)
https://www.keycdn.com/support/what-is-cache-busting#using-cache-busting-with-a-cdn

@krowvin krowvin merged commit a9b9652 into develop Jul 21, 2025
6 checks passed
@krowvin krowvin deleted the web-ui-updates branch July 21, 2025 16:42
rma-bryson pushed a commit that referenced this pull request Jul 29, 2025
- Update touched files to newer const/let
- Update `load` method for html files with JS
- Update header to include github + client library links to desktop and
mobile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants