Skip to content

Todo Panel — Item JIRA links + context menu + delete #52

@harrryyd

Description

@harrryyd

Parent

#44

What to build

JIRA links on items with inheritance from category, right-click context menu on items, and item deletion with confirmation.

State machine: todoStore gains:

  • setItemJiraLink(itemId, jiraLink?) — sets or clears the item's JIRA link
  • deleteItem(itemId) — removes the item entirely (not archived, truly deleted)

UI:

  • JIRA link display: If an item has its own jiraLink, display it as a clickable ticker/number. If not, inherit the category's jiraLink for display (the item's own jiraLink field stays undefined). An explicitly set item link overrides the inherited one.
  • JIRA link editing: Via right-click context menu on the item. An input allows setting/clearing the link.
  • Context menu: Right-clicking an item shows a context menu with options: "Edit JIRA Link", "Delete". Future slices may add more options here.
  • Delete: Clicking "Delete" shows a confirmation dialog ("Delete this item?" with Cancel/Delete buttons). Confirming permanently removes the item.

Acceptance criteria

  • Item JIRA link displayed as clickable ticker/number (extracted from URL for display)
  • Items without their own JIRA link inherit the category's JIRA link for display
  • Explicit item JIRA link overrides inherited category link
  • Right-click context menu appears on items with "Edit JIRA Link" and "Delete" options
  • JIRA link can be edited (set/clear) via context menu input
  • Delete option shows confirmation dialog; confirming removes item permanently
  • Cancelling the confirm dialog keeps the item
  • Unit tests: setItemJiraLink, deleteItem, JIRA inheritance logic
  • bun fmt, bun lint, bun typecheck all pass

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions