Skip to content

docs: [SDK-5844] refresh demo styles and build spec to match the Android reference - #76

Merged
fadi-george merged 41 commits into
mainfrom
fadi/sdk-5844
Dec 1, 2026
Merged

fadi-george merged 41 commits into
mainfrom
fadi/sdk-5844

Conversation

@fadi-george

@fadi-george fadi-george commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

Update the demo spec (demo/styles.md, demo/build.md) to match the refreshed Android reference demo, and adjust the Appium tests for the renamed logs and the removed user Status row.

Android reference implementation: OneSignal/OneSignal-Android-SDK#2860.

Details

styles.md

  • New palette tokens (ink, grey scale, card and control borders, divider, switch track) and a #F7F7F7 app background.
  • Google Sans Flex for all text, bundled as static instances (OFL).
  • Type scale: section headers 15 semibold title case, row labels 13 medium, buttons 13 medium title case.
  • Buttons: Primary (red fill) and Secondary (1.5 border in osControlBorder, osInk label), radius 10, pressed state darkens 12%.
  • Section spacing 20, card padding 16 horizontal / 12 vertical.
  • Card rows with a copy button, guidance banner above the App card, list rows with no own padding and an optically centered divider, Log View header Logs with tabular timestamps, dialogs with title case actions.

build.md

  • Button style table with title case labels, two column grid, and the In-App Message button order.
  • User section: Login, Login With Profile (composite login with status selects, optional tag and alias rows), Update User JWT, automatic JWT user fetch, and the addUserJwtInvalidatedListener log (JWT invalidated: {externalId}).
  • Copy-to-clipboard buttons on identifier rows (no snackbar where the OS shows its own clipboard preview).
  • Guidance banner shown only for the default App ID, shorter notification logs (Notif willDisplay:, Notif click:), dialog backdrop and layout notes.

Appium

  • countLogMessages / expectOneNewLog accept regex parts, and the notification checks accept both the old Notification ... and new Notif ... wording, so demos that haven't migrated yet keep passing.
  • User spec checks the external ID instead of the removed Status row.

No breaking changes for other demos beyond the Status row removal, which every demo picks up as it adopts the spec.

🤖 Generated with Claude Code

fadi-george and others added 30 commits November 24, 2026 16:33
The Status row duplicates the External ID row, so demos are dropping it.
The User spec now asserts on user_external_id_value, and build.md no
longer specs the row or the user_status_value tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Update User JWT buttons

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…te fields

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tional

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s and dialogs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Buttons 40, section spacing 16, scroll top 16, compact inputs (~44),
denser dialog padding with 12 between fields, toggle rows without the
48dp tap-target padding, buttons with no built-in vertical margin, and a
field group caption style.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e compact row style

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… in build.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…isplay:"

build.md now specs the shorter line. The push helper matches either
wording so demos can switch one at a time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
build.md now specs the shorter line. The push helper and the
notification click spec match either wording during the rollout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Google Sans Flex, a cooler grey palette with osInk text and #F7F7F7
background, 13 medium row labels and button text, two button styles
(primary and outlined secondary with a neutral border), darker pressed
state, copy buttons on ID rows, guidance banner above the App card,
tabular log timestamps and the restyled Log View header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…build.md

Per-section primary/secondary table, IAM grid order (Top, Center,
Bottom, Full first), copy buttons on App ID, External ID and Push ID
with the Android 13+ snackbar exception, shorter guidance banner text,
LOGS count badge and SecondaryButton in place of DestructiveButton.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…components and identifiers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fadi-george and others added 10 commits November 25, 2026 15:55
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… {externalId}"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Section headers stay the only uppercase text. build.md keeps button
names in caps in prose and lists the rendered Title Case labels in the
Button Styles table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gives the 15 semibold section headers room above them, most visible
where a section ends in a button row. Scroll top stays 16.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nan-li
nan-li previously approved these changes Dec 1, 2026

@nan-li nan-li left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice spec refresh and backward-compatible Appium matchers. I found 3 small spec contradictions in demo/build.md and demo/styles.md (default App ID, fetchUser signature nullability, and the old Scrollable List bottom padding). None of these block the Appium tests, so I left them inline.

Comment thread demo/build.md Resolved
Comment thread demo/build.md Resolved
Comment thread demo/styles.md Resolved
Make fetchUser's onesignalId optional to match the JWT lookup path, use
the 1154c350 default App ID in the Configuration table, and drop the old
Scrollable List bottom padding in favor of Scroll bottom.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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