TinyChain-Inc / TinyChain-Inc/client

[Web][W1.1] Establish visual constitution, tokens, themes, and component gallery

Open
#76 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
0
Forks
0
Avg merge
3d 8h
Merged PRs (30d)
32

Description

Objective

Create the visual and test foundation that makes subsequent TinyChain UI work implementable and visually reviewable by Tembo.

Scope

  • Versioned color, typography, spacing, radius, elevation, breakpoint and motion tokens.
  • Light, dark and high-contrast themes using semantic token names.
  • A browser component gallery built with the existing React Native Web stack.
  • Deterministic Playwright screenshot harness and documented baseline-update procedure.
  • Visual constitution covering hierarchy, density, focus, motion, responsive behavior and prohibited one-off styling.

Acceptance criteria

  • Tokens have typed exports and no component consumes raw palette values directly.
  • Theme switching does not remount application state.
  • Gallery renders in SSR and hydrates without warnings or visual shift beyond the documented threshold.
  • Screenshot artifacts are stable across two clean runs in the pinned environment.
  • Accessibility minimums and reduced-motion behavior are documented.
  • Human reviewer approves the initial visual baseline.

Parent: #7

Required visual evidence

The draft PR must provide a runnable component-gallery route plus before/after screenshots at 390×844, 768×1024, and 1440×900. Cover light, dark, high-contrast, default, hover, focus-visible, disabled, loading, empty, error, and overflow states applicable to the component. Playwright must exercise keyboard interaction and capture deterministic screenshots. A reviewer other than the implementing agent must approve intentional baseline changes; screenshot generation or a passing pixel threshold is not visual approval.

Tembo execution contract

automation:
  eligible: true
  executor_profile: tembo
  readiness: ready
  primary_repository: TinyChain-Inc/client
  base_branch: main
  writable_scope:
    - web/src/ui/tokens/**
    - web/src/ui/gallery/**
    - web/tests/visual/**
    - web/playwright.config.mjs
    - web/package.json
    - web/package-lock.json
    - web/README.md
  prerequisites:
    []
  concurrency_group: ui-foundation
  required_commands:
    - "cd web && npm ci"
    - "cd web && npm run test:all"
  external_actions: none
  draft_pr_only: true
  completion_authority: human
  visual_validation:
    required: true
    browsers: [chromium]
    viewports: [mobile, tablet, desktop]
    evidence: [component-gallery-url, screenshot-bundle, playwright-report]
    baseline_update_requires: human-visual-approval
    failure_policy: never-auto-accept-diff
  budget:
    size: large
    max_revisions: 3
    max_wall_minutes: 120

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading web/src/ui/tokens/, web/src/ui/gallery/, web/tests/visual/, web/playwright.config.mjs, and web/README.md, then run cd web && npm ci and npm run test:all. Done means a runnable SSR gallery, typed themed tokens, deterministic Chromium screenshots at the required viewports and states, documented accessibility and baseline procedures, and human approval of visual changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, react-native
Domain
accessibility, design, frontend, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.