23 Commits

Author SHA1 Message Date
Nick Beckley
cea82a922f Implemented Phase 1 Scene Occupancy.
What Changed
Added scene-owned occupancy data:Scenes.FloorPlanID
Scenes.InitialFloorPlanFloorID
new SceneFloorPlanOccupancy table

Added Occupancy section to the Scene Inspector with AJAX save/refresh.
Added Floor Plan editor Structure / Occupancy mode.
Occupancy mode shows linked scenes, previous/next scene controls, and character/asset tokens inside assigned locations.
Character tokens use image thumbnail, then initials fallback. Asset tokens do the same, smaller.
No Features, no new floor-plan architecture, no transition changes.
Files Changed
[CoreModels.cs](C:/Source/PlotLine/PlotLine/Models/CoreModels.cs)
[CoreViewModels.cs](C:/Source/PlotLine/PlotLine/ViewModels/CoreViewModels.cs)
[Repositories.cs](C:/Source/PlotLine/PlotLine/Data/Repositories.cs)
[CoreServices.cs](C:/Source/PlotLine/PlotLine/Services/CoreServices.cs)
[ScenesController.cs](C:/Source/PlotLine/PlotLine/Controllers/ScenesController.cs)
[Program.cs](C:/Source/PlotLine/PlotLine/Program.cs)
[Edit.cshtml](C:/Source/PlotLine/PlotLine/Views/FloorPlans/Edit.cshtml)
[_SceneInspector.cshtml](C:/Source/PlotLine/PlotLine/Views/Scenes/_SceneInspector.cshtml)
[_SceneOccupancy.cshtml](C:/Source/PlotLine/PlotLine/Views/Scenes/_SceneOccupancy.cshtml)
[site.js](C:/Source/PlotLine/PlotLine/wwwroot/js/site.js)
[site.css](C:/Source/PlotLine/PlotLine/wwwroot/css/site.css)
minified CSS/JS updated.
Database
Added new migration only: [080_SceneFloorPlanOccupancy.sql](C:/Source/PlotLine/PlotLine/Sql/080_SceneFloorPlanOccupancy.sql)
Applied locally.
Added constraints/FKs and filtered unique indexes for one character/asset occupancy row per scene.
Stored Procedures Added/Updated
Scene_Save
Scene_Get
Scene_FloorPlanLink_Save
Scene_ListByFloorPlan
FloorPlanFloor_ListByPlan
FloorPlanBlock_ListByPlan
SceneFloorPlanOccupancy_ListByScene
SceneFloorPlanOccupancy_ListByFloorPlan
SceneFloorPlanOccupancy_Save
Test Data
Permanent Calendar House seed data added:
Book: The Calendar House
Chapters 1-3
14 scenes
Characters: Ellie, Grant, Stephen, Housekeeper, Gardener
Assets: Brass Key, Journal, Candle, Map, Letter
45 occupancy assignments
Verification
dotnet build PlotLine.slnx passes with 0 warnings/errors.
Migration applied locally.
Local app boots and returns HTTP 200.
DB checks confirm 14 linked scenes and 45 occupancy rows.
Manual browser click-through of the authenticated UI still needs a human pass for the AJAX controls and visual token placement.
2026-06-22 10:45:30 +01:00
Nick Beckley
0410afb124 Implemented Phase B guidance/discoverability work. 2026-06-19 20:06:00 +01:00
Nick Beckley
3b60634667 Implemented Phase B guidance/discoverability work. 2026-06-19 14:22:02 +01:00
Nick Beckley
7363d0c128 Scene inspector character attribute fix 2026-06-19 14:08:46 +01:00
Nick Beckley
eafa9927c7 Phase 12A: Story State Engine and Scene Inspector Integration for the new Continuity Explorer feature. 2026-06-14 18:50:58 +01:00
Nick Beckley
5f6ea92938 Phase 11B PlotDirector Character Age and Story Date Management feature. 2026-06-14 18:30:50 +01:00
Nick Beckley
b5decb0dc6 Phase 11A PlotDirector Character Age and Story Date Management feature. 2026-06-14 17:50:00 +01:00
Nick Beckley
b2cfcd08fa Phase 9A cleanup 2026-06-12 20:43:19 +01:00
Nick Beckley
ea3177c2aa Phase 6I. Help Files 2026-06-12 11:22:17 +01:00
Nick Beckley
cb67c4bcd3 Phase 6G UI and rendering fixes 2026-06-11 21:37:37 +01:00
Nick Beckley
ba5960f907 Phase 6C Plot Line maintenance. 2026-06-11 20:00:18 +01:00
Nick Beckley
77d5623e51 Writer Workspace changes. 2026-06-09 21:06:45 +01:00
Nick Beckley
5f15c19a20 Scene inspector rearrange and fix. 2026-06-08 21:50:18 +01:00
Nick Beckley
efa514a2e4 Navigation tidy up 1C 2026-06-07 20:14:51 +01:00
Nick Beckley
1c19edda5c Phase 5F – Storage Management and Quota Enforcement 2026-06-07 11:49:50 +01:00
Nick Beckley
92ab864471 Phase 2B 2026-06-03 21:56:09 +01:00
Nick Beckley
24dd787536 Addition of project Metrics admin page. 2026-06-03 15:55:21 +01:00
Nick Beckley
264f63b105 Phase 1V 2026-06-01 20:07:37 +01:00
Nick Beckley
04a41e81b0 Phase 1T 2026-06-01 15:42:44 +01:00
Nick Beckley
624ec9a394 Phase 1Q 2026-06-01 14:05:39 +01:00
Nick Beckley
8f56934dd8 Phase 1P 2026-06-01 12:25:47 +01:00
Nick Beckley
39c72c3b38 Phase 1M 2026-06-01 09:55:34 +01:00
Nick Beckley
6e237b7287 Add project files. 2026-06-01 09:03:59 +01:00