Skip to content

Conversation

@tompscanlan
Copy link
Contributor

@tompscanlan tompscanlan commented Jan 7, 2026

Summary

Adds the ability to delete event drafts and improves the draft list UI on the home page.

Changes

Home Page Draft List:

  • Add delete button (trash icon) to each draft item
  • Show orange "Draft" badge for visual clarity
  • Display relative time since draft was updated (e.g., "Updated 2 hours ago")
  • Improved layout with rounded avatar and separators

Event Edit Page:

  • Add "Delete Draft" button in page header (only shows for draft events)
  • Use browser history for back navigation instead of hardcoded route
  • Cancel button now uses browser history too

Types:

  • Added createdAt and updatedAt optional fields to EventEntity

Related Issue

Part of #348 - UX Improvements

Test Plan

  • Verify delete button appears on draft items on home page
  • Verify clicking delete shows confirmation dialog
  • Verify draft is removed from list after deletion
  • Verify "Delete Draft" button appears on event edit page for drafts
  • Verify back navigation works correctly from different entry points

- Add delete button (trash icon) to draft items on home page
- Show "Draft" badge with orange color for visual clarity
- Display relative time since draft was updated
- Add delete draft button to event edit page header
- Use browser history for back navigation instead of hardcoded route
- Add createdAt/updatedAt fields to EventEntity type

Part of #348 UX Improvements
- Added try/catch with user-facing error notification in HomeUserPage
- Added error notification in DashboardEventPage delete handler
- Removed unused eventFormRef template ref

Addresses code review feedback for PR #351
@tompscanlan tompscanlan merged commit d4581d3 into main Jan 8, 2026
3 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.

2 participants