fix(front): feed distinctive vocab into the AutorIA column (WO-12) - #117
Merged
Conversation
The <mark> highlight device from design-system section 8.4 never fired: GenerateStudio held `distinctiveTerms` in a setter-less useState initialised to `[]`, so AuthorColumn's `distinctiveTerms.length > 0` guard was always false and neither the marks nor the one-line legend rendered. - lib/style-dna.ts: new pure `selectDistinctiveTerms()` (rank by TF-IDF score, drop blanks, case-insensitive de-dup, top-10 cap) + unit tests. - app/author/[id]/page.tsx: single load point for the StyleProfile (demo-safe fixture fallback, 5 s budget), passes the terms down. - GenerateStudio.tsx: `distinctiveTerms` becomes a prop, default `[]`. The vanilla column still receives nothing - its blankness is the point. AuthorColumn's prop contract is unchanged. Empty vocab degrades to plain text. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Feeds the distinctive vocabulary into the AutorIA column of the side-by-side, which until now was not receiving it.
Why
Closes #93
Root of the frontend chain:
wo-12 → wo-13andwo-12 → wo-11.How IBM Bob helped
Claude Code agents. On frontend work orders the
ui-ux-pro-maxskill was used only as an accessibility verifier (AA contrast, touch target size), with the explicit brake thatdocs/design-system.mdis authoritative and any styling, colour or typography proposal it makes is discarded.That brake was necessary: without it, a work order that consists of swapping
amber-500for--warningturns into a redesign.Screenshots / output
Data change in the AutorIA column. Honest note: with the database unseeded, the terms it displays come from the fixture. The real quality of those terms depends on #89 and #100 — see those PRs on the fact that the vocabulary surfaces common words.
Checklist
make test)make lint)docs/.env.exampledocs/api_contract.yamlREADME.mdupdated