Skip to content

feat(skin)!: replace O2 skin with O2-new#1616

Open
brtbrt wants to merge 10 commits into
mbertamini/1596-remove-tu-skinfrom
mbertamini/1597-remove-o2new-skin
Open

feat(skin)!: replace O2 skin with O2-new#1616
brtbrt wants to merge 10 commits into
mbertamini/1596-remove-tu-skinfrom
mbertamini/1597-remove-o2new-skin

Conversation

@brtbrt

@brtbrt brtbrt commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Closes #1597. Part of #626 — Major release plan 17.0.0.

Changes

  • Replaces the old O2 skin definition with the O2-new design (beyondBlue palette, new border radii, updated icon styles).
  • Removes the separate O2-new skin entirely — O2_SKIN is now the canonical constant.
  • Deletes src/skins/o2-new.tsx, src/logo-o2-new.tsx, src/logo-o2-new-shell.tsx, css/o2-new.css.
  • Updates all generated icons, screenshot tests, stories, Storybook config, Playroom config, and the vanilla CSS example.
  • Removes the remaining o2-new references in the accessibility audit action, the design-token and icon-import generators, and the docs.

Stack position — 3 of 9

This PR is stacked on top of the skin-cleanup series and must not merge into master directly:

Merge #1608 and #1609 first; GitHub will automatically retarget this PR to master as each parent lands.

For the full merge strategy, see #626.

Marcosld and others added 5 commits July 1, 2026 12:43
## Summary

- Bumps `@telefonica/acceptance-testing` from `5.3.1` to `5.4.0`.
- Updates `yarn.lock` and the Yarn zero-install cache accordingly.

## Test plan

- [x] Verify CI passes (unit tests, acceptance tests, lint).
- [x] Confirm the Terraform plan (if applicable) is unaffected.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…1612)

Closes #1613

## Summary
Fixes a validation regression where a mandatory `Select` (no `optional`
prop) did
not display the "this field is required" error after submitting a `Form`
on the
desktop (non-native) variant.
## Root cause
Introduced in **16.45.0** (commit `d2cf20071`, #1464). That change
removed the
native `required` DOM attribute from desktop inputs and moved
required-detection
into the field registration (`required ?? input.required` in
`form.tsx`).
`useFieldProps` was updated to register `required: !optional`, but
`Select` uses
its own `register` call and was never updated. On desktop the underlying
input no
longer reports `input.required`, so `validateFields` never flagged the
field as
mandatory.
The native/mobile variant was unaffected because it renders a real
`<select required>` element, so `input.required` stayed `true`.
## Fix
Pass `required: !optional` in `Select`'s `register` call (aligning it
with
`useFieldProps`), and add `optional` to the effect's dependency array.

Before:
<img width="1216" height="944" alt="Screenshot 2026-07-01 at 12 31 35"
src="https://github.com/user-attachments/assets/72d7759a-a5a0-474b-8d42-4f417f89a60e"
/>

Now:
<img width="1207" height="762" alt="Screenshot 2026-07-01 at 12 31 51"
src="https://github.com/user-attachments/assets/ac1d7860-63e9-4cb9-88c6-551a48c26860"
/>
# [16.70.0](v16.69.0...v16.70.0) (2026-07-01)

### Bug Fixes

* **Select:** fix Select validation on desktop devices Ref: WEB-2450 ([#1612](#1612)) ([59aafa3](59aafa3)), closes [#1613](#1613) [#1464](#1464)

### Features

* **Chore:** Include feedback into mistica-figma skill ([#1594](#1594)) ([2b960dc](2b960dc))
Closes #1597. Part of #626 — Major release plan 17.0.0.
Copilot AI review requested due to automatic review settings July 1, 2026 17:09
@brtbrt brtbrt added the AI AI Generated label Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Size stats

master this branch diff
Total JS 17 MB 15.9 MB -1.1 MB
JS without icons 2.07 MB 1.98 MB -98.6 kB
Lib overhead 96.3 kB 96.3 kB +14 B
Lib overhead (gzip) 21.1 kB 21.1 kB +9 B

Copilot AI 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.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy preview for mistica-web ready!

Project:mistica-web
Status: ✅  Deploy successful!
Preview URL:https://mistica-9hs9i56ya-flows-projects-65bb050e.vercel.app
Latest Commit:2b825ce

Deployed with vercel-action

@brtbrt brtbrt changed the base branch from master to mbertamini/1596-remove-tu-skin July 1, 2026 17:34
Complete the O2-new cleanup missed in the initial replacement:

- playroom/themes.tsx: rename O2_New/O2_New_iOS to O2/O2_iOS so the
  Playroom O2 theme resolves (fixes the TypeScript build).
- audit-accessibility: audit the O2 skin instead of the removed O2-new.
- generate-design-tokens and import-mistica-icons: drop the stale
  o2-new entries so regeneration does not recreate the deleted files.
- docs: point to getO2Skin/o2Palette and a single o2 skin row.
@brtbrt brtbrt requested a review from a team July 1, 2026 17:36
@brtbrt brtbrt self-assigned this Jul 1, 2026
Comment thread package.json
@@ -1,6 +1,6 @@
{
"name": "@telefonica/mistica",
"version": "16.69.0",

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.

wrong version? is it a major right? 17.0.0

@brtbrt brtbrt Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

actually, I'd keep the version the same. we're gonna change it onto the last merge (cleansing).
#1615

what you see here is a master pull, which is on 16.70 already, but since o2new is merging against remove-tu-skin, which wasn't so in sync with master, it shows up like a diff. no worries, it's ok :). but good eagle eye

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.

expected change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes don't worry! tl;dr this is a master change. if I opened the PR against master, you wouldn't see the diff

Comment thread src/__stories__/form-automatic-state-management-story.tsx
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

brtbrt added 2 commits July 2, 2026 00:24
The O2-new skin was removed from all acceptance test parametrizations
when O2-new replaced O2. These snapshot images are no longer generated
and are removed as obsolete output.
@Telefonica Telefonica deleted a comment from github-actions Bot Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI AI Generated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove O2 New skin

6 participants