V1 Web PWA · Surface walkthrough

Studio Hathor · Location Modeling

A per-surface walkthrough of the V1 Web PWA studio surface: layout, states, interactions, data, and cross-references.

walked
8sections2 minread

On this page

Context. surface studio · domain hathor · route /studio/hathor/location-modeling · auth signed-in + studio entitlement · source apps/oshun/web/src/app/studio/hathor/location-modeling/page.tsx

Last walked. 2026-05-29 automated runtime walk (Playwright headless) — render, /v1 data (2xx), console/page-errors, expected content, screenshot verified; live screen-reader, touch, offline, and telemetry-delivery checks pending a manual AT pass. Evidence: WALKTHROUGH/results/runtime-sweep-2026-05-29.md; body re-derived 2026-06-03 from current source (lane-console architecture)

Purpose#

Admin lane console that assesses a single location record — condition, danger level, atmosphere, services, demographics, economy, trade routes, districts, and defenses — and returns scored diagnostics. The operator submits a JSON location object and the lane returns the assessment scores.

Entry points#

  • Quick-action link from /studio/hathor/character-modeling and /studio/hathor/domain-models (verify against those pages' sources)
  • Direct URL / bookmark — yes; alternates.canonical set to /studio/hathor/location-modeling
  • Studio overview — see ../../studio-overview.md

Layout regions#

page.tsx renders inside <ShellLayout active="studio">:

  • Workspace <StudioHathorLocationModelingWorkspace /> (data-hathor-location-modeling-workspace):
    • WorkspaceHeading <h1> — "Hathor Location Modeling Workspace"
    • Summary <p data-hathor-location-modeling-summary>
    • Location Assessment Lane<h2 data-loc-lane-heading>; holds the loading / unauthorized / error / form / result states
  • Route Map panel data-hathor-location-modeling-route-map<h2> "Route Map" listing the 5 STUDIO_HATHOR_LOCATION_MODELING_ROUTE_MAP entries (locations / landmarks / travel-routes / governance child paths)
  • Quick-action lane — three Link.quickAction anchors: Character Modeling, Timeline Modeling, Back to Studio workspace index

States#

  • Loadingdata-loc-loading while the GET catalog request is in flight
  • Unauthorized (admin-scope 401/403)data-loc-unauthorized
  • Errordata-loc-error
  • Ready (form)data-loc-enums enum hint + location textarea + submit
  • Resultdata-loc-result with data-loc-headline and data-loc-scores
  • Validation errordata-loc-assess-error

Interactions#

Location Assessment Lane#

  • Location payload<textarea data-loc-payload>, JSON { location:{ locationId, name, condition, dangerLevel, atmosphere, services[], hasDemographics, economyActivity, tradeRoutes, districts[], defenses? } }
  • Submit<button data-loc-submit> "Assess location" → POST ASSESS_ENDPOINT

Route Map panel#

  • Route entries — verify match with STUDIO_HATHOR_LOCATION_MODELING_ROUTE_MAP (5 entries)

Quick-action lane#

  • "Open Hathor Character Modeling workspace"/studio/hathor/character-modeling
  • "Open Hathor Timeline Modeling workspace"/studio/hathor/timeline-modeling
  • "Back to Studio workspace index"/studio

Data & contracts#

  • Reads: GET /v1/admin/hathor/workbench-locations (LOC_ENDPOINT; note the endpoint slug differs from the route slug — it reuses the workbench-locations admin backend) — the location enums catalog
  • Writes: POST /v1/admin/hathor/workbench-locations/assess (ASSESS_ENDPOINT) with the location record
  • Realtime: none
  • Caching: client fetch on mount, cache: 'no-store', buildBffAuthHeaders()
  • Auth/role check: admin-scoped, fail-closed on 401/403; route additionally gated signed-in + studio by the BFF proxy

Cross-references#

Open questions / known gaps#

  • The GET/POST endpoints live under workbench-locations, not location-modeling. Confirm the shared backend is intentional.
  • Hathor is unconfirmed-v1 per WALKTHROUGH/matrix/routes.csv. Confirm whether the dedicated /studio/hathor/ lane consoles ship at V1 or are internal-only.