Skip to content

docs(android): reconcile native tier-2 contracts - #46

Open
altaywtf wants to merge 4 commits into
mainfrom
docs/android-contract-reconciliation
Open

docs(android): reconcile native tier-2 contracts#46
altaywtf wants to merge 4 commits into
mainfrom
docs/android-contract-reconciliation

Conversation

@altaywtf

@altaywtf altaywtf commented Aug 29, 2026

Copy link
Copy Markdown
Member

Summary

The Android tier-2 cards were still grounded in the replaced React Native app and a stale pre-Expressive navigation metric. This reconciles the contract and specimens with the measured native Compose implementation while leaving font delivery and production launcher artwork open in #43.

Changed

  • Split phone/tablet Material 3 and Android TV Compose for TV role mappings, including container, inverse, secondary, background, and TV border roles
  • Corrected the phone navigation indicator to 56x32dp and the destinations to Files, Search, Transfers, and Account
  • Reworked the TV cards around Compose for TV focus/navigation, 2x artboard-to-dp relationships, the 42px Phosphor glyph, and platform-owned launcher surfaces
  • Scoped generic-TV React Native ownership to tier 4 and documented Android TV as a separate Compose presentation
  • Documented SWFfile-code and native putio-android adoption without adding platform-native outputs here
  • Aligned deployed progress, tonal-button, slider, and TV-focus specimens with the mapped Material roles

Verification

  • pnpm verify on 6c619bb
  • Focused Playwright run: 17 passed, including dark/light guide accessibility and affected Android/TV previews
  • Full Playwright run: 371 passed; the 2 whole-guide Axe jobs timed out at 30 seconds under 5-worker load, then passed 2/2 on the immediate serial rerun
  • npm pack --dry-run: 30 files / 750.3 kB
  • git diff --check
  • Codex gpt-5.6-sol high slopguard: one remaining ownership contradiction found and fixed in 761f0c6
  • GitHub Codex follow-up: 3 P2 findings fixed in 6c619bb, answered with commit proof, and resolved

Review Notes

  • Screenshots for the initial visual guide changes:

    Android navigation Android TV shell Android TV resume prompt
    Android Material 3 navigation contract card Android TV Compose for TV shell contract card Android TV resume prompt with visible progress track and unfocused button border
  • Follow-up proof for 6c619bb:

    Android scheme · dark Android scheme · light Android TV focus
    Split Android Material 3 and Android TV Compose for TV scheme mappings in the dark guide Split Android Material 3 and Android TV Compose for TV scheme mappings in the light guide Android TV focus specimen distinguishing inverseSurface chrome from preferred primary actions
    Progress Tonal button Slider
    Material progress specimen with secondaryContainer track Material tonal button specimen with secondaryContainer and onSecondaryContainer roles Material slider specimen with secondaryContainer inactive track
  • Android TV guide cards are dark-only; light and dark capture requests intentionally render the same locked surface

  • Package, deploy, or release impact: the static guide changes after merge; no token, package API, generated artifact, Kotlin, Android XML, or release configuration changes

  • Follow-up work: Android binding review: ground the Android cards in putio-android shipped source #43 remains open for embeddable font files/licensing and production launcher artwork; Android adapter adoption belongs in putio-android

Copilot AI lite review requested due to automatic review settings August 29, 2026 11:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T14:15:41.790613Z 6c619bb New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The Android TV continue-watching specimen reduces visual affordance/contrast (progress track and unfocused buttons blend into the dialog), and the Android phone/tablet navbar destination set is now inconsistent with other Tier‑2 Android preview cards.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the Tier‑2 “native” documentation/spec previews to better match current Material 3 + Compose (phone/tablet) and Compose for TV (Android TV) color-role contracts, and reconciles several preview specimens with the updated contract.

Changes:

  • Update Android TV preview cards to use Compose for TV role naming (surfaceVariant, border, inverseSurface) instead of surfaceContainer* / outline.
  • Update Android (phone/tablet) specimens for the current NavigationBar indicator geometry (56×32dp) and revise example destinations.
  • Expand platforms/android/DESIGN.md and system/preview/_android.css with explicit phone/tablet vs TV color-role mappings and updated contract wording.
File summaries
File Description
system/preview/androidtv-s03-continue-watching.html Updates the Continue Watching dialog specimen to reference surfaceVariant instead of surfaceContainer/surfaceContainerHighest.
system/preview/androidtv-s02-account.html Updates Tier‑2 token role callouts to use inverseSurface / surfaceVariant semantics for TV.
system/preview/androidtv-s01-search.html Updates TV role naming (surfaceVariant, border) and clarifies focused chip fill role.
system/preview/androidtv-s00-shell.html Updates TV shell role callouts and aligns icon sizing + focus color role naming (inverseSurface).
system/preview/android-s00-shell.html Revises phone/tablet Tier‑2 copy, nav indicator geometry, and example bottom-nav destinations.
system/preview/android-e02-navbar.html Updates the NavigationBar specimen to the 56×32dp indicator geometry and updates example destinations.
system/preview/_android.css Adds explicit phone/tablet vs TV role→token mapping documentation and updates some specimen geometry.
platforms/android/DESIGN.md Expands the binding contract to separately document phone/tablet vs TV color schemes and updates adoption/contract language.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 4
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread system/preview/androidtv-s03-continue-watching.html Outdated
Comment thread system/preview/androidtv-s03-continue-watching.html Outdated
Comment thread system/preview/android-s00-shell.html
Comment thread system/preview/android-s00-shell.html

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 53666cb42f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread platforms/android/DESIGN.md
Comment thread system/preview/androidtv-s03-continue-watching.html Outdated
Comment thread platforms/android/DESIGN.md

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 761f0c6020

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread system/preview/tv-f01-focus.html Outdated
Comment thread platforms/android/DESIGN.md
Comment thread platforms/android/DESIGN.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants