212 Commits

Author SHA1 Message Date
Nick Beckley
26846f57e7 PlotDirector Phase 17B Follow-up - Scene/Edit Focused Editor Flyout Layout 2026-06-30 13:09:53 +01:00
Nick Beckley
4ae45ab8f9 PlotDirector Phase 17B - Scene Core Focused Editors 2026-06-30 09:44:47 +01:00
Nick Beckley
3d217d72c2 PlotDirector Phase 17A Follow-up - Restore Timeline Metric Shape Chart 2026-06-30 09:21:00 +01:00
Nick Beckley
ab9455ac4e PlotDirector Phase 17A - Scene Inspector V2 Shell, Layout and Summary View 2026-06-30 09:01:58 +01:00
Nick Beckley
f77d9ccfc7 Phase 16R - Word Companion UX Simplification and Workflow Redesign 2026-06-29 14:59:06 +01:00
Nick Beckley
5ff2713afb Phase 16Q Fix - Word Companion Unlink Button Does Nothing 2026-06-29 14:30:48 +01:00
Nick Beckley
7356a1c6b1 Phase 16Q - Manuscript Unlink and Recovery Tools 2026-06-29 14:08:56 +01:00
Nick Beckley
db6f0992c1 Phase 16P - Word Companion Performance Hardening and Office.js Snapshot Optimisation 2026-06-29 13:48:02 +01:00
Nick Beckley
6867dfad77 Phase 16N - Conservative Live Location Detection 2026-06-28 22:28:40 +01:00
Nick Beckley
c8bae2d1d1 Phase 16K - Live Asset Detection While Writing 2026-06-28 21:49:21 +01:00
Nick Beckley
df03f46ca8 Fixed. The follow navigation was receiving a valid SignalR event, but the stored procedure was generating /Scenes/Details/{id} even though ScenesController only supports /Scenes/Edit/{id}. 2026-06-28 21:27:20 +01:00
Nick Beckley
efa606f7c7 Phase 16J - PlotDirector Follow Word Companion Current Scene 2026-06-28 21:06:50 +01:00
Nick Beckley
429cd5beb5 Phase 16I - Review and Accept Word Companion Character Suggestions 2026-06-28 20:54:07 +01:00
Nick Beckley
8be690857e Phase 16H - Live Character Detection While Writing 2026-06-28 10:31:07 +01:00
Nick Beckley
507e16165e Phase 16G - Word Count Synchronisation Audit and Completion 2026-06-27 22:39:29 +01:00
Nick Beckley
0fc21041fc Phase 16E.2 - Runtime Update Reliability and Responsiveness 2026-06-27 22:34:35 +01:00
Nick Beckley
18f204460f Phase 16E.1 - Word Companion Runtime Performance Stabilisation 2026-06-27 22:18:24 +01:00
Nick Beckley
d442de5837 Phase 16F - Scene Word Count Sync and Writing Progress Update 2026-06-27 22:07:17 +01:00
Nick Beckley
85404b9c42 Phase 16C/16D/16E Fix - Correct Onboarding Wizard Step Order and Runtime Transition 2026-06-27 21:43:48 +01:00
Nick Beckley
908199c802 Phase 16D/16E Fix - Separate Structure Import from Character Creation 2026-06-27 21:29:12 +01:00
Nick Beckley
35eef02322 Phase 16E Fix - Office.js ContentControlCollection.items PropertyNotLoaded Error 2026-06-27 21:25:44 +01:00
Nick Beckley
f26cd48173 Phase 16E - Bound Document Runtime and Current Scene Detection 2026-06-27 21:10:20 +01:00
Nick Beckley
772a144d70 Phase 16D.3 - Final Character Discovery Polish 2026-06-27 20:52:02 +01:00
Nick Beckley
1ee77d953d Phase 16D.2 - Character Discovery Confidence and Selection Refinement 2026-06-27 20:27:44 +01:00
Nick Beckley
7bee51834b Phase 16D.1 - Refine Major Character Discovery 2026-06-27 20:16:42 +01:00
Nick Beckley
ac300a94c8 Phase 16D - Major Character Discovery During Manuscript Import 2026-06-27 20:08:19 +01:00
Nick Beckley
33e8f0857c Phase 16C - Word Companion First-Run Binding and Manuscript Import 2026-06-27 19:41:44 +01:00
Nick Beckley
393fa884ca Fixed 2FA and login pages. 2026-06-26 19:47:25 +01:00
Nick Beckley
44d7253367 Changed 2FA page to input 6 characters and auto submit. 2026-06-26 19:32:55 +01:00
Nick Beckley
aa188baa70 Fixed the home page hero was sitting above the open account dropdown in the stacking order, so clicks were landing on the hero instead of the menu. 2026-06-24 11:39:20 +01:00
Nick Beckley
bd5bf07906 mplemented the attached SEO/navigation polish. 2026-06-24 10:42:30 +01:00
Nick Beckley
c724f7b178 Help System SEO URL Slugs 2026-06-24 10:09:07 +01:00
Nick Beckley
6896629ed0 Phase 15C - Feature Requests: Layout Polish, Notifications and Public Roadmap Foundation 2026-06-23 21:51:10 +01:00
Nick Beckley
d255407193 Implemented the Phase 14A follow-up fixes. 2026-06-23 19:47:30 +01:00
Nick Beckley
b460b38583 Implement character relationship and identity improvements 2026-06-22 21:39:45 +01:00
Nick Beckley
28cab2adf4 Implemented Phase 14A: Character Galleries & Avatar Cropping. 2026-06-22 21:23:33 +01:00
Nick Beckley
54fdc034ea Implemented the Projects listing redesign. 2026-06-22 20:58:20 +01:00
Nick Beckley
238b8223fd Merged 2026-06-22 13:45:12 +01:00
Nick Beckley
13c97db5a0 Implemented the urgent stability/performance pass.
What I fixed:
Removed the warning-calculation N+1 queries. Occupancy warnings now use one floor-plan participant query instead of per-scene character/asset lookups.
Added SceneFloorPlanParticipant_ListByFloorPlan to the existing migration script with SET ANSI_NULLS ON and SET QUOTED_IDENTIFIER ON.
Reapplied the migration locally.
Confirmed FloorPlanBlock_Save, FloorPlan_GetEditor, and the new participant proc have quoted identifiers enabled.
Reduced drag/resize freeze risk by throttling expensive geometry recalculation to animation frames instead of every pointer event.
Added a final geometry refresh on pointer-up/cancel before autosave.
Improved autosave failure visibility by showing the real error in the editor, not just leaving status stuck.
Made Occupancy mode view/staging only:Blocks no longer start drag/resize in Occupancy mode.
Resize handles are hidden.
Structural toolbox is hidden.
Plan canvas expands to use the freed width.
Structure mode restores normal editing.

Verification:
dotnet build PlotLine.slnx passes with 0 warnings and 0 errors.
Non-destructive SQL smoke test of FloorPlanBlock_Save against the Lounge block passed inside a transaction and rolled back.
Confirmed the Lounge block stayed unchanged after the rollback.
Reapplied 081_FloorPlanFloorDescriptionAndOccupancyWarnings.sql successfully.
Files changed:
[Repositories.cs](C:/Source/PlotLine/PlotLine/Data/Repositories.cs)
[CoreModels.cs](C:/Source/PlotLine/PlotLine/Models/CoreModels.cs)
[CoreServices.cs](C:/Source/PlotLine/PlotLine/Services/CoreServices.cs)
[081 SQL migration](C:/Source/PlotLine/PlotLine/Sql/081_FloorPlanFloorDescriptionAndOccupancyWarnings.sql)
[Edit.cshtml](C:/Source/PlotLine/PlotLine/Views/FloorPlans/Edit.cshtml)
[site.css](C:/Source/PlotLine/PlotLine/wwwroot/css/site.css)
[site.min.css](C:/Source/PlotLine/PlotLine/wwwroot/css/site.min.css)
Manual browser QA still needed for the exact drag/add/reload flow, but the code path and SQL save path are now stabilized.
2026-06-22 12:06:53 +01:00
Nick Beckley
7ad993aae3 Implemented the cleanup/refinement pass.
What changed:
Removed the standalone floor-plan details panel under the page title.
Added current-floor Description and editable Root Location into the Floors toolbox tab.
Added live computed Occupancy Warnings in Occupancy mode.
Preserved the existing AJAX workspace flow, including active floor/toolbox tab/mode/selected occupancy scene through refreshes.
Added floor description support via a new migration:
[081_FloorPlanFloorDescriptionAndOccupancyWarnings.sql](C:/Source/PlotLine/PlotLine/Sql/081_FloorPlanFloorDescriptionAndOccupancyWarnings.sql)
Database changes:
Added nullable FloorPlanFloors.Description.
Updated active stored procedures:FloorPlan_GetEditor
FloorPlanFloor_Get
FloorPlanFloor_ListByPlan
FloorPlanFloor_Save

Warnings are not persisted. No warning tables were added.
Files changed include:
[Edit.cshtml](C:/Source/PlotLine/PlotLine/Views/FloorPlans/Edit.cshtml)
[CoreServices.cs](C:/Source/PlotLine/PlotLine/Services/CoreServices.cs)
[Repositories.cs](C:/Source/PlotLine/PlotLine/Data/Repositories.cs)
[CoreModels.cs](C:/Source/PlotLine/PlotLine/Models/CoreModels.cs)
[CoreViewModels.cs](C:/Source/PlotLine/PlotLine/ViewModels/CoreViewModels.cs)
[site.css](C:/Source/PlotLine/PlotLine/wwwroot/css/site.css)
[site.min.css](C:/Source/PlotLine/PlotLine/wwwroot/css/site.min.css)
Verification:
Applied the new migration locally.
Confirmed FloorPlanFloors.Description exists.
Confirmed scene/occupancy source data exists for The Calendar House.
dotnet build PlotLine.slnx passes with 0 warnings and 0 errors.
Manual QA still needed in the browser: edit floor description/root location, switch Structure/Occupancy mode, step scenes, and confirm warnings/tokens update visually without jumps.
2026-06-22 11:56:01 +01:00
Nick Beckley
a943ac3da4 Implemented the targeted Scene Occupancy refinement pass. 2026-06-22 11:34:38 +01:00
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
34a8d94cb4 Implemented the Visual Identity infrastructure pass.
Changed
Added image fields for Characters and Story Assets in models, view models, repositories, services, and save flows.
Added reusable avatar/initials rendering via [AvatarHelper.cs](C:/Source/PlotLine/PlotLine/Services/AvatarHelper.cs) and [_Avatar.cshtml](C:/Source/PlotLine/PlotLine/Views/Shared/_Avatar.cshtml).
Added upload/remove processing through existing upload storage in [VisualIdentityImageService.cs](C:/Source/PlotLine/PlotLine/Services/VisualIdentityImageService.cs).
Updated Character and Story Asset list/detail/edit views with thumbnails, initials fallback, upload, replace, and remove controls.
Added styling in [site.css](C:/Source/PlotLine/PlotLine/wwwroot/css/site.css) and refreshed site.min.css.
Database
Added new migration [079_VisualIdentityCharacterAssetImages.sql](C:/Source/PlotLine/PlotLine/Sql/079_VisualIdentityCharacterAssetImages.sql).
Adds nullable ImagePath and ThumbnailPath to Characters and StoryAssets.
Applied locally and confirmed the columns exist.
Stored Procedures
Updated active procedure definitions only:
Character_ListByProject
Character_Get
Character_Save
Character_UpdateImage
StoryAsset_ListByProject
StoryAsset_Get
StoryAsset_Save
StoryAsset_UpdateImage
2026-06-22 10:10:39 +01:00
Nick Beckley
b91bdeb138 Implemented the transition refinement pass.
Changed:
[Edit.cshtml (line 29)](C:/Source/PlotLine/PlotLine/Views/FloorPlans/Edit.cshtml:29): added Sliding Door, French Door, and Ladder marker mappings/SVGs.
[Edit.cshtml (line 1729)](C:/Source/PlotLine/PlotLine/Views/FloorPlans/Edit.cshtml:1729): Ladder To Location filtering now lists placed locations on floors above, sorted by level/floor/name with clean labels like First Floor > East Hallway 1st.
[Edit.cshtml (line 2072)](C:/Source/PlotLine/PlotLine/Views/FloorPlans/Edit.cshtml:2072): Ladder renders inside the From Location using the existing position system.
[CoreServices.cs (line 7966)](C:/Source/PlotLine/PlotLine/Services/CoreServices.cs:7966): server validation now treats Ladder as a vertical upward transition, without stairs reciprocity.
[CoreModels.cs (line 1243)](C:/Source/PlotLine/PlotLine/Models/CoreModels.cs:1243): normalisation accepts Ladders.
[site.css (line 4902)](C:/Source/PlotLine/PlotLine/wwwroot/css/site.css:4902) and minified CSS: added light/dark styling for the new marker types.
No database changes. No new tables. No Features, architecture, AJAX, or secret/hidden room logic changes.
2026-06-22 09:26:19 +01:00
Nick Beckley
2cf3c7da3a Implemented the Secret Passages + Hidden Room detection pass.
Changed:
[Edit.cshtml (line 36)](C:/Source/PlotLine/PlotLine/Views/FloorPlans/Edit.cshtml:36)Secret Passage and Hidden Passage now render as dashed route overlays instead of wall markers.
Hidden Door remains a wall/shared-edge marker and follows existing adjacency rules.
Hidden locations are detected from existing transition data: visible entrances count, windows/hidden doors/secret passages/hidden passages/blocked doors do not.
Hidden room tooltip now includes Hidden location: no visible entrance.

[site.css (line 4793)](C:/Source/PlotLine/PlotLine/wwwroot/css/site.css:4793)Added subtle hidden-location hatch styling.
Added dashed secret-route styling with dark-theme support.

[site.min.css](C:/Source/PlotLine/PlotLine/wwwroot/css/site.min.css)Synced minified CSS.

No database changes. No stored procedure changes. No Features concept added.
2026-06-21 22:14:25 +01:00
Nick Beckley
1786d8c7b1 Implemented the focused Floor Plans refinement pass.
Changed:
[Edit.cshtml (line 172)](C:/Source/PlotLine/PlotLine/Views/FloorPlans/Edit.cshtml:172)Added optional grid coordinate toggle with localStorage persistence.
Added adjacent-floor ghost/reference overlay selector.
Added overlap-aware Stairs Up/Down target filtering.
Added explicit fallback button: “Show all locations on floor above/below”.
Kept door/window same-floor adjacency filtering and Hidden/Open/Secret Passage unrestricted behaviour.

[site.css (line 4534)](C:/Source/PlotLine/PlotLine/wwwroot/css/site.css:4534)Added subtle coordinate labels, ghost floor blocks, warning styling, and dark-theme support.

[site.min.css](C:/Source/PlotLine/PlotLine/wwwroot/css/site.min.css)Synced minified CSS.

Database changes: none.
Stored procedures modified: none.
No Features, no transition redesign, no schema changes.
2026-06-21 21:51:47 +01:00
Nick Beckley
11b29b2504 Implemented the tiny marker refinement. 2026-06-21 20:39:06 +01:00
Nick Beckley
f4fe8e7b79 Implemented the transition marker visual refinement. 2026-06-21 19:41:46 +01:00
Nick Beckley
7bcc6d0598 Implemented the narrower same-location wall merge. 2026-06-21 19:17:30 +01:00
Nick Beckley
0ea8b2a57e Implemented the Floor Plans visual/UI refinement pass. 2026-06-21 19:06:25 +01:00