Skip to content

Commit 73df35a

Browse files
authored
Merge branch 'main' into rajdeep/changelog-global
2 parents a849b21 + dd0c8db commit 73df35a

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
id: extract_branch
3333

3434
- name: Extract doc preview url
35-
run: echo "DOC_URL=https://${{ steps.extract_branch.outputs.BRANCH }}--spectrum-w-c.netlify.app/" >> $GITHUB_OUTPUT
35+
run: echo "DOC_URL=https://${{ steps.extract_branch.outputs.BRANCH }}--spectrum-wc.netlify.app/" >> $GITHUB_OUTPUT
3636
id: extract_doc_url
3737

3838
- name: Post Previews Comment

.netlify/state.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"siteId": "27c78ed9-6c00-4ee7-b76a-991e6602134b"
2+
"siteId": "3a9b97b7-c4b9-4abf-ad47-d762684808d7"
33
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Visual regression testing is done against screens derived from the exports of th
151151

152152
#### Keeping CI assets updated
153153

154-
If you find the `visual-*` jobs failing on CircleCI for reasons that you expect (you've updated the Spectrum CSS dependencies, you've added new tests, etc.) then you will need to update the golden images cache key before your build will pass. You can review and share the diffs for a test pass via a URL shaped like `vrt--spectrum-w-c.netlify.app/${branchName}`. Before updating the cache key, be sure that the updated caches are both complete (there are times when process errors prevent images from being correctly created or when certain test passes take longer than others) and appear as expected. If you agree with the updated cache content, update the golden images cache key as follows.
154+
If you find the `visual-*` jobs failing on CircleCI for reasons that you expect (you've updated the Spectrum CSS dependencies, you've added new tests, etc.) then you will need to update the golden images cache key before your build will pass. You can review and share the diffs for a test pass via a URL shaped like `vrt--spectrum-wc.netlify.app/${branchName}`. Before updating the cache key, be sure that the updated caches are both complete (there are times when process errors prevent images from being correctly created or when certain test passes take longer than others) and appear as expected. If you agree with the updated cache content, update the golden images cache key as follows.
155155

156156
Your failing branch will have created a new cache with a key of `v1-golden-images-{{ .Revision }}-<< parameters.regression_color >>-<< parameters.regression_scale >>-<< parameters.dir >>-{{ epoch }}`. Here `{{ .Revision }}` outlines the git commit hash of the current CI pass. In `.circleci/config.yml`, you will use that to update the cache that is requested at the beginning of the `run-regressions` job. As part of the review site, the git commit hash will be listed in the side navigation UI for easy access, use this number to update the `current_golden_images_hash` paramater that appears as follows:
157157

projects/documentation/content/support-and-compatibility.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Starting from version 1.0.0, Spectrum Web Components follows semantic versioning
1717

1818
To provide early access to upcoming releases, we maintain a beta tag that points to the next minor version. The beta tag will always correspond to the next minor version incremented from the latest stable release. For example, if the latest tagged release is `1.2.1`, the beta tag will be `1.3.0-beta.0`.
1919

20-
You can find the respective `beta` version of the documentation website under the following link: https://beta--spectrum-w-c.netlify.app/
20+
You can find the respective `beta` version of the documentation website under the following link: https://beta--spectrum-wc.netlify.app/
2121

2222
You can install the beta version of a specific Spectrum Web Components package by using the`@beta` tag with your package manager. For example, to install the beta version of the `@spectrum-web-components/button` package, run:
2323

projects/vrt-quick-link/404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,6 @@
241241
const hash = MD5(
242242
`${branch}-${flavor}-${destColor}-${destScale}-${destDir}`
243243
);
244-
const destination = `https://${hash}--spectrum-w-c.netlify.app/review`;
244+
const destination = `https://${hash}--spectrum-wc.netlify.app/review`;
245245
window.location = destination;
246246
</script>

tasks/build-preview-urls-comment.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,21 @@ export const buildPreviewURLComment = (ref) => {
6565
previewLinks.push(`
6666
- [${system} | ${color} | ${scale} | ${direction}](https://${createHash(
6767
context
68-
)}--spectrum-w-c.netlify.app/review/)`);
68+
)}--spectrum-wc.netlify.app/review/)`);
6969
});
7070

7171
// Add a high contrast mode preview link
7272
previewLinks.push(
7373
`
7474
- [High Contrast Mode | Medium | LTR](https://${createHash(
7575
`${branch}-hcm`
76-
)}--spectrum-w-c.netlify.app/review/)`
76+
)}--spectrum-wc.netlify.app/review/)`
7777
);
7878

7979
let comment = `## Branch preview
8080
81-
- [Documentation Site](https://${branchSlug}--spectrum-w-c.netlify.app/)
82-
- [Storybook](https://${branchSlug}--spectrum-w-c.netlify.app/storybook/)
81+
- [Documentation Site](https://${branchSlug}--spectrum-wc.netlify.app/)
82+
- [Storybook](https://${branchSlug}--spectrum-wc.netlify.app/storybook/)
8383
8484
8585

test/visual/review.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const colors = ['Lightest', 'Light', 'Dark', 'Darkest'];
3333
const directions = ['LTR', 'RTL'];
3434
vrts.push([
3535
`High Contrast Mode | Medium | LTR`,
36-
`https://${getHash(`${branch}-hcm`)}--spectrum-w-c.netlify.app/review/`,
36+
`https://${getHash(`${branch}-hcm`)}--spectrum-wc.netlify.app/review/`,
3737
]);
3838
themes.map((theme) =>
3939
colors.map((color) => {
@@ -50,7 +50,7 @@ themes.map((theme) =>
5050
`${theme} | ${color} | ${scale} | ${direction}`,
5151
`https://${getHash(
5252
context
53-
)}--spectrum-w-c.netlify.app/review/`,
53+
)}--spectrum-wc.netlify.app/review/`,
5454
]);
5555
})
5656
);
@@ -178,7 +178,7 @@ async function main() {
178178
const data = JSON.stringify({
179179
meta: {
180180
branch,
181-
preview: `https://${slugify(branch)}--spectrum-w-c.netlify.app`,
181+
preview: `https://${slugify(branch)}--spectrum-wc.netlify.app`,
182182
commit,
183183
system,
184184
vrts,

0 commit comments

Comments
 (0)