Commit Graph

2 Commits

Author SHA1 Message Date
Brian Fertig 171ec92b74 Add 3D flight world, board view switcher, and quick-add to-dos
3D scene:
- Build a procedural world from seeded waypoint segments (per-segment
  step/turn/altitude params) joined into kink-free Catmull-Rom curves,
  using ghost points so boundaries stay smooth; world and textures are
  derived from the session seed for consistency.
- Carve the flight corridor out of the terrain (gaussian dip plus a
  height floor 32u below the path) and add city districts with instanced
  buildings driven by seeded glowing-window textures, plus tunnel
  segments rendered as textured tubes with light strips.

Board UI:
- Add a ViewSwitcher to the kanban header and a board view provider.
- Compact group cards place an inline "+" on the last visible to-do row
  (shrink-0, so it sits at the row's right edge) that opens the new
  TodoCreateDialog, alongside the existing AI-assisted creation flow.

Scheduled panel:
- Collapsed rail replaces the corner overdue dot with badges stacked
  below the calendar icon: overdue (destructive, ping ring) and
  due-today (neutral, calmer pulse). Today's count is a separate filter
  that excludes already-completed occurrences, unlike the overdue count.
2026-08-19 09:23:05 -06:00
Brian Fertig eb32aee653 Add scheduled (recurring) to-dos, AI to-do generation, and in-place building upgrades
- Scheduled to-dos: new ScheduledTodo + ScheduledTodoCompletion models
  (owner-XOR-project ownership like Category, per-occurrence completion
  so a recurring to-do tracks done state per calendar date), recurrence
  built server-side from validated parts via rrule-utils, CRUD +
  occurrence-toggle server actions, add/edit dialog, and a collapsible
  Scheduled side panel (overdue / today / upcoming) with UTC-safe
  date-key formatting.
- AI to-dos: group-level AI dialog (lib/actions/todo-ai.ts) that chats
  then proposes a finalize list of to-dos; editable proposals and bulk
  add via BoardProvider.addTodos; speech recognition gains better error
  handling (network/firewall message, error logging).
- Building upgrades: new `upgradesFrom` rule — Nuclear Power Plant can
  replace a friendly Energy Generator and Advanced Metal Generator a
  Mass Generator (same tile + footprint, per TALogic.findUpgradeTarget),
  crediting a 50% refund of the replaced building's OWN cost;
  compileRules validates the references, topperFrame gets a generic
  spinning-glyph fallback in TAArt.
- Movement rework: pushOutOfObstacles replaces the hard tile-snap with a
  damped circle-vs-tile overlap push, and pathfinding routes at exact-fit
  clearance instead of +1 padding (fixes corner grinding/stalling).
- New map m06 "Annihilation" (medium, snowfields, Klaxon skill 5, seed
  90123 — pre-vetted for early-economy balance).
- Tests: upgrade placement (ownership, type match, exact footprint,
  refund, army-less fallback), obstacle routing/settling, corridor
  moves; sprites.md updated for upgradesFrom and toppers.
2026-08-17 15:03:13 -06:00