Skip to content

chore: Stable tokens to cover keyframes - #4936

Merged
pan-kot merged 1 commit into
mainfrom
chore-stable-token-versions-2
Aug 28, 2026
Merged

chore: Stable tokens to cover keyframes#4936
pan-kot merged 1 commit into
mainfrom
chore-stable-token-versions-2

Conversation

@pan-kot

@pan-kot pan-kot commented Aug 26, 2026

Copy link
Copy Markdown
Member

Description

A follow-up for #4718

I also moved token versions to a different place so that it can be later imported by the internal build.

Depends on cloudscape-design/theming-core#201

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@pan-kot
pan-kot force-pushed the chore-stable-token-versions-2 branch from 9eda1de to dbf89f6 Compare August 26, 2026 10:33

function generateEnvironment() {
return task(`style-dictionary:environment`, () => {
const tokenStylesPath = join(workspace.sourcePath, './internal/styles/global.scss');

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This code generated tokenStylesSuffix as a hash from global.scss content. Instead, this token hash is deliberately made stable - so that the tokens across different versions are compatible.

@@ -1,25 +0,0 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

@pan-kot pan-kot Aug 26, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is moved to /style-dictionary/utils

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.66%. Comparing base (189b5ce) to head (5f46412).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4936   +/-   ##
=======================================
  Coverage   97.66%   97.66%           
=======================================
  Files         958      959    +1     
  Lines       31317    31342   +25     
  Branches    11565    11578   +13     
=======================================
+ Hits        30585    30610   +25     
+ Misses        725      686   -39     
- Partials        7       46   +39     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pan-kot
pan-kot force-pushed the chore-stable-token-versions-2 branch from b28a6f2 to 5f46412 Compare August 28, 2026 04:49
@pan-kot pan-kot changed the title chore: WIP chore: Stable tokens to cover keyframes Aug 28, 2026
@pan-kot
pan-kot marked this pull request as ready for review August 28, 2026 07:04
@pan-kot
pan-kot requested a review from a team as a code owner August 28, 2026 07:04
@pan-kot
pan-kot requested review from ywyyu17 and removed request for a team August 28, 2026 07:04
@pan-kot
pan-kot added this pull request to the merge queue Aug 28, 2026
Merged via the queue into main with commit 8d6658c Aug 28, 2026
67 checks passed
@pan-kot
pan-kot deleted the chore-stable-token-versions-2 branch August 28, 2026 09:56
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