Skip to content

feat(docs): open in bruno download modal for non-git collections - #74

Merged
arpit-bruno merged 4 commits into
usebruno:release/v0.4.0from
sundram-bruno:feat/bru-3875-open-in-bruno-modal
Sep 10, 2026
Merged

feat(docs): open in bruno download modal for non-git collections#74
arpit-bruno merged 4 commits into
usebruno:release/v0.4.0from
sundram-bruno:feat/bru-3875-open-in-bruno-modal

Conversation

@sundram-bruno

@sundram-bruno sundram-bruno commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

JIRA: BRU-3875

Description

The Open in Bruno button was hidden for collections that are not backed by a git repo, so readers of those docs had no way to get the collection into the desktop app. It is now always shown. Git-backed collections keep the Fetch in Bruno link. For everything else the button opens a modal with a Download Collection action, the two import steps, and a Download Bruno link for readers who do not have the app.

image

@changeset-bot

changeset-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2a71b58

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sundram-bruno sundram-bruno changed the title feat(docs): open in bruno download modal for non-git collections (BRU-3875) feat(docs): open in bruno download modal for non-git collections Sep 8, 2026
@sundram-bruno
sundram-bruno changed the base branch from main to release/v0.4.0 September 9, 2026 20:25
…-3875)

Show the Open in Bruno button for every collection. Git-backed collections
keep the Fetch in Bruno link; the rest get a modal that downloads the
collection as OpenCollection YAML and lists the import steps, with a
Download Bruno link for readers without the app.

The download returns the original YAML text the docs were loaded with when
it is available and rebuilds it from the parsed collection otherwise.
Name the download like the desktop export so non-ASCII collection names
survive, keep folders without items free of an empty items key, stabilise
the modal onClose callback, clear the git url from the store when the prop
is removed, and derive every modal test id from one base.
@sundram-bruno
sundram-bruno force-pushed the feat/bru-3875-open-in-bruno-modal branch 2 times, most recently from 6a8589a to 2a71b58 Compare September 10, 2026 08:20
@arpit-bruno
arpit-bruno merged commit a088a9c into usebruno:release/v0.4.0 Sep 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants