Skip to content

Add trash icon for direct path deletion#11

Open
paoloantinori wants to merge 1 commit into
mainfrom
feature/trash-icon-path-delete
Open

Add trash icon for direct path deletion#11
paoloantinori wants to merge 1 commit into
mainfrom
feature/trash-icon-path-delete

Conversation

@paoloantinori
Copy link
Copy Markdown

Summary

  • Adds a TrashIcon button next to each path in the NavigationPanel for quick deletion
  • Clicking the icon opens a PatternFly confirmation modal before executing the delete
  • Uses existing DeletePathCommand for undo/redo support
  • Only paths have the icon — schemas are intentionally unchanged (can be a follow-up)
  • Includes Playwright E2E tests covering: icon visibility, dialog open/cancel/confirm, create-then-delete flow

Test plan

  • Fresh npm install && npm run build compiles without errors
  • Trash icon appears next to each path in the navigation panel
  • Clicking trash icon opens confirmation dialog with path name
  • Cancel closes dialog without deleting
  • Delete removes the path and selects API Info
  • Undo (Ctrl+Z) restores the deleted path
  • Run npx playwright test — all tests pass on Chromium and Firefox

Closes #5

🤖 Generated with Claude Code

Add a TrashIcon button next to each path in the NavigationPanel,
with a confirmation modal before deletion. Uses existing
DeletePathCommand infrastructure for undo/redo support.
Only paths have the icon — schemas are unchanged.

Includes Playwright E2E tests for the delete flow.

Closes #5

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Provide a Trash icon directly in the path list

1 participant