Files
progcode/docs/design-system/concept-v3/ui-kit-contract.md
T
huncode 12562baeb5
Build and deploy / deploy (push) Successful in 2m39s
Implement ProgCode identity and real shared reading UI kit
2026-10-27 15:19:49 +03:00

7.6 KiB
Raw Blame History

V3 / proposed kit contract and completeness plan

27.10.2026 · designer · document-only; not an implemented UI-kit PASS. Read direct root uiKitCompletenessBlocker and theme requirement. The board is one HTML/CSS/JS prototype; it demonstrates shared primitives across full compositions, not production FSD integration. Main PE inventory is independent source evidence; this document does not replace it or attribute review to coordinator atlas57715.

Foundations and composition

Theme roles: canvas, surface, primary/secondary ink, subtle line, action/link/focus, signal, stable code surface/text. Light #f5f7fa/#fff/#142035/#526179/#c1cad8/#1648c6/#e6ff57; dark #111b2c/#18253a/#edf2fd/#b3c0d7/#596b87/#9dbaff. Signal never body text. Proposed control border must meet3:1; do not adopt subtle decorative divider as input boundary. Figure well stays white with original source colours. Error uses text plus edge, not colour alone.

Typeface: local Arial/Helvetica; body19px/1.7 desktop,18px/1.7 mobile; code14px/1.7 monospace. Reading720px; general shell1328px with32px desktop/20px narrow gutters. Desktop rail180+48+720. Below800 rail moves above body. Heading hierarchy: hero86max, article63max, section31, entry25/23. No line-clamps. Space8/16/24/32/48/64; home uses one focus article and question-led continuations; catalogue linear; service uses720prose; kit specimens use two desktop columns/one narrow column. Physical55–80characters require actual line measurement; CSS width alone is not proof.

Page-derived ownership, API and review ledger

Source paths below are existing F6 owners inspected read-only, not a claim that new prototype CSS is implemented there. Proposed API retains their semantics and adds no framework migration.

Component / anatomy and API Actual source owner Existing real consumer → prototype composition Necessary variants, states, keyboard / responsive
Brand(symbol,className,props); home anchor + decorative vector web/fsd/shared/ui/primitives.jsx Brand site-shell → all8views Full/symbol; light/dark; native16/32/48 A/B separate proposals; visiblefocus; mobilebrand/dropdownfit
Button(type,variant,disabled,children), ActionLink(href,variant), TextLink(href) same file JSON, search, related, footer,404 → same board actions primary/secondary/disabled; hover/focus; Enter/Space forbutton, Enter forlink;44px target where meaningful
Field(id,label,hint,inputProps); TextArea(id,label,hint,textareaProps) same file JournalSearch/JsonEditor → catalog/workshop label/hint/error describedby; empty/input/focus; no placeholder-onlylabel; narrow input owns fullwidth
StatusMessage(tone neutral/success/error,children) same file JsonEditor/JournalSearch → live #jsonstate/#count polite status; valid/error/zero/reset/copy-denied; text independently conveysstate
ScrollRegion(label,tabIndex,children) same file Prose/ContentAccess → D84code and CTFEtable namedfocusregion, Tab+arrows/touch; entire document does notscroll horizontally
Prose(html or children) same file article-reader/servicepages → full14bodies+4services H2/H3,lists,links,code,table,figure/caption; shortHello no fabricatedTOC; fullGCmiddle/end
Tag(children) / ArticleMeta(article) primitives.jsx + entities/article/ui/ArticleMeta.jsx article/list/UIkit → topic/date/publisher Date exact; distinguish publisher from originalauthor/translator; sourcebodyattribution preserved
ArticleListItem(article) web/fsd/entities/article/ui/ArticleListItem.jsx journal-index/home/catalog → entry title/excerpt/date/category; narrow noarrowsidecolumns; IDs only catalogue, not inventedlearningsteps
ArticleFigure(figure) web/fsd/entities/article/ui/ArticleFigure.jsx article-reader → GC/Bitrixspecimens whitewell dark; untouchedmedia; caption full;435previewmaxnative
ThemeControl / ThemeInit web/fsd/features/theme-selection/ui/{ThemeControl,ThemeInit}.jsx site-shell → native select allviews System/light/dark, prepaint, localpersistence, matchMediachange; keyboard/Home/arrows; blockedstoragefallback
JournalSearch(articles) web/fsd/features/journal-search/ui/JournalSearch.jsx journal-index → catalog query/topic controls/resultcount/list/zero/reset; all6categories; searchtextlocal; exact3Bitrix/0Rust/14reset
JsonEditor web/fsd/features/json-editor/ui/JsonEditor.jsx json-workbench → workshop valid/error/emptydisabled/format/copy/copy-denial; no fakecapacitypromise; actualJSON.parse
ContentAccess web/fsd/features/content-access/ui/ContentAccess.jsx article-reader → focusablecode/table Full integration pendingimplementation: prototype inlinecodehandler is not sourceAPI acceptance
SiteHeader/Footer web/fsd/widgets/site-shell/index.jsx all real pages → all8boardviews sharedbrand/nav/theme/services; keyboard skip; activecurrent; no processjargon/productpopups
ArticleReader(article,related) web/fsd/widgets/article-reader/index.jsx articlepage → fullarticleview TOCvalidanchors, completebody, typedcontextualrelated; mobileTOCsensible; role attribution
RelatedReading web/fsd/widgets/related-reading/index.jsx articlepage → proposed per-article relatedmap GC→CTFErepresentation/GC→Vibewait/GC→Tilixexperience; Hello→catalog; no globalCTFECTA
JournalIndex / JsonWorkbench web/fsd/widgets/{journal-index,json-workbench}/index.jsx home/tools → catalogue/workshop sharedprimitives assembled, not demo-only componentgraveyard
Fullpage compositions web/fsd/pages/{home,catalog,article,json-tool,privacy,sources,accessibility,not-found}/index.* actual8pageowners → #home/#catalog/#article/#kit/#privacy/#sources/#accessibility/#missing proposed sharedtokens +brand/links/prose/controls; desktop/mobile, both themes; no Reactrewriteclaim

What the visible board really demonstrates

The15row visible inventory links foundations, anatomy, consumers and states. Actual prototypes of all8full compositions are reachable in footer/nav. All14 complete corpus articles remain available through the catalogue. Kit has source-specific ownerlinks/dates for Webpack, full Dmodule in disclosure, CTFE3columns4datarows, GCcaption and Bitrixpreview. Every article uses the same prose/metadata/TOC/related system; services reuse prose/links/action. NativeA/Bmark panels are fixed16/32/48 CSSpixels in light/darkwells, separate from accepted productionassets.

Open checks and gates, not assumed passes

  • Designer must record exact HTML revision, actual opened pixels and interaction results after final pin. CapturedPNG alone is not personal review. Independent CD/CM ledger lives next to this file and belongs to those reviewers, not this author.
  • Need actual line measurement, semanticpair contrast (controlboundaries too), all required hover/focus/disabled/status states in both themes; forced-colours and reducedmotion; unknown-browser limits explicit.
  • Prototype localstorage and matchMedia functionality do not prove production prepaint/no-flash across all settings. True200%browserzoom not tested here. No screenreader or cross-browsercertification implied.
  • Source→consumer map is inspectedF6 evidence. Proposedkit implementation and API consistency must be reviewed on a future exact app build; the standaloneprototype cannot close FSD/production/CI/live/SDKgates.
  • Keep empty/copydenied/error cases real; if browserclipboardpermission is unavailable, record that limitation or actualdenial ratherthan fabricate success.
  • No sibling visualcomparison claimed. Read purpose-differentiation.md: functionalcomparison from actualrootbriefs only; gannicus/codeisart are explicit nearestclonerisks.