Commit Graph

3 Commits

Author SHA1 Message Date
Marvin 30bfe441f8 Fix: Sort menu now shows friendly labels instead of CAPS codes
Changed sort_options array back to user-friendly text (Most Recent, A to Z, etc.)
and added position-based mapping in NotesListFragment to convert between display
labels and internal storage codes.

Added helper methods:
- getSortCodeFromPosition(int): Maps spinner position to internal code
- getPositionFromSortCode(String): Maps internal code back to spinner position

This provides much better UX while maintaining full functionality.
2026-03-17 16:56:14 -03:00
Marvin 35bddd27c4 Fix: Sort menu now works correctly
The sort spinner used display strings like 'Most Recent' but the code expected
internal codes like 'MOST_RECENT'. This mismatch caused sorting to always fail.

Changed sort_options array to use exact values expected by NotesStorage.sortNotes():
2026-03-17 16:43:39 -03:00
Marvin 0c69cd11c5 Initial commit: Notes App with text and checklist support
Features:
- Create, edit, and delete notes (text or checklist)
- Sort notes by date or alphabetically
- Dark theme UI with Material Design components
- Checklist items with checkboxes and progress tracking
- Floating action buttons for adding/deleting checklist items
- Auto-save functionality
- Swipe to delete from list

Technical:
- Android Studio project with Gradle build system
- SQLite database via Room-like storage (SharedPreferences)
- RecyclerView for efficient note/item lists
- Fragment-based navigation

Bug Fixes:
- Fixed new notes not appearing in main view after creation
- Added onResume() refresh to NotesListFragment
- Corrected ID assignment and counter logic in NotesStorage
2026-03-17 14:51:36 -03:00