Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison of main from start of React 18 upgrade project to latest #622

Closed
wants to merge 70 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
d825acc
feat: bump wam to 1.24.0 (#546)
artmsilva Dec 12, 2023
2a66631
fix: our lockfile area for build dot site was borked (#547)
artmsilva Dec 13, 2023
15d6206
feat: add Dialog component
wp-aberg Dec 13, 2023
c656028
chore(release): publish
github-actions-bot Dec 13, 2023
5991835
Apply automatic changes
wp-aberg Dec 13, 2023
206b7cc
chore: add jason
artmsilva Dec 14, 2023
0edd183
chore: add julie and erik
artmsilva Dec 14, 2023
3f907e4
feat: add snowfall to website for fun (#550)
artmsilva Dec 19, 2023
5c88780
feat: turn snow on
artmsilva Dec 25, 2023
f0f45f7
fix: remove snow
artmsilva Jan 4, 2024
cdfae9e
fix: remove snow
artmsilva Jan 4, 2024
16b4b71
fix: remove tokens stylesheet
artmsilva Jan 4, 2024
5768e9c
feat: responsive screen size hook and css var (#548)
artmsilva Jan 10, 2024
d4e4d7f
chore(release): publish
github-actions-bot Jan 10, 2024
812d13a
Apply automatic changes
artmsilva Jan 10, 2024
12cf193
feat: add site footer back (#558)
artmsilva Jan 12, 2024
1cfe566
fix: fixes a scrollbar issue with select and our header component (#563)
artmsilva Jan 24, 2024
6a72587
chore(release): publish
github-actions-bot Jan 24, 2024
89639e5
Apply automatic changes
artmsilva Jan 24, 2024
39b0d45
feat: new dark mode colors and tokens (#554)
BrianAA Feb 6, 2024
dddd34e
chore(release): publish
github-actions-bot Feb 7, 2024
32c5026
Apply automatic changes
wp-aberg Feb 7, 2024
b45b54a
fix: reverted subtle and faint tokens (#566)
BrianAA Feb 8, 2024
fa22045
feat: remove search feature from docs site (#569)
artmsilva Feb 12, 2024
870d508
chore(release): publish
github-actions-bot Feb 15, 2024
9daca60
fix: Fixed onSurface to have the correct camel casing (#571)
BrianAA Feb 20, 2024
c5e0422
fix: Change forCards modifier to forSurfaces (#576)
BrianAA Feb 22, 2024
47a5214
fix: first pass [STRY-70]
val-l-hosler Feb 22, 2024
f122753
Revert "fix: first pass [STRY-70]"
val-l-hosler Feb 22, 2024
ca38fb2
fix: only add needed files [STRY-70]
val-l-hosler Feb 22, 2024
007ae6a
fix: cleaned up [STRY-70]
val-l-hosler Feb 22, 2024
95556bf
fix: cleaned up again [STRY-70]
val-l-hosler Feb 22, 2024
699f7bf
chore: add CSS ADR (#551)
wp-aberg Feb 26, 2024
63e8949
fix: linting [STRY-70]
val-l-hosler Feb 26, 2024
c686693
fix: ignoring .idea files [STRY-70]
val-l-hosler Feb 26, 2024
e65aee1
Merge branch 'main' into STRY-70-examples-look-good
val-l-hosler Feb 26, 2024
5cc7845
Merge pull request #581 from washingtonpost/STRY-70-examples-look-good
val-l-hosler Feb 26, 2024
73b4b9e
fix: update readme (#587)
artmsilva Mar 14, 2024
310104f
chore(release): publish
github-actions-bot Mar 14, 2024
65b0a0f
chore(release): publish
github-actions-bot Mar 14, 2024
d1e9ad4
fix: formatting (#588)
ebgranger Mar 14, 2024
96dcb32
chore(release): publish
github-actions-bot Mar 14, 2024
a717dbc
fix: fixing formatting (#589)
ebgranger Mar 14, 2024
7cce2eb
chore(release): publish
github-actions-bot Mar 14, 2024
875ad35
Fixing formatting (#590)
ebgranger Mar 14, 2024
fd097c5
chore(release): publish
github-actions-bot Mar 14, 2024
74a9c82
chore: commit wip (#591)
artmsilva Mar 14, 2024
035b5c8
fix: readme changes
artmsilva Mar 14, 2024
9e14549
chore(release): publish
github-actions-bot Mar 14, 2024
afea2cd
Apply automatic changes
artmsilva Mar 14, 2024
1f68ace
fix: transform select icon on open (#596)
wp-aberg Mar 19, 2024
2640be2
fix: make input helper and error text block level elements for consis…
wp-aberg Mar 19, 2024
fd7748f
feat: increase the specificity of the wpds-dark selector to ensure it…
wp-aberg Mar 22, 2024
b647c60
fix: updated React types package to prevent type errors
wp-aberg Mar 21, 2024
f359ec7
chore(release): publish
github-actions-bot Mar 25, 2024
f99b577
Apply automatic changes
wp-aberg Mar 25, 2024
9fb968e
fix: ensure that dark theme colors get written into the dom (#605)
wp-aberg Mar 26, 2024
f83e92f
chore(release): publish
github-actions-bot Mar 26, 2024
71cd79b
Apply automatic changes
wp-aberg Mar 26, 2024
49e35a1
feat: add v2 docs switcher (#609)
artmsilva Apr 2, 2024
7f666b1
chore: commit wip
artmsilva Apr 9, 2024
1138eca
chore: commit wip
artmsilva Apr 9, 2024
aed4a70
chore: add comment
carlyn-c Apr 9, 2024
494ec35
Merge pull request #617 from washingtonpost/boop2
carlyn-c Apr 9, 2024
2886b69
fix: remove global styles from wpds-tokens
artmsilva Apr 9, 2024
8017ca1
chore(release): publish
github-actions-bot Apr 9, 2024
6435025
Apply automatic changes
artmsilva Apr 9, 2024
d429cfa
feat: v2.0.0 (#542)
artmsilva Apr 24, 2024
31c56dc
chore(release): publish
artmsilva Apr 24, 2024
ee3b661
chore: post release lockfile update and formatting
artmsilva Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
fixtures/
packages/components/core
ui/theme/src/tokens.ts

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

Expand Down Expand Up @@ -47,4 +48,7 @@ core

lerna-debug.log

**/*.spec.js
**/*.spec.js

#temp
ui
15 changes: 10 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = {
"plugin:testing-library/dom",
"plugin:jest-dom/recommended",
"plugin:storybook/recommended",
"plugin:react/jsx-runtime",
],
overrides: [
{
Expand All @@ -36,12 +37,16 @@ module.exports = {
rules: {
"react/prop-types": "off",
"@washingtonpost/wpds/theme-colors": "warn",
"no-restricted-syntax": [
"error",
},
},
// warning 'React' is defined but never used @typescript-eslint/no-unused-vars -- allow unused React
{
files: ["**/*.tsx"],
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
{
selector:
"ImportDeclaration[source.value='react'][specifiers.0.type='ImportDefaultSpecifier']",
message: "Default React import not allowed",
varsIgnorePattern: "React",
},
],
},
Expand Down
50 changes: 0 additions & 50 deletions .github/workflows/interaction-tests.yml

This file was deleted.

24 changes: 14 additions & 10 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ jobs:
test:
if: github.event.deployment_status.state == 'success' && !contains(github.event.deployment_status.target_url, 'storybook') && !contains(github.event.deployment_status.target_url, 'vitejs')
runs-on: ubuntu-latest
timeout-minutes: 20
container:
image: mcr.microsoft.com/playwright:v1.40.1-jammy
timeout-minutes: 25
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
Expand All @@ -25,6 +27,14 @@ jobs:
always-auth: true
cache: npm

- name: Cache playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: cache-playwright-linux-1.40.1

- name: Cache node_modules
id: cache-node_modules
uses: actions/cache@v3
Expand All @@ -44,18 +54,12 @@ jobs:
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

- name: Run Playwright tests
run: npx playwright test
run: npm run playwright
env:
BASEURL: "${{ github.event.deployment_status.target_url }}"
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

# - uses: actions/upload-artifact@v3
# if: always()
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ yalc.lock
# ignore build site vscode
build.washingtonpost.com/.vscode/

# ignore the storybook build
# ignore the storybook build
build.washingtonpost.com/public/storybook/**/*

.env
Expand All @@ -135,3 +135,6 @@ build.washingtonpost.com/public/storybook/**/*
/test-results/
/playwright-report/
/playwright/.cache/
.turbo

.idea/*
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ out
jest-coverage
plop-templates
/ui/theme/src/tokens.ts
/packages/kit/src/theme/tokens.ts
55 changes: 34 additions & 21 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,49 @@
import { dirname, join } from "path";
// add process.env
require("dotenv").config();

module.exports = {
stories: ["../ui/(**|!(node_modules))/src/*.stories.@(ts|tsx|js|jsx)"],
stories: ["../packages/kit/src/**/*.stories.tsx"],
exclude: ["node_modules", "dist"],

addons: [
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-a11y",
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@storybook/addon-interactions"),
getAbsolutePath("@storybook/addon-a11y"),
],

previewBody: (body) => `${body}`,

features: {
storyStoreV7: true,
interactionsDebugger: true,
},
framework: "@storybook/react",
core: {
builder: "webpack5",

framework: {
name: getAbsolutePath("@storybook/nextjs"),
options: {},
},
typescript: {
check: true,
reactDocgen: "react-docgen-typescript",
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: (prop) =>
prop.parent
? /@radix-ui/.test(prop.parent.fileName) ||
!/node_modules/.test(prop.parent.fileName)
: true,
compilerOptions: {
allowSyntheticDefaultImports: false,
},
},

// typescript: {
// reactDocgen: "react-docgen-typescript",
// reactDocgenTypescriptOptions: {
// shouldExtractLiteralValuesFromEnum: true,
// propFilter: (prop) =>
// prop.parent
// ? /@radix-ui/.test(prop.parent.fileName) ||
// !/node_modules/.test(prop.parent.fileName)
// : true,
// compilerOptions: {
// allowSyntheticDefaultImports: false,
// },
// },
// },

docs: {
autodocs: true,
},
};

function getAbsolutePath(value) {
return dirname(require.resolve(join(value, "package.json")));
}
8 changes: 6 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Panel = styled("div", {

function GlobalStyles(props) {
globalStyles();
return <Panel>{props.children}</Panel>;
return <Panel css={props.css}>{props.children}</Panel>;
}

function DarkPanel(props) {
Expand All @@ -72,7 +72,11 @@ function DarkPanel(props) {
export const decorators = [
(Story, Context) => {
if (Context.story.includes("Interactions")) {
return <Story theme="light" />;
return (
<GlobalStyles css={{ width: "auto" }}>
<Story theme="light" />
</GlobalStyles>
);
}

return (
Expand Down
Loading
Loading