Skip to content

Activity Idea marking#103

Merged
kenrick95 merged 1 commit intomainfrom
kenrick/activity-idea
Jan 27, 2026
Merged

Activity Idea marking#103
kenrick95 merged 1 commit intomainfrom
kenrick/activity-idea

Conversation

@kenrick95
Copy link
Owner

Attempt to fix #102

@kenrick95 kenrick95 changed the title Clearable activity time start/end Clearable activity time start/end + explicit marking of ideas Jan 27, 2026
@kenrick95 kenrick95 marked this pull request as ready for review January 27, 2026 13:40
@kenrick95 kenrick95 force-pushed the kenrick/activity-idea branch from e9c8e6b to d089d4b Compare January 27, 2026 13:44
@kenrick95 kenrick95 requested a review from Copilot January 27, 2026 13:44
@kenrick95 kenrick95 force-pushed the kenrick/activity-idea branch from d089d4b to 4b0e9d5 Compare January 27, 2026 13:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 IsIdea flag 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
@kenrick95 kenrick95 force-pushed the kenrick/activity-idea branch from 4b0e9d5 to bfa3992 Compare January 27, 2026 14:35
@kenrick95 kenrick95 changed the title Clearable activity time start/end + explicit marking of ideas Activity Idea marking Jan 27, 2026
@kenrick95 kenrick95 requested a review from Copilot January 27, 2026 14:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.accommodations and ideas.macroplans arrays are initialized in the DayGroups structure but are never populated in the groupActivitiesByDays function. 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.

@kenrick95 kenrick95 merged commit 392e18e into main Jan 27, 2026
7 checks passed
@kenrick95 kenrick95 deleted the kenrick/activity-idea branch January 27, 2026 14:47
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.

How do I create activity ideas?

2 participants