Version control button is not color coded properly when building locally

Open Beginner friendly
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript
Domain
frontend

Research direction

Start in templates/version_selector.html at the function around line 27, which determines the version control button state from the page URL. Compare the local and production URL behavior, then verify that a local build shows the button in purple when the latest version is selected.

Written by the indexing model from the issue text.

Description

Not a big issue but just so it's documented, the version control button does not turn purple when on latest and on a local build. The production version does get the proper color. This is caused by the following function because it looks at the page url but the local build is not routed the same way.

Production
Image

Local
Image

Dominant language
JavaScript
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bluerobotics/Cockpit-docs

All issues in bluerobotics/Cockpit-docs

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.