Skip to content

Add URL Parsing Support For Web CANdo Viewer#405

Merged
coderask merged 5 commits intoViewer_Fixesfrom
ViewerBonuses
Apr 10, 2026
Merged

Add URL Parsing Support For Web CANdo Viewer#405
coderask merged 5 commits intoViewer_Fixesfrom
ViewerBonuses

Conversation

@dchansen06
Copy link
Copy Markdown
Contributor

@dchansen06 dchansen06 commented Apr 9, 2026

URL Reference Support for Web CANdo Viewer

Problem and Scope

No longer an unofficial tool

Sharing a CANdo reference requires more steps than strictly necessary, reloading also resets the branch

Description

Remove the unofficial tool warning/alert banner

Add support for parsing ?ref=<BRANCH> and keep it up to date, which allows reloading, and shows #custom and #edited in the URL so that others know from a shared URL if it is a portable link or an incorrect copy

Gotchas and Limitations

Requires testing

Testing

  • HOOTL testing
  • HITL testing
  • Human tested

Testing Details

Try to break it and see no errors or console warnings, needs more testing

Due to changing how URL parsing works, the htmlpreview we normally use does not work, this is expected but painful

Larger Impact

Signal confidence in viewer

Ease of use with references and reloading the page

Additional Context and Ticket

Hopefully no merge conflicts with #397

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
…ment identifiers, this way we can easily share viewers on specific references and any shared link clearly shows custom/edited/etc by default

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
@dchansen06 dchansen06 added Enhancement New feature or request Help | Review Extra attention is needed GitHub Meta, anything related to or dealing with GitHub Small Fry Something that is small, could include bug fixes or smaller changes 3 NORMAL Important but not really a priority labels Apr 9, 2026
@dchansen06 dchansen06 requested a review from coderask April 9, 2026 11:49
@dchansen06 dchansen06 marked this pull request as ready for review April 9, 2026 11:49
Signed-off-by: Daniel Hansen <105574022+dchansen06@users.noreply.github.com>
@dchansen06
Copy link
Copy Markdown
Contributor Author

@coderask Please take a look when you get a chance, feel free to edit however you like

Copy link
Copy Markdown
Contributor

@coderask coderask left a comment

Choose a reason for hiding this comment

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

Looks good

@coderask coderask changed the base branch from main to Viewer_Fixes April 10, 2026 05:49
@coderask coderask merged commit e0c7ead into Viewer_Fixes Apr 10, 2026
33 checks passed
@coderask coderask deleted the ViewerBonuses branch April 10, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 NORMAL Important but not really a priority Enhancement New feature or request GitHub Meta, anything related to or dealing with GitHub Help | Review Extra attention is needed Small Fry Something that is small, could include bug fixes or smaller changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants