Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
39a8799
[CUTL-116] ⬆️ (Base) Upgrade general dependencies with patch and mino…
mcgomez Nov 5, 2020
7f7c139
[CUTL-116] ⬆️ (Base) Upgrade dev dependencies with minor upgrades
mcgomez Nov 5, 2020
1602fac
[CUTL-116] ⬆️ (Base) Upgrade `@storybook` dependencies
mcgomez Nov 5, 2020
914d93f
[CUTL-116] ⬆️ (Base) Upgrade axios dependencies
mcgomez Nov 5, 2020
827945a
[CUTL-116] ⬆️ (Base) Upgrade `chalk`, `history` and `markdown-loader`
mcgomez Nov 5, 2020
0cc323b
[CUTL-116] ⬆️ (Base) Upgrade `mobx` dependencies
mcgomez Nov 5, 2020
151da4e
[CUTL-116] ⬆️ (Base) Upgrade `react` dependencies
mcgomez Nov 5, 2020
8a1aaaf
[CUTL-116] ⬆️ (Base) Upgrade `react-dropzone` and `sanitize.css`
mcgomez Nov 5, 2020
49395be
[CUTL-116] ⬆️ (Base) Upgrade `react-intl`; refactor for changes
mcgomez Nov 5, 2020
84462fb
[CUTL-116] ⬆️ (Base) Upgrade `react-refresh-webpack-plugin`, `testing…
mcgomez Nov 5, 2020
918e9a2
[CUTL-116] ⬆️ (Base) Upgrade `babel-plugin-react-intl`, `commpressioi…
mcgomez Nov 6, 2020
89170ca
[CUTL-116] ⬆️ (Base) Upgrade `eslint`, `eslint-config-airbnb`, `eslin…
mcgomez Nov 6, 2020
3ab1798
[CUTL-116] ⬆️ (Base) Upgrade `file-loader`, `flow-bin`, `html-loader`…
mcgomez Nov 6, 2020
894a030
[CUTL-116] ⬆️ (Base) Upgrade `image-webpack-loader`, `imports-loader`…
mcgomez Nov 6, 2020
d779f3a
[CUTL-116] ⬆️ (Base) Upgrade `node-plop`, `null-loader`, `prettier`, …
mcgomez Nov 6, 2020
9db21ae
[CUTL-116] ⬆️ (Base) Upgrade `react-test-renderer`, `shelljs`, `style…
mcgomez Nov 6, 2020
5e6fc22
[CUTL-116] ⬆️ (Base) Upgrade `firebase-tools` and `whatwg-fetch`
mcgomez Nov 6, 2020
428119a
[CUTL-116] ⬆️ (Base) Upgrade `webpack-cli`
mcgomez Nov 6, 2020
f508d5a
[CUTL-116] ⬆️ (Base) Upgrade `html-webpack-plugin`, `webpack` and `we…
mcgomez Nov 6, 2020
e2962e4
[CUTL-116] 🔄 (Base) Fix upgrade changes
mcgomez Nov 6, 2020
92de1c2
[CUTL-116] ☔️ (Base) Update snapshots
mcgomez Nov 6, 2020
26d7cc2
[CUTL-116] 🔄 (Base) Set default language to `en`
mcgomez Nov 6, 2020
dda5374
[CUTL-116] ⬇️ (Base) Down-grade `history`
mcgomez Nov 9, 2020
b317044
[CUTL-116] 🚑 (Middleware) Update how we create the webpack middleware
mcgomez Nov 9, 2020
7dce411
[CUTL-116] ⬇️ (Deps) Downgrade `webpack-dev-middleware` so fix `readF…
mcgomez Nov 16, 2020
352c1c0
[CUTL-116] 👕 (Base) Run formatting and linting
mcgomez Nov 16, 2020
207da91
[CUTL-116] ☔️ (Base) Update snapshot
mcgomez Nov 16, 2020
67f04dc
[CUTL-116] ⬆ (Base) Upgrade general dependencies for boilerplate
bpetit940 Feb 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ module.exports = {
'jsx-a11y/role-has-required-aria-props': 2,
'jsx-a11y/role-supports-aria-props': 2,
'max-len': 0,
'newline-per-chained-call': 0,
'newline-per-chained-call': [
'error',
{
ignoreChainWithDepth: 3,
},
],
'no-confusing-arrow': 0,
'no-console': 1,
'no-underscore-dangle': 0,
Expand All @@ -70,9 +75,11 @@ module.exports = {
'react/jsx-filename-extension': 0,
'react/jsx-no-target-blank': 0,
'react/jsx-uses-vars': 2,
'react/jsx-props-no-spreading': 0,
'react/require-default-props': 0,
'react/require-extension': 0,
'react/self-closing-comp': 0,
'react/state-in-constructor': 0,
'react/sort-comp': 0,
'require-yield': 0,
},
Expand Down
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"arrowParens": "avoid",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
Expand Down
4 changes: 2 additions & 2 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = function({ config }) {
module.exports = function ({ config }) {
config.module.rules.push({
test: /\.stories\.jsx?$/,
loaders: [
{
loader: require.resolve('@storybook/addon-storysource/loader'),
loader: require.resolve('@storybook/source-loader'),
options: {
prettierConfig: {
semi: false,
Expand Down
2 changes: 1 addition & 1 deletion app/components/Anchor/__snapshots__/Anchor.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ exports[`Anchor renders and matches snapshot 1`] = `
stroke-width="2"
/>
</svg>
<div
<span
class="c3"
/>
Click Me
Expand Down
28 changes: 24 additions & 4 deletions app/components/AutoSaveFormField/AutoSaveFormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,41 @@ const AutoSaveFormField = ({ onSave, name, value, ...rest }) => {
const Status = () => {
if (success)
return (
<Box animation={{ type: 'fadeIn', delay: 0, duration: 200 }} width="60px">
<Box
animation={{
type: 'fadeIn',
delay: 0,
duration: 200,
}}
width="60px"
>
<StatusGood
data-testid={`success-${name}`}
color="status-ok"
style={{ marginLeft: 10, marginBottom: 22 }}
style={{
marginLeft: 10,
marginBottom: 22,
}}
/>
</Box>
)
if (error)
return (
<Box animation={{ type: 'fadeIn', delay: 0, duration: 200 }} width="60px">
<Box
animation={{
type: 'fadeIn',
delay: 0,
duration: 200,
}}
width="60px"
>
<StatusCritical
data-testid={`error-${name}`}
color="status-error"
style={{ marginLeft: 10, marginBottom: 58 }}
style={{
marginLeft: 10,
marginBottom: 58,
}}
/>
</Box>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,28 @@
exports[`AutoSaveFormField renders and matches snapshot 1`] = `
<div>
<div
class="StyledGrommet-sc-19lkkz7-0 fXgXKw"
class="StyledGrommet-sc-19lkkz7-0 cfKHaq"
>
<div
class="StyledBox-sc-13pk1d4-0 gGqmMH"
class="StyledBox-sc-13pk1d4-0 frYYLR"
>
<div
class="StyledBox-sc-13pk1d4-0 kCeiYn FormField__FormFieldBox-m9hood-0 eenrNp FormField__StyledFormField-g4wt0p-0 feezXd"
class="StyledBox-sc-13pk1d4-0 cYSZtx FormField__FormFieldBox-m9hood-0 jGEMXj FormField__StyledFormField-g4wt0p-0 iWBsdv"
value="Test Value"
>
<label
class="StyledText-sc-1sadyjn-0 enbIRN"
class="StyledText-sc-1sadyjn-0 drTEXR"
>
<span
class="StyledText-sc-1sadyjn-0 lmFPCJ Text__StyledGrommetText-sc-1qclgcc-0 lkunaY"
class="StyledText-sc-1sadyjn-0 fHOLAh Text__StyledGrommetText-sc-1qclgcc-0 bTNLcC"
/>
</label>
<div
class="StyledBox-sc-13pk1d4-0 kGPDbB FormField__FormFieldContentBox-m9hood-1 ckZStK"
>
<div
class="StyledBox-sc-13pk1d4-0 bFwQzJ"
/>
</div>
class="StyledBox-sc-13pk1d4-0 gmReJc FormField__FormFieldContentBox-m9hood-1"
/>
</div>
<div
class="StyledBox-sc-13pk1d4-0 kcIJqo"
class="StyledBox-sc-13pk1d4-0 cQQyAG"
/>
</div>
</div>
Expand Down
8 changes: 3 additions & 5 deletions app/components/Avatar/Avatar.doc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { describe, PropTypes } from 'react-desc'

export const doc = Avatar => {
const DocumentedAvatar = describe(Avatar)
.description('A Avatar')
.usage(
`import { Avatar } from 'components/Avatar';
const DocumentedAvatar = describe(Avatar).description('A Avatar').usage(
`import { Avatar } from 'components/Avatar';
<Avatar />`,
)
)

DocumentedAvatar.propTypes = {
id: PropTypes.string
Expand Down
4 changes: 2 additions & 2 deletions app/components/Avatar/__snapshots__/Avatar.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
exports[`Avatar renders and matches snapshot 1`] = `
<div>
<div
class="StyledGrommet-sc-19lkkz7-0 fXgXKw"
class="StyledGrommet-sc-19lkkz7-0 cfKHaq"
>
<div
class="StyledBox-sc-13pk1d4-0 eREzgX StyledAvatar-sc-1suyamb-1 juEsgd"
class="StyledBox-sc-13pk1d4-0 cfptzR StyledAvatar-sc-1suyamb-1"
/>
</div>
</div>
Expand Down
9 changes: 8 additions & 1 deletion app/components/Box/stories/Box.Border.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@ storiesOf('Box', module)
<Box direction="row-responsive" gap="small" align="start">
{['solid', 'dashed', 'dotted', 'double', 'groove', 'ridge', 'inset', 'outset'].map(
type => (
<Box key={type} pad="small" border={{ size: 'medium', style: type }}>
<Box
key={type}
pad="small"
border={{
size: 'medium',
style: type,
}}
>
{type}
</Box>
),
Expand Down
9 changes: 8 additions & 1 deletion app/components/Box/stories/Box.Round.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ storiesOf('Box', module)
</Box>
))}

<Box background="brand" pad="small" round={{ corner: 'left', size: '15px' }}>
<Box
background="brand"
pad="small"
round={{
corner: 'left',
size: '15px',
}}
>
left rounded corner px value
</Box>
</Grid>
Expand Down
5 changes: 4 additions & 1 deletion app/components/Box/stories/Box.Simple.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ storiesOf('Box', module)
<Box
pad="large"
align="center"
background={{ color: 'light-2', opacity: 'strong' }}
background={{
color: 'light-2',
opacity: 'strong',
}}
round
gap="small"
>
Expand Down
5 changes: 4 additions & 1 deletion app/components/Box/stories/Box.Size.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ storiesOf('Box', module)
align="center"
justify="center"
background="brand"
overflow={{ horizontal: 'hidden', vertical: 'scroll' }}
overflow={{
horizontal: 'hidden',
vertical: 'scroll',
}}
>
{Array(20)
.fill()
Expand Down
Loading