Skip to content

Conversation

@Unisay
Copy link
Contributor

@Unisay Unisay commented Nov 27, 2025

Summary

  • Add ?branch= URL parameter support for shareable visualization links
  • Add "Copy Link" button to easily copy shareable URLs

Changes

  • Added getBranchFromUrl() utility in shared/utils.js
  • Added Copy Link button next to branch input in all 4 visualization pages
  • URL parameter takes precedence over localStorage for branch selection
  • Button shows brief "Copied!" feedback after copying

Usage

URLs can now include a branch parameter:

https://plutus.cardano.intersectmbo.org/cost-models/valuecontains/?branch=my-feature-branch

Or click "Copy Link" to generate a shareable URL with the current branch.

Test plan

  • Open any visualization page
  • Enter a branch name and click "Copy Link"
  • Verify URL is copied with ?branch= parameter
  • Navigate to a URL with ?branch= parameter
  • Verify branch is auto-populated and data loads from that branch

- Add ?branch= URL parameter support for shareable links
- Add "Copy Link" button next to branch input field
- URL parameter takes precedence over localStorage
- Button shows "Copied!" feedback after copying

This enables sharing visualization links with specific branch configurations.
@Unisay Unisay self-assigned this Nov 27, 2025
@Unisay Unisay added the No Changelog Required Add this to skip the Changelog Check label Nov 27, 2025
@Unisay Unisay requested a review from zeme-wana November 27, 2025 12:57
@github-actions
Copy link
Contributor

PR Preview Action v1.6.2

🚀 View preview at
https://IntersectMBO.github.io/plutus/pr-preview/cost-models/pr-7465/

Built to branch gh-pages at 2025-11-27 14:02 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No Changelog Required Add this to skip the Changelog Check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants