From 5c2248a3fdbabdef34232ecdc04d629a3d608b67 Mon Sep 17 00:00:00 2001 From: Towsty Date: Sat, 26 Sep 2026 16:00:37 -0500 Subject: [PATCH] Replace Hero/Edit-source chrome with Photos role cards. Inspector stills use plain-English roles and Mention phrases; Qwen Generate hides Photos entirely. Co-authored-by: Cursor --- assets/css/display.css | 57 +++++ components/studio2/AssetSlot.vue | 51 ++++- components/studio2/Bench.vue | 236 ++++++++++++++------ components/studio2/Mobile.vue | 45 ++-- shared/studio2/contracts.mjs | 14 +- shared/studio2/photos.mjs | 365 +++++++++++++++++++++++++++++++ tests/studio2-bench.test.mjs | 27 ++- 7 files changed, 690 insertions(+), 105 deletions(-) create mode 100644 shared/studio2/photos.mjs diff --git a/assets/css/display.css b/assets/css/display.css index 4dc8798..2f88620 100644 --- a/assets/css/display.css +++ b/assets/css/display.css @@ -718,6 +718,63 @@ cursor: pointer; } +.photos-section { + display: flex; + flex-direction: column; + gap: 10px; + margin-bottom: 4px; +} + +.photos-add { + align-self: flex-start; + color: var(--amber); + font-size: var(--type-sm); +} + +.photo-card { + display: grid; + grid-template-columns: 88px minmax(0, 1fr); + gap: 10px; + align-items: start; +} + +.photo-card .slot-thumb--slot { height: 88px; } +.photo-card .slot-thumb--empty { height: 88px; } + +.photo-card-body { + display: flex; + min-width: 0; + flex-direction: column; + gap: 6px; +} + +.photo-role-label { + display: flex; + flex-direction: column; + gap: 4px; +} + +.photo-role-select { + width: 100%; +} + +.slot-actions { + display: flex; + flex-wrap: wrap; + gap: 8px; + align-items: center; +} + +.slot-actions button, +.slot-token-btn { + color: var(--amber); + font-size: var(--type-sm); +} + +.slot-token-btn { + font-weight: 600; +} + .placeholder-still { color: var(--muted); font-size: var(--type-sm); diff --git a/components/studio2/AssetSlot.vue b/components/studio2/AssetSlot.vue index 146f028..1c551b9 100644 --- a/components/studio2/AssetSlot.vue +++ b/components/studio2/AssetSlot.vue @@ -1,24 +1,53 @@ diff --git a/components/studio2/Bench.vue b/components/studio2/Bench.vue index e0fd8b6..d504453 100644 --- a/components/studio2/Bench.vue +++ b/components/studio2/Bench.vue @@ -78,43 +78,49 @@