Skip to content

chore: staging/pfv6#3134

Open
zeroedin wants to merge 22 commits into
mainfrom
staging/pfv6
Open

chore: staging/pfv6#3134
zeroedin wants to merge 22 commits into
mainfrom
staging/pfv6

Conversation

@zeroedin
Copy link
Copy Markdown
Collaborator

@zeroedin zeroedin commented May 8, 2026

What I did

Testing Instructions

Notes to Reviewers

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 8, 2026

🦋 Changeset detected

Latest commit: 1d61732

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@patternfly/pfe-tools Minor
@patternfly/elements Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link
Copy Markdown

netlify Bot commented May 8, 2026

Deploy Preview for patternfly-elements ready!

Name Link
🔨 Latest commit 297e910
😎 Deploy Preview https://deploy-preview-3134--patternfly-elements.netlify.app/

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions Bot added the AT passed Automated testing has passed label May 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

SSR Test Run for a4a106a: Report

* chore(tools): update tooling config for v6 prefix

- Generalize eslint ignore glob for icon demo path to match both
  pf-v5-icon and pf-v6-icon directories
- Update eslint no-missing-package-exports rule to match only pf-v6-*
  element directories
- Remove all pf-v5-* export entries from elements/package.json since
  v6 release will not ship v5 elements
- Bump elements package version to 6.0.0-next.0

Audited and confirmed no changes needed in:
- tsconfig files (no v5-specific paths)
- web-test-runner.config.js (generic globs)
- playwright.config.ts (generic globs)
- commitlint.config.js (already handles both prefixes dynamically)

Closes #3130

Assisted-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: custome-element.json output location

* chore: add settings.local.json to gitignore

* chore: remove extra cem config

* chore: revert package.json version

* chore: revert eslint config

* chore: remove no-missing-package-exports altogether

* chore: splat exports

* docs: delete migration plan

it's now in the issue body for epic #3110

* chore: update cem configs

* chore: update cem

---------

Co-authored-by: Benny Powers <web@bennypowers.com>
@github-actions
Copy link
Copy Markdown
Contributor

SSR Test Run for dd4ee41: Report

bennypowers and others added 2 commits May 11, 2026 20:33
Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
chore(deps): bump @pwrs/cem to 0.10.5
@github-actions
Copy link
Copy Markdown
Contributor

SSR Test Run for ea95c87: Report

* chore: remove v5 element after update

* docs: apply suggestion from @bennypowers

---------

Co-authored-by: Benny Powers <bennypowers@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

SSR Test Run for d19c3ec: Report

@github-actions
Copy link
Copy Markdown
Contributor

SSR Test Run for 3380d11: Report

@github-actions
Copy link
Copy Markdown
Contributor

SSR Test Run for 2a2e7a2: Report

bennypowers and others added 3 commits May 14, 2026 15:55
Add Phase 8 (README) to create-element and update-element skills,
instructing agents to produce a divergences-from-React document for
each element. Three tables: not implemented, changed API, and added.
Includes accuracy rules to prevent false claims about shadow DOM.

References elements/pf-v6-tooltip/README.md as example.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
docs(create-element): add README phase to element skills
@github-actions
Copy link
Copy Markdown
Contributor

SSR Test Run for 8156a2c: Report

@zeroedin zeroedin changed the title staging: pfv6 feat: staging/pfv6 May 14, 2026
@zeroedin zeroedin changed the title feat: staging/pfv6 chore: staging/pfv6 May 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

✅ Commitlint tests passed!

More Info
{
  "valid": true,
  "errors": [],
  "warnings": [],
  "input": "chore: staging/pfv6"
}

…ap (#3144)

The `.js` regex in `liveReloadTsChangesMiddleware` was not end-anchored,
so requests for `.js.map` (source maps) were matched and rewritten
to `.ts.map`, breaking source maps in the dev server.

End-anchor the regex (`\.js$`) and use a regex replacement so only
the final `.js` extension is rewritten to `.ts`.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

SSR Test Run for d869cee: Report

* fix(tools): support tagPrefix as an array of tags

* chore(tools): add changeset

* refactor(tools): extract getPrefixes/matchPrefix helpers from callsites

Centralizes prefix normalization into two helpers in config.ts:
- `getPrefixes()`: normalizes tagPrefix to non-empty array, throws on empty
- `matchPrefix()`: finds matching prefix for a tag name with trailing dash

All callsites (DocsPage, Manifest, test config, deslugify) updated to use
helpers instead of inline `[].flat()` normalization, addressing Copilot
review feedback about `prefixes[0]` being undefined when tagPrefix is an
empty array.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor(tools): re-export DemoRecord from Manifest instead of duplicating

The DemoRecord interface in 11ty/plugins/types.ts was a separate copy
from the canonical one in Manifest.ts. Re-export it to maintain a single
source of truth. The CJS plugin's JSDoc type annotation still resolves
correctly.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test(tools): add unit tests for getPrefixes, matchPrefix, deslugify

Covers edge cases: empty array, undefined tagPrefix, empty string
filtering, prefix matching/fallback, trailing dash normalization,
and multi-prefix deslugify behavior.

Uses node:test + node:assert, run via `npx tsx --test`.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(tools): exclude node-only spec files from WTR

config.spec.ts uses node:test and node:assert, which cannot run in
WTR's browser context. Exclude tools/pfe-tools/*.spec.ts from the
WTR file glob.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Benny Powers <web@bennypowers.com>
@github-actions
Copy link
Copy Markdown
Contributor

SSR Test Run for 621fc75: Report

…round-image` (#3151)

* feat(background-image): port pf-v5-background-image to pf-v6-background-image

* test(background-image): remove unecessary tests

* fix(background-image): remove reflection on src

* fix(background-image): css tweak

* chore(background-image): add changeset
@github-actions
Copy link
Copy Markdown
Contributor

SSR Test Run for 43378fe: Report

* feat(timestamp): add `<pf-v6-timestamp>` element

* chore(timestamp): remove `<pf-v5-timestamp>` directory and files

* test(timestamp): add tests

* docs(timestamp): use pf-v6-timestamp in docs

* chore(timestamp): add changeset

* docs(timestamp): update README

* refactor(timestamp): replace utc/hour12 with timeZone/hourCycle in controller

Replace boolean `utc` and `hour12` options with `timeZone` (IANA string)
and `hourCycle` (Intl enum). Remove dead `localeString` getter and fix
constructor that never applied initial options. Remove auto-suffix
coupling that forced "UTC" into displaySuffix.

API now aligns with Intl.DateTimeFormat options and future Temporal.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat(timestamp): replace utc/hour-12/help-text with time-zone/hour-cycle

- `utc` boolean -> `time-zone` string (any IANA timezone identifier)
- `hour-12` boolean+converter -> `hour-cycle` enum (h11|h12|h23|h24)
- Remove `help-text` attribute and tabindex management (tooltip is a
  composition pattern, not a built-in feature)
- Remove BooleanStringConverter (no longer needed)
- Fix `date` getter to return ISO string for round-tripping

BREAKING CHANGE: `utc`, `hour-12`, and `help-text` attributes removed.
Use `time-zone`, `hour-cycle`, and `<pf-v5-tooltip>` composition.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(timestamp): remove help-text styles, improve CSS token docs

Remove all help-text modifier CSS (dashed underline, hover/focus color
changes). Tooltip trigger styling belongs to the composition pattern.

Add design token references in CSS comments for cem health scoring.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test(timestamp): update tests for time-zone/hour-cycle API

Replace utc, hour-12, and help-text tests with time-zone, hour-cycle,
and date round-trip tests. Add coverage for America/New_York timezone
and h12/h23 hour cycle variants.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs(timestamp): update demos for new API, add timezone and hour-cycle

Update existing demos: replace `utc` with `time-zone="UTC"`, remove
`help-text`, add `<a>` wrappers for keyboard a11y in tooltip demos.

Add new demos for capabilities React lacks:
- timezone: IANA timezone display (UTC, New York, London, Tokyo)
- hour-cycle: h11/h12/h23/h24 with locale combinations

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs(timestamp): document API divergences from React

Update README with React API mapping table showing time-zone replaces
shouldDisplayUTC and hour-cycle replaces is12Hour. Document tooltip
composition pattern and new capabilities.

Update changeset with full breaking change details.

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Benny Powers <web@bennypowers.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 8, 2026

SSR Test Run for 297e910: Report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AT passed Automated testing has passed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants