Skip to content

feat: open local HTML files from file and tab menus#1268

Merged
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:main
Jun 18, 2026
Merged

feat: open local HTML files from file and tab menus#1268
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:main

Conversation

@wsp1911

@wsp1911 wsp1911 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a local HTML browser-open workflow from both the file explorer context menu and editor tab context menu. Also improves tab context menus and pinned-tab handling so pinned tabs stay protected and ordered before regular tabs.

Fixes #

Type and Areas

Type:

Feature / UI/UX

Areas:

desktop/Tauri, web UI, i18n

Motivation / Impact

Users can open local .html / .htm files directly in the system browser from file explorer entries or open tabs. The native desktop command validates that the target is an HTML file and an actual file before delegating to the system opener.

Tab context menus now expose common tab/file actions including close, close others, close all, pin/unpin, pop out, copy path, reveal in explorer, and open HTML in browser where applicable. Remote workspaces disable local-only file actions.

Pinned tabs are preserved when closing all tabs and remain grouped ahead of unpinned tabs.

Verification

  • pnpm --dir src/web-ui run test:run src/shared/utils/htmlFilePreview.test.ts - passed
  • pnpm run type-check:web - passed
  • cargo check -p bitfun-desktop - passed
  • pnpm run i18n:audit - passed

Reviewer Notes

The HTML browser-open action is intentionally local-only and hidden/disabled for remote workspace scenarios. The Rust command rejects non-HTML paths and non-file paths before invoking the opener.

@wsp1911 wsp1911 marked this pull request as ready for review June 18, 2026 16:22
- add a desktop command for opening validated local HTML files in the system browser
- expose the browser-open action in file explorer and tab context menus
- extend tab context menus with close, pin, pop-out, copy path, and reveal actions
- preserve pinned tabs when closing groups/all tabs and keep pinned tabs ordered first
- add localized labels/errors and unit coverage for HTML file preview helpers
@wsp1911 wsp1911 merged commit ab8f000 into GCWing:main Jun 18, 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.

1 participant