mirror of
https://github.com/block/buzz.git
synced 2026-11-08 18:31:56 +00:00
desktop: tab-aware project share links
Copying a project link while on the Pull Request, Issues, Files, Commits, or Contributors tab now appends &tab=<tab> to the buzz://project|repo link, and opening such a link lands on that tab instead of the readme overview. The tab parameter is validated against a fixed allowlist in the TypeScript parser, the route search schema, and the Tauri deep-link handler; event links (pr/issue) accept no tab. Chrome repository actions move to ProjectDetailChromeActions to keep the screen under the size ratchet. Signed-off-by: Thomas Petersen <thomasp@squareup.com>
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
//!
|
||||
//! Callers are expected to validate inputs first (`validate_hex64`,
|
||||
//! `validate_repo_id`); the identifier charsets need no URL encoding.
|
||||
//!
|
||||
//! Coordinate links additionally accept an optional `&tab=<tab>` parameter
|
||||
//! (`files|commits|issues|prs|contributors`) selecting a workspace tab on
|
||||
//! the receiving side. The CLI builders emit the canonical no-tab form
|
||||
//! (overview); the parameter exists for the desktop's tab-aware copy-link
|
||||
//! button.
|
||||
|
||||
/// Whether a d-tag can be expressed in a `buzz://` link.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user