Keep workspace restore controls visible in PWA ribbons
This commit is contained in:
parent
b7d87c72df
commit
86509cb4db
@ -96,3 +96,9 @@ When WritingSolver:EnableIndexing is false, sitemap generation now skips loading
|
||||
Verification: solution build and full harness passed, including eligible solution URLs, inactive/unindexed exclusions and Development/Production indexing boundaries. Read-only live public audit found 505 sitemap URLs and exactly 52 solution pages, all successful with matching clean canonical URLs, unique descriptions, one H1 and parseable structured data; none had noindex metadata. Development GET verified X-Robots-Tag: noindex, follow. Public robots points at the canonical production sitemap. No Production changes performed. Audit details in /tmp/plotdirector-public-seo-audit.json (temporary evidence).
|
||||
|
||||
Deployment preflight: verified effective database name PlotDirector_Development. Read-only status counts show no queued/running intelligence jobs, runs, synthesis, enrichment or import commits; pipeline is NeedsReview and candidate generations Ready. Recheck immediately before any restart.
|
||||
|
||||
### C2 follow-up — Directly visible Restore control
|
||||
|
||||
Visual review found Maps could compact Restore workspace into an overflow menu. Marked Maps and Floor Plans Workspace contributions essential, matching Relationships. Strengthened maximise coverage to require a directly visible restore button, rather than merely an existing ribbon command. Initial investigation incorrectly suspected the shared essential-group reader; the existing Relationships test demonstrated that logic was already correct, so it was retained.
|
||||
|
||||
Verification: build passed; all-editor/four-theme browser/PWA maximise suite and Relationships ribbon suite passed. General toolbar, PWA cache/privacy, responsive-content and Plot Lines narrative-map regressions also passed during the broader audit. Release publish succeeded, but is superseded by this follow-up and the next Floor Plans reliability repair; nothing deployed yet.
|
||||
|
||||
@ -23,6 +23,7 @@ const assert=require('node:assert/strict');
|
||||
assert(await page.locator('[data-pwa-context-controls]').isVisible());
|
||||
const restore=page.locator('[data-pwa-context-controls]').getByRole('button',{name:'Restore workspace',exact:true,includeHidden:true});
|
||||
assert.equal(await restore.count(),1,'Context ribbon keeps restore command');
|
||||
assert(await restore.isVisible(),'Restore remains directly visible without opening an overflow menu');
|
||||
const bounds=await app.boundingBox(),header=await page.locator('.pd-application-header').boundingBox();
|
||||
assert.ok(bounds.y>=header.y+header.height,'canvas stays below contextual ribbon');
|
||||
}
|
||||
|
||||
@ -196,7 +196,7 @@
|
||||
<button class="btn btn-primary btn-sm" type="submit" form="floor-plan-layout-form" data-ribbon-icon="save" data-save-layout-button>Save layout</button>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" id="floorPlanMaximise" data-pwa-context="Workspace" data-ribbon-icon="maximise" class="btn btn-outline-secondary btn-sm" aria-pressed="false"><span data-workspace-caption>Maximise workspace</span></button>
|
||||
<button type="button" id="floorPlanMaximise" data-pwa-context="Workspace" data-pwa-essential="true" data-ribbon-icon="maximise" class="btn btn-outline-secondary btn-sm" aria-pressed="false"><span data-workspace-caption>Maximise workspace</span></button>
|
||||
<div class="floor-plan-occupancy-scene-row" data-occupancy-controls hidden>
|
||||
<label class="floor-plan-reference-control">
|
||||
<span class="muted">Scene <help-icon key="floorPlans.occupancy.sceneSelector" mode="inline" /></span>
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<button type="button" id="mapsArrange" data-pwa-context="Arrange" data-ribbon-icon="auto-arrange">Arrange from relationships</button>
|
||||
<button type="button" id="mapsAppearance" data-pwa-context="Map appearance" data-ribbon-icon="settings">Map appearance</button>
|
||||
<button type="button" id="mapsDetach" data-pwa-context="Workspace" data-ribbon-icon="separate-window">Open in separate window</button>
|
||||
<button type="button" id="mapsMaximise" data-pwa-context="Workspace" data-ribbon-icon="maximise" aria-pressed="false"><span data-workspace-caption>Maximise workspace</span></button>
|
||||
<button type="button" id="mapsMaximise" data-pwa-context="Workspace" data-pwa-essential="true" data-ribbon-icon="maximise" aria-pressed="false"><span data-workspace-caption>Maximise workspace</span></button>
|
||||
</header>
|
||||
<div id="mapsStoryToolbar" class="maps-story-toolbar" hidden>
|
||||
<form data-pwa-context="Story lens" data-pwa-scope="Story lens"><label>Story lens <select id="mapStoryLens" aria-label="Story lens" name="lens"><option value="overview">Overview</option><option value="scene">Scene</option><option value="character">Character</option><option value="chapter">Chapter</option><option value="plot">Plot Line</option><option value="time">Time</option></select></label></form>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user