Skip to content

feat(slice-008): add list mode, edit holding, and delete holding#9

Merged
fredericomozzato merged 4 commits into
mainfrom
feat/008-list-mode-edit-delete-holding
Apr 12, 2026
Merged

feat(slice-008): add list mode, edit holding, and delete holding#9
fredericomozzato merged 4 commits into
mainfrom
feat/008-list-mode-edit-delete-holding

Conversation

@fredericomozzato
Copy link
Copy Markdown
Owner

@fredericomozzato fredericomozzato commented Apr 12, 2026

Summary

  • Implements Enter from menu mode to enter list mode (right panel focus), Esc returns to menu
  • Add focus hint: selected panel's border color changes to indicate active panel
  • Add j/k/g/G navigation in holdings list
  • Add Enter on holding to edit amount (pre-populated dialog)
  • Add X on holding to delete with confirmation dialog
  • Add PgUp/PgDn preview scrolling from menu mode

Test Plan

  • Enter from menu mode enters list mode with focus on right panel
  • Esc from list mode returns to menu mode
  • Panel border color changes to indicate active focus
  • j/k/g/G navigate holdings in list mode
  • Enter on a holding opens edit amount dialog pre-populated with current amount
  • Saving edited amount updates the holding and refreshes the panel
  • X on a holding opens delete confirmation dialog
  • Confirming deletion removes the holding and updates the panel
  • PgUp/PgDn scroll the right panel preview from menu mode
  • Adding a holding from listing mode returns to listing mode

- Add listing, editingAmount, and deleting mode types to PortfolioModel
- Add holdingsCursor and scrollOffset fields for list navigation
- Implement browsing mode Enter key to enter list mode
- Add PgUp/PgDn for preview scrolling in browsing mode
- Implement listing mode with j/k/g/G navigation, Enter to edit, X to delete
- Add edit amount dialog with pre-populated current amount
- Add delete confirmation dialog
- Implement cmdDeleteHolding and cmdUpdateHoldingAmount commands
- Update View() with panel border highlighting (accent for focused panel)
- Update InputActive() to include editingAmount mode
- Update status bar hints for all new modes
- Add 40+ tests for list mode, edit, delete, and scrolling functionality

All checks pass: make check + make build successful.
…ns to browsing instead of listing

Closes finding F1 in docs/reviews/008-list-mode-edit-delete-holding/revision-1.md
…shortcuts

Closes finding I2 in docs/reviews/008-list-mode-edit-delete-holding/revision-1.md

Revision status: done
@fredericomozzato fredericomozzato changed the title feat: list mode, edit holding, and delete holding feat(slice-008): add list mode, edit holding, and delete holding Apr 12, 2026
@fredericomozzato fredericomozzato merged commit e424c6b into main Apr 12, 2026
5 checks passed
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.

1 participant