217 Commits

Author SHA1 Message Date
Nick Beckley
f78e1ac8fc Phase 20E Build the review and edit stage for the scan preview. 2026-07-03 23:12:15 +01:00
Nick Beckley
c8302f2967 Phase 20D.1 – Character Candidate Quality Pass prompt. 2026-07-03 22:45:55 +01:00
Nick Beckley
a70527f3a4 Phase 20D Implement website-led manuscript scanning via the Word Companion. 2026-07-03 22:20:14 +01:00
Nick Beckley
6f41605f08 Phase 20C Implement Companion detection and communication readiness. 2026-07-03 21:57:45 +01:00
Nick Beckley
9b1f3e9a8d Phase 20B Extend the onboarding wizard so the user can create or select their first Project and create or select their first Book as part of onboarding. 2026-07-03 21:36:03 +01:00
Nick Beckley
c8dc116862 Phase 20A Story Intelligence Onboarding. 2026-07-03 21:04:06 +01:00
Nick Beckley
2ebaf98cf9 Added Features page 2026-07-01 21:14:53 +01:00
Nick Beckley
d334661178 Phase 17Z - Legacy Retirement and Cleanup 2026-06-30 19:32:13 +01:00
Nick Beckley
c54da61524 PlotDirector Phase 17K - Character Attributes Editor Migration 2026-06-30 16:04:14 +01:00
Nick Beckley
2af1feb412 PlotDirector Phase 17I - Relationship Editor Migration 2026-06-30 15:27:55 +01:00
Nick Beckley
36a4c76921 PlotDirector Phase 17H - Character Knowledge Editor Migration 2026-06-30 15:16:13 +01:00
Nick Beckley
4ae45ab8f9 PlotDirector Phase 17B - Scene Core Focused Editors 2026-06-30 09:44:47 +01:00
Nick Beckley
7356a1c6b1 Phase 16Q - Manuscript Unlink and Recovery Tools 2026-06-29 14:08:56 +01:00
Nick Beckley
524515e9b6 Phase 16O - Review and Accept Word Companion Location Suggestions 2026-06-29 13:37:50 +01:00
Nick Beckley
6867dfad77 Phase 16N - Conservative Live Location Detection 2026-06-28 22:28:40 +01:00
Nick Beckley
1f6a88a175 Phase 16M - Location Detection Foundation and Alias Improvements 2026-06-28 22:15:29 +01:00
Nick Beckley
c8ae73a954 Phase 16L - Review and Accept Word Companion Asset Suggestions 2026-06-28 21:58:54 +01:00
Nick Beckley
c8bae2d1d1 Phase 16K - Live Asset Detection While Writing 2026-06-28 21:49:21 +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
d442de5837 Phase 16F - Scene Word Count Sync and Writing Progress Update 2026-06-27 22:07:17 +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
ced6f4cd0e Phase 16B - Manuscript Binding and Linked Structure Foundation 2026-06-27 19:14:01 +01:00
Nick Beckley
3c48301732 Phase 16A - Base Identity Model Cleanup and Chapter/Scene Foundation 2026-06-27 18:59:31 +01:00
Nick Beckley
18a14bbd01 Public SEO pass. 2026-06-25 19:46:23 +01:00
Nick Beckley
19d9bc4bb1 mplemented the public navigation and SEO coverage pass. 2026-06-24 10:57:18 +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
ac14776e45 Phase 15B - Feature Request Workflow, Filtering and Admin Productivity 2026-06-23 21:38:41 +01:00
Nick Beckley
955fcb9c0f Phase 15A - Feature Request System Foundation and User Workflow 2026-06-23 21:25:59 +01:00
Nick Beckley
43578df18a Fixed The Relationship Map was rendering the avatar placeholder correctly, but the data feeding the map did not include avatar image paths because RelationshipMap_GetByProject only returns basic character fields.
I updated [CoreServices.cs](C:/Source/PlotLine/PlotLine/Services/CoreServices.cs) so RelationshipMapService enriches map nodes from the normal character list, which already includes AvatarImagePath / AvatarThumbnailPath. Maggie Grant’s node detail should now use her avatar image instead of falling back to MG.
Verification: separate-output build passed with 0 warnings and 0 errors.
No database changes were required.
2026-06-23 21:05:45 +01:00
Nick Beckley
b5b353e80c Implemented the targeted Timeline performance pass and applied the SQL locally. 2026-06-23 20:38:58 +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
5f8ff0c0dd Implemented the PlotDirector export/import completeness pass. 2026-06-22 20:03:08 +01:00
Nick Beckley
350b8ba9ab Implemented the focused Floor Plans performance pass.
Measured findings:
Authenticated Calendar House editor load measured around 600 ms locally.
SQL calls were generally around 50-65 ms after warm-up.
The main recent bloat was the Help UI wiring: the editor had 615 help icons and about 1.5 MB of HTML.
Optimisations made:
Reduced repeated hidden help icons in [Edit.cshtml (line 409)](C:/Source/PlotLine/PlotLine/Views/FloorPlans/Edit.cshtml:409), especially per-block editors and repeated transition edit modals.
Help icons now measure at 107, with HTML reduced to about 1.26 MB.
Optimised occupancy warning calculation in [CoreServices.cs (line 7883)](C:/Source/PlotLine/PlotLine/Services/CoreServices.cs:7883) by grouping occupancy rows once instead of repeatedly scanning them per scene.
Added new index migration [083_FloorPlanEditorOccupancyIndexes.sql](C:/Source/PlotLine/PlotLine/Sql/083_FloorPlanEditorOccupancyIndexes.sql) for Floor Plan scene/occupancy lookups. Applied locally.
Verified:
Structure/Occupancy mode still works.
Previous/Next scene changes the selected scene.
Tokens and transitions still render.
Help icons still resolve to articles.
dotnet build PlotLine.slnx passes with 0 warnings and 0 errors.
No Floor Plans behaviour, transition logic, occupancy data model, or feature architecture changes.
2026-06-22 16:58:20 +01:00
Nick Beckley
f4a455f70b Implemented the Floor Plans Occupancy scene dropdown fix.
Changed:
[CoreModels.cs (line 308)](C:/Source/PlotLine/PlotLine/Models/CoreModels.cs:308) now maps book/chapter metadata onto Scene for ordering/labels.
[CoreServices.cs (line 7818)](C:/Source/PlotLine/PlotLine/Services/CoreServices.cs:7818) now orders occupancy scenes by book, chapter, scene, title and labels them like:
Book 1, Chapter 1.00, Scene 1.00: Arrival at the House
Added and applied [082_FloorPlanOccupancySceneOrdering.sql](C:/Source/PlotLine/PlotLine/Sql/082_FloorPlanOccupancySceneOrdering.sql) to update Scene_ListByFloorPlan.
Verified:
Database query for The Calendar House now returns Chapter 1 scenes in order, then Chapter 2 scenes, etc.
dotnet build PlotLine.slnx passes with 0 warnings and 0 errors.
No schema changes, no occupancy model changes, no floor plan rendering changes, and no transition changes. Previous/Next should follow the corrected order because it uses the same ordered scene list in the dropdown.
2026-06-22 13:24:46 +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