Skip to content

T-10: File → Open Recent dynamic submenu #209

@kirich1409

Description

@kirich1409

Part of EPIC #193. Depends on #203.

Description

Add a Menu("Open Recent") { ForEach(recentProjects) { ... } } inside CommandGroup(after: .newItem). Clicking an entry dispatches requestOpenProject(url, disposition: nil) into the key window store. Favorites section on top, divider, Recent entries below, "Clear Menu" at the bottom. Limit to 10 entries.

Acceptance Criteria

  • Menu dynamically reflects the recentProjects state
  • Favorites are shown first with a ⭐ marker
  • "Clear Menu" calls projectRepository.deleteProject for non-favorites
  • Format: project.name with a tooltip showing project.path
  • Keyboard navigation through the submenu works

Module / Layer

Relay / RelayApp commands

Complexity

Medium

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions