Skip to content

Add Help menu with Documentation link and About dialog#60

Draft
MartinDejmal with Copilot wants to merge 2 commits into
mainfrom
copilot/add-help-menu
Draft

Add Help menu with Documentation link and About dialog#60
MartinDejmal with Copilot wants to merge 2 commits into
mainfrom
copilot/add-help-menu

Conversation

Copilot AI commented May 6, 2026

Copy link
Copy Markdown
Contributor

Adds a Help submenu to the native app menu bar (alongside File / Edit / View) with two items: a Documentation link that opens the project page in the system browser, and an About dialog with app metadata.

Changes

Rust (src-tauri/)

  • New open_in_browser command — platform-specific URL opener (open / xdg-open / rundll32); rejects non-http(s) URLs to prevent misuse
  • Permission entry (file-operations.toml) and capability grant (default.json) for the new command

TypeScript bridge

  • tauriBridge.ts: openInBrowser(url) wrapping the new command

Help menu (useEditorController.ts)

  • Builds and registers a Help submenu via @tauri-apps/api/menu:
    Help
    ├── Documentation          → opens github.com/MartinDejmal/mdedit in browser
    ├── ─────────────────────
    └── About mdedit           → opens in-app About modal
    

About dialog (src/features/ux/AboutDialog.tsx)

New modal component surfacing:

  • App logo, name, and version (__APP_VERSION__)
  • Author, license (GPL-3.0), and a clickable GitHub link
  • Escape-to-close and focus management consistent with existing dialogs

Styles (styles.css)

Added .about-dialog, .about-header, .about-logo, .about-meta, and .about-link rules.

Copilot AI linked an issue May 6, 2026 that may be closed by this pull request
Agent-Logs-Url: https://github.com/MartinDejmal/mdedit/sessions/5459255d-ab35-4083-86cc-949af17e2d45

Co-authored-by: MartinDejmal <18679101+MartinDejmal@users.noreply.github.com>
Copilot AI changed the title [WIP] Add help menu to main app menu Add Help menu with Documentation link and About dialog May 6, 2026
Copilot AI requested a review from MartinDejmal May 6, 2026 05:59
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.

Add help menu

2 participants