42 lines
1.3 KiB
Markdown
42 lines
1.3 KiB
Markdown
---
|
|
epic: 7
|
|
story: 7.4
|
|
title: "Menu Bar Mode"
|
|
status: draft
|
|
---
|
|
|
|
## Epic 7 — macOS App (Swift/SwiftUI)
|
|
**Goal:** A beautiful, native macOS app that feels like it belongs on the platform.
|
|
|
|
### Story 7.4: Menu Bar Mode
|
|
|
|
As a **macOS user**,
|
|
I want CalcPad to live in the menu bar with a popover mini calculator,
|
|
So that I can perform quick calculations without switching to a full window.
|
|
|
|
**Acceptance Criteria:**
|
|
|
|
**Given** the app is running
|
|
**When** the user looks at the macOS menu bar
|
|
**Then** a CalcPad icon is visible in the menu bar area
|
|
|
|
**Given** the CalcPad icon is in the menu bar
|
|
**When** the user clicks the icon
|
|
**Then** a popover appears with a mini calculator view (editor + results)
|
|
|
|
**Given** the popover is open
|
|
**When** the user clicks anywhere outside the popover
|
|
**Then** the popover automatically dismisses
|
|
|
|
**Given** the user has configured a global hotkey for the menu bar popover
|
|
**When** the user presses the hotkey from any app
|
|
**Then** the popover toggles (opens if closed, closes if open)
|
|
|
|
**Given** the popover is open
|
|
**When** the user clicks a "Detach to Window" button in the popover
|
|
**Then** the popover closes and a full CalcPad window opens with the same content
|
|
|
|
**Given** the user is working in the popover
|
|
**When** the user types calculations
|
|
**Then** the engine evaluates them and shows results inline, just like the full editor
|