Commit graph

13 commits

Author SHA1 Message Date
Phil Dore
586cb57155 Simplify Stage 8 syndication and derive Advisor Stage 6 complexity
- Stage 8: replace 3x3 complexity x EAN grid with single syndicationType
  dropdown -- Salsify Prep Only (4d), Syndication PDP (5d), Syndication
  Non-PDP (3d). Advisor maps contentType to PDP/Non-PDP only; Salsify
  Prep Only is not surfaced in the Advisor (team decision).
- Stage 6 (Advisor): derive complexity from staticWorkType / videoWorkType
  / needsHTML toggles via deriveProductionComplexity helper. Precedence
  bespoke > creation > complex > simple, max across enabled toggles.
  HTML-only falls back to complex (placeholder, may revisit).
- Bump config.json cache-bust to 2026050801.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-08 13:24:02 +01:00
Phil Dore
5e301b68c1 Update production day estimates per v3 amends (06/05/26)
Simple row reduced across all brackets (4/5/7/7/7 → 2/4/6/6/6). Creation reshaped (5/10/11/13/13 → 7/9/11/11/11). Simple default revision rounds 1 → 2. Complex, bespoke and Opera Upload unchanged. Cache-bust bumped to 2026050601 on both scripts so browsers refetch the new config.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 17:37:51 +01:00
Phil Dore
45238e7a9b Bump config.json cache-bust version to 2026050101
Forces browsers to fetch updated config.json with revised production day estimates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 17:00:47 +01:00
Phil Dore
375ca684a1 Fix Gantt red line offset: add LABEL_W to marker position in both charts
The deadline marker was positioned relative to the outer container but
calculated relative to the timeline column only, placing it LABEL_W px
too far left. Adds LABEL_W offset so EST. COMPLETION (Advisor) and
SUGGESTED LIVE (Calculator) lines land on the correct dates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 11:36:31 +01:00
Phil Dore
d19f7e7864 Brief Advisor: amends from Internal Ops Review + asset bracket expansion
- Rename 'live by' label to 'When do you need Oliver tasks completed by?'
- Remove 2-week syndication buffer from calculation and all caveat text
- Add 'Brief Accepted By' + 'Submit Brief By' (2 days earlier) dual lozenges
- Update caveat to include 'assume suitable working files have been provided'
- Add rounds of amends inputs per content type (Static, Video, HTML, Translation)
- Remove handover days from all stage calculations
- Port Gantt sub-phase view to Brief Advisor (WIP/Feedback/Revision, Download PNG)
- Add hidden SLA one-pager link placeholder (#slaPagerLink)
- Restore 200–300 and 300–400 asset volume brackets in Brief Advisor dropdown

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 12:17:07 +01:00
Phil Dore
2a811ca3a1 Update asset volume brackets to 3 tiers and revise production/Opera Upload days
Simplifies asset volume from 6 brackets to 3 (0–50, 50–100, 100–200) per team sign-off.
Updates Production cross-reference table and Opera Upload day map to match new brackets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 17:58:11 +01:00
Philip Dore
d1d43d603c SLA Brief Advisor: updates from brief docs 1 & 2
- HTML/Rich media default brief type → Creation (was Adaptation)
- Video dropdown now shows all brief types (same as static)
- Static + Video combined: new asset wins over adapting → Creation
- Urgent Brief: hide deadline banner, timeline, and summary cards
- Urgent Brief: add Show/Hide timeline details toggle
- Urgent Brief (eventing, 0-30, static resizing): 6 hrs production + confirmation time
- Video tab: removed (new KV & Visual ID) label, restricted to Adaptation/Creation with video-specific descriptions
- Static feedback days label updated with urgent brief note

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 18:08:58 +00:00
Alessandro Benedetti Admin
21ec93f966 Add usage analytics: event tracking, API, and dashboard
Track page views, results clicks, copy-to-email on market page.
Track login events with auth method (SSO/email) and L'Oréal domain detection.
New analytics.html dashboard with charts (Chart.js), period/page filters.
Localhost auth bypass for local dev testing.

Post-deploy: run npm run migrate to create usage_events table.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 11:41:50 +00:00
Alessandro Benedetti Admin
a1abbbc2a9 Add static work type sub-selector and brief type override dropdown
Form: When Static imagery is toggled ON, shows 3 radio options:
- New Asset (creation) — default
- Adapting existing (adaptation)
- Resizing / Cropping (simple)
This feeds into determineBriefType() for smarter auto-suggestions.

Results: Replace static brief type text with a dropdown populated
from all 9 brief types in config.json (consistent with full calculator).
Changing the dropdown recalculates the entire timeline instantly.
Description shown in blue info box with bullet points.
Notes when brief type was manually changed from suggestion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 17:16:54 +00:00
Alessandro Benedetti Admin
d98dadec8f Fix: Translation/Syndication toggles now override base stage matrix
The base stage matrix for brief types like country_pull_adaptation
includes Translation stages by default. In the Brief Advisor, the
user's toggles should be authoritative — if Translation is OFF, those
stages must be removed regardless of the base matrix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 14:01:09 +00:00
Alessandro Benedetti Admin
ac9a3f057b Allow decimal feedback days (0.1 step) in Brief Advisor
- Add step="0.1" to all 4 feedback day inputs (static, video, HTML, translation)
- Change parseInt → parseFloat so fractional values like 0.5 or 2.5 are preserved
- Business day arithmetic naturally rounds up fractions to next whole business day

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:12:55 +00:00
Alessandro Benedetti Admin
80d90da95e Market Brief Advisor: copy for email, timeline dates, syndication default, verdict fix
- Add Copy for Email button with rich HTML table (Outlook-compatible)
- Show start → end dates on each timeline stage row
- Syndication toggled ON by default
- Fix translation feedback default to 5 days (matches config.json)
- Restore form validation (disabled button until all fields filled)
- Fix verdict logic in full calculator to include syndication buffer
  in deadline comparison (suggestedGoLive vs goLive)
- Differentiate verdict message: production-over vs syndication-short
- Update README with client estimator docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:00:46 +00:00
Alessandro Benedetti Admin
b261df2387 Rename client→market, add feedback days, earliest go-live, update disclaimer
- Rename client.html → market.html and client-script.js → market-script.js
- Update top disclaimer to match bold amber results banner
- Add collapsible "Days needed for feedback" field on each toggle
  (Static, Video, HTML, Translation); feeds into stage calculations
- Add "Earliest Go-Live" card in results showing the soonest possible
  date if the brief were submitted today
- Update deploy.sh with new filenames

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 11:38:47 +00:00
Renamed from client-script.js (Browse further)