Add a day view to a trip #51
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
Currently there are two views of plans on the trip page:
For long trips, or trips with lots of itinerary items the page may be quite long so we want to add a way to filter to a specific day.
Specification
You will add a switcher next to the current view switcher with the following options:
When Tripis selected, you'll see the current view (this is also the default option).
If the trip is in progress (e.g. the current date is between the start and end date of the trip) then show a button next to this switcher called "Today". This will be a quick select to the day view for the current day.
Week View
Day View
QA Considerations
Playwright demo run failed, so I could not capture the required video.\n\nCommand: PW_VIDEO_MODE=on PW_TRACE_MODE=on bunx --bun playwright test e2e/trip-date-view.test.ts\nError: error: Cannot find module '/tmp/trips-51/playwright.config.ts.esm.preflight' from '/tmp/trips-51/node_modules/playwright/lib/transform/transform.js'\n\nCommand: PW_VIDEO_MODE=on PW_TRACE_MODE=on bunx playwright test e2e/trip-date-view.test.ts\nError: error: Cannot find module '/tmp/trips-51/playwright.config.ts.esm.preflight' from '/tmp/trips-51/node_modules/playwright/lib/transform/transform.js'\n\nCommand: PW_VIDEO_MODE=on PW_TRACE_MODE=on ./node_modules/.bin/playwright test e2e/trip-date-view.test.ts\nError: env: can't execute 'node': No such file or directory
PR creation attempt failed.\n\nCommand: tea pulls create --login ai-agent --repo campbellwireless/trips --head ai-agent/51-add-a-day-view-to-a-trip --base main --title "trip) add day/week trip views" --body "" --assignees shaun\nError: Incorrect Usage: flag provided but not defined: -body
Retried Playwright (non-bun) after installing Node; web server failed during seed.\n\nCommand: PW_VIDEO_MODE=on PW_TRACE_MODE=on ./node_modules/.bin/playwright test e2e/trip-date-view.test.ts\nError: SQLiteError: disk I/O error (SQLITE_IOERR_DELETE_NOENT) at e2e/setup/seed-db.ts:29:17 during migrations; webServer exited with code 1.
Playwright demo video for day/week view (system chromium). Attachment follows.