Conversation
kenrick95
commented
Jan 25, 2026
e9c8e6b to
d089d4b
Compare
d089d4b to
4b0e9d5
Compare
There was a problem hiding this comment.
Pull request overview
This PR addresses issue #102 by adding the ability to explicitly mark activities as ideas, independent of whether they have start/end times. It also makes activity time fields clearable, allowing users to create activities without specific times.
Changes:
- Introduces a flags bitmask system for activities with an
IsIdeaflag for explicit idea marking - Makes start/end time fields clearable in the activity form with improved timezone handling
- Renames "outTrip" terminology to "ideas" throughout the codebase for clarity
- Adds comprehensive test infrastructure (vitest, testing-library) and timezone/datetime integration tests
Reviewed changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| vitest.config.ts, vitest.setup.ts | New test infrastructure setup with jsdom environment and ResizeObserver mock |
| src/Activity/activityFlag.ts | New bitmask system for activity flags with helper functions for flag operations |
| instant.schema.ts | Adds optional flags field to activity entity |
| src/Activity/db.ts | Adds dbUpdateActivityDragEnd function that manages IsIdea flag when dragging to timetable |
| src/Activity/ActivityForm/ActivityForm.tsx | Adds IsIdea switch, makes datetime fields clearable, improves timezone state management |
| src/Activity/ActivityForm/ActivityForm.test.tsx | Comprehensive tests for timezone and datetime picker interactions |
| src/Activity/eventGrouping.ts | Updates grouping logic to include IsIdea-flagged activities in ideas list |
| src/Trip/Ideas/IdeaSidebar.tsx | Updates filtering logic and help text to account for explicitly marked ideas |
| src/Trip/TripTimetableView/Timetable.tsx | Updates to use new "ideas" terminology and clear IsIdea flag on drag-drop |
| src/Trip/TripListView/TripListView.tsx | Refactors to use "ideas" terminology, removes unused accommodation/macroplan idea rendering |
| package.json, pnpm-lock.yaml | Adds testing-library dependencies for component testing |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- set activity time clearable - add tests for activity time zone clearable - save activity flags in db - add tests for activity idea
4b0e9d5 to
bfa3992
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 19 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)
src/Activity/eventGrouping.ts:59
- The
ideas.accommodationsandideas.macroplansarrays are initialized in the DayGroups structure but are never populated in thegroupActivitiesByDaysfunction. While this change focuses on activity ideas, consider whether accommodations and macroplans without times should also be included in the ideas list for consistency. If this is intentional and they should remain empty, consider adding a comment explaining why.
ideas: {
activities: [],
accommodations: [],
macroplans: [],
},
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attempt to fix #102