Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
329 commits
Select commit Hold shift + click to select a range
782d530
feat: category tree + facetedsearch
tblivet Apr 16, 2025
1de1baa
feat: listing templates
tblivet Apr 16, 2025
bb8ca0b
chore: lint
tblivet Apr 16, 2025
88a8726
Merge pull request #695 from tblivet/feat/improvements-part-6
tblivet Apr 16, 2025
755c7c1
feat: cart products details
tblivet Apr 18, 2025
de9dd10
WIP
tblivet Apr 18, 2025
36c2fbd
feat: cart page + adjustments
tblivet Apr 22, 2025
1976573
feat: change btn size
tblivet Apr 22, 2025
245ebc8
feat: cart and checkout refacto
tblivet Apr 23, 2025
37e2c6f
feat: cart and checkout refacto
tblivet Apr 23, 2025
af79eac
feat: cart and checkout refacto
tblivet Apr 24, 2025
301737b
feat: cart and checkout refacto
tblivet Apr 24, 2025
7877859
feat: checkout + address refacto
tblivet Apr 28, 2025
218ffc3
feat: checkout + shipping refacto
tblivet Apr 28, 2025
c307b45
feat: checkout + payment refacto
tblivet Apr 29, 2025
2dcea86
feat: checkout + shipping refacto
tblivet Apr 29, 2025
9149f55
fix: product accordion behavior
tblivet Apr 30, 2025
6e2a941
feat: checkout + order confirmation
tblivet May 2, 2025
83dee50
chore: lint
tblivet May 2, 2025
07157f8
Merge pull request #696 from tblivet/feat/improvements-part-7
tblivet May 2, 2025
0e8f514
feat: improve scroll padding
tblivet May 20, 2025
50fb0be
feat: password requirements
tblivet May 21, 2025
7792ba6
feat: my account page
tblivet May 21, 2025
a6decc1
feat: addresses page and footer buttons
tblivet May 21, 2025
4fd6894
feat: order history
tblivet May 22, 2025
a8ce32a
feat: order history and details + grid-table
tblivet May 26, 2025
1a2d660
fix: border width
tblivet May 26, 2025
a62a9b7
feat: multiple customer pages
tblivet May 26, 2025
7a474b7
chore: lint
tblivet May 26, 2025
d8af1b9
Merge pull request #697 from tblivet/feat/improvements-part-8
tblivet May 26, 2025
156786c
chore: eslint
tblivet May 26, 2025
2ff1452
fix: small fixes
tblivet May 26, 2025
f819bdf
fix: code review
tblivet May 27, 2025
1aaecef
feat: mailalert link account
tblivet May 28, 2025
64280d2
feat: contact form
tblivet May 28, 2025
94f77dc
feat: sitemap refacto
tblivet May 28, 2025
f3974ea
feat: stores page and fixes
tblivet May 28, 2025
174b1d0
feat: 404 and not found
tblivet May 28, 2025
d209fa2
feat: brands and suppliers refacto
tblivet Jun 2, 2025
b49edb9
feat: guest tracking
tblivet Jun 2, 2025
74bc520
feat: maintenance page
tblivet Jun 2, 2025
f2b53b3
Merge pull request #702 from tblivet/feat/improvements-part-9
tblivet Jun 3, 2025
9b311dd
fix: undefined notices
tblivet Jun 3, 2025
f092b08
fix: stock submessage
tblivet Jun 3, 2025
f7a1dcf
chore: lint
tblivet Jun 3, 2025
31965c8
feat: block reassurance module
tblivet Jun 4, 2025
a1777d5
chore: lint
tblivet Jun 4, 2025
3945832
fix: remove unused template
tblivet Jun 4, 2025
abe5ea6
Merge pull request #704 from tblivet/feat/improvements-part-10
tblivet Jun 4, 2025
2fca1ee
fix: naming
tblivet Jun 4, 2025
9b40bdc
feat: improve accessibility based on lighthouse
tblivet Jun 4, 2025
653293f
Merge pull request #705 from tblivet/feat/improvements-part-11
tblivet Jun 4, 2025
cb78dad
Merge pull request #706 from tblivet/feat/improvements-part-12
tblivet Jun 5, 2025
9d7a2b2
fix: storybook
tblivet Jun 6, 2025
5a0c028
fix: npm audit fix
tblivet Jun 6, 2025
66b5ca6
chore: upgrade storybook to v7
tblivet Jun 6, 2025
2364bfa
chore: update workflow
tblivet Jun 6, 2025
8688f34
feat: update storybook to v8
tblivet Jun 9, 2025
b8b55cb
chore: clean
tblivet Jun 9, 2025
846bb9e
Merge pull request #709 from tblivet/feat/improvements-part-13
tblivet Jun 9, 2025
2e82558
fix: notification warning
tblivet Jun 9, 2025
7214e53
fix: delivery options
tblivet Jun 11, 2025
8d51355
fix: issue + lint
tblivet Jun 12, 2025
f3c5f1c
fix: product section updates
tblivet Jun 12, 2025
8a30a9f
Update theme image README.md
tblivet Jun 13, 2025
90bf3db
feat: disable caching on dev server
tblivet Jun 13, 2025
5e9f877
feat: rename .env files
tblivet Jun 13, 2025
cc3f793
chore: update readme
tblivet Jun 13, 2025
d5d2da4
fix: ci
tblivet Jun 13, 2025
0fe8f07
fix: review
tblivet Jun 13, 2025
43aa91a
Merge pull request #711 from tblivet/feat/improvements-part-14
tblivet Jun 16, 2025
1173c80
Merge pull request #713 from tblivet/feat/improvements-part-15
tblivet Jun 16, 2025
1adbac5
feat: provide docker env for hummingbird
tblivet Jun 16, 2025
62d0b53
chore: update readme
tblivet Jun 16, 2025
43488a9
chore: remove docker/ from build
tblivet Jun 16, 2025
e1cf949
feat: update readme
tblivet Jun 18, 2025
9cb44da
fix:review
tblivet Jun 18, 2025
f6aeb55
fix: unclosed tag
tblivet Jun 18, 2025
affc490
Merge pull request #716 from tblivet/feat/improvements-part-16
tblivet Jun 18, 2025
4cdd801
feat: add required to customization field
tblivet Jun 19, 2025
1e1dffd
feat: wording
tblivet Jun 19, 2025
f258c74
feat: order final summary
tblivet Jun 19, 2025
40e1460
chore: lint
tblivet Jun 20, 2025
c5ec456
fix: review
tblivet Jun 20, 2025
1c57e2b
Merge pull request #723 from tblivet/feat/improvements-part-17
tblivet Jun 20, 2025
91f1514
docs: update contribute file
tblivet Jun 20, 2025
8672649
fix: .md links
tblivet Jun 20, 2025
71f4296
Merge pull request #724 from tblivet/feat/improvements-part-18
tblivet Jun 20, 2025
08b5f59
feat: remove unused package and move package from dep to devdep
ga-devfront Jul 10, 2025
a0fc2e5
Merge pull request #735 from ga-devfront/feat/clean-package-json
tblivet Jul 10, 2025
7b643c1
fix: issue on cart
tblivet Aug 7, 2025
728c26b
Merge pull request #745 from tblivet/fix/cart-qty-update-warning
tblivet Aug 8, 2025
f13ea90
fix: url issue
tblivet Aug 8, 2025
8adf2f8
chore: format + lint
tblivet Aug 8, 2025
deb4336
refactor: update file
tblivet Aug 26, 2025
645ca5d
Merge pull request #754 from tblivet/fix/url-issue
tblivet Aug 26, 2025
6eceda6
feat: homepage accessibility
tblivet Aug 1, 2025
74d576a
chore: lint + format
tblivet Aug 8, 2025
f7cd3d8
fix: review
tblivet Aug 8, 2025
4b84e89
feat: aria-label adjustments
tblivet Aug 26, 2025
4b60760
fix: review translations
tblivet Aug 26, 2025
d5e47b5
Merge pull request #746 from tblivet/feat/EAA-1
tblivet Aug 29, 2025
4bdb984
feat: accessibility improvements on category page
tblivet Aug 27, 2025
e4c51f1
fix: current page pagination
tblivet Aug 28, 2025
84d6c26
fix: quick view display button
tblivet Aug 29, 2025
d42409e
fix: a11y label naming
tblivet Sep 2, 2025
afcc9e2
Merge pull request #755 from tblivet/feat/EAA-2
tblivet Sep 2, 2025
3ae3fe8
fix: modal update duplication
tblivet Aug 28, 2025
80e4a23
fix: zoom button duplicate
tblivet Aug 28, 2025
9a5936c
feat: accessibility improvements
tblivet Aug 28, 2025
ef0a1a8
feat: product variants accessibility
tblivet Sep 1, 2025
ada51ce
feat: a11y improvements
tblivet Sep 1, 2025
6b0a213
Add .nvmrc to a project
kpodemski Sep 2, 2025
0a417d0
feat: review
tblivet Sep 3, 2025
5a6607e
fix : review
tblivet Sep 5, 2025
db35bc1
Merge pull request #758 from tblivet/feat/EAA-3
tblivet Sep 5, 2025
db86d30
fix: brands image
tblivet Sep 5, 2025
30e37ae
fix: missing src
tblivet Sep 5, 2025
b26b122
Merge pull request #759 from kpodemski/node-version-file
kpodemski Sep 7, 2025
4797388
feat: login accessibility + password + form
tblivet Sep 4, 2025
7b85894
feat: review
tblivet Sep 4, 2025
51a8494
feat: review
tblivet Sep 4, 2025
f7f69fd
review: fix * screen reader announcement
tblivet Sep 8, 2025
94b1e8d
review: announce button update
tblivet Sep 8, 2025
e6ff7f5
Merge pull request #761 from tblivet/feat/EAA-4
tblivet Sep 8, 2025
9620c55
feat: [a11y][ps_contactinfo] improve ally (fix jira issue SCE-732)
mattgoud Sep 9, 2025
5301dcc
feat: improve accessibility for email subscription module
ga-devfront Sep 9, 2025
9838b08
feat: [a11y][ps_customersignin] add aria-current attribute to dropdow…
mattgoud Sep 9, 2025
9b14cf1
feat: [a11y][ps_customeraccountlinks] change signout link color in fo…
mattgoud Sep 9, 2025
2b7ec6d
fix: feedbacks from review
ga-devfront Sep 10, 2025
632e265
Update modules/ps_contactinfo/nav.tpl
mattgoud Sep 10, 2025
69090e4
Update modules/ps_contactinfo/nav.tpl
mattgoud Sep 10, 2025
e07c3bb
Update modules/ps_contactinfo/ps_contactinfo-rich.tpl
mattgoud Sep 10, 2025
91ba1cb
Update modules/ps_contactinfo/ps_contactinfo-rich.tpl
mattgoud Sep 10, 2025
0971e44
Update modules/ps_contactinfo/ps_contactinfo-rich.tpl
mattgoud Sep 10, 2025
f0af36b
Update modules/ps_contactinfo/ps_contactinfo-rich.tpl
mattgoud Sep 10, 2025
71c6c93
Update modules/ps_contactinfo/ps_contactinfo-rich.tpl
mattgoud Sep 10, 2025
c3a7dc9
Update modules/ps_contactinfo/ps_contactinfo.tpl
mattgoud Sep 10, 2025
8ba880b
Update modules/ps_contactinfo/ps_contactinfo.tpl
mattgoud Sep 10, 2025
e3a9a37
feat: [a11y][ps_conctactinfo] revert tag semantic h2 to span for foot…
mattgoud Sep 10, 2025
be12c53
Update modules/ps_contactinfo/ps_contactinfo.tpl
mattgoud Sep 10, 2025
d16a217
feat: improve access for store schedules page
ga-devfront Sep 10, 2025
9c95061
Merge pull request #764 from ga-devfront/feat/access-ps_emailsubscrip…
ga-devfront Sep 10, 2025
aa47c4b
Update modules/ps_contactinfo/ps_contactinfo-rich.tpl
mattgoud Sep 10, 2025
89adbff
Update modules/ps_customersignin/ps_customersignin.tpl
mattgoud Sep 10, 2025
a96ef18
Update modules/ps_customersignin/ps_customersignin.tpl
mattgoud Sep 10, 2025
1a0e72d
Update modules/ps_contactinfo/ps_contactinfo.tpl
mattgoud Sep 10, 2025
8c1cdd9
Merge pull request #766 from PrestaShop/feat/access-store-schedules
ga-devfront Sep 10, 2025
2652e8e
feat: improve access for ps image slider
ga-devfront Sep 10, 2025
09df8f1
feat: improve access for ps image slider
ga-devfront Sep 10, 2025
6832061
fix: format
ga-devfront Sep 10, 2025
fba0896
feat: [a11y][ps_categorytree] improve accessiblity, handle keyboard b…
mattgoud Sep 10, 2025
b770eb9
feat: review
tblivet Sep 10, 2025
8e877e9
chore: format
tblivet Sep 10, 2025
c6213fb
fix: feedback from review
ga-devfront Sep 10, 2025
5484945
Merge pull request #763 from mattgoud/improve-accessibility-ps_contac…
tblivet Sep 10, 2025
0dc44e1
Merge pull request #762 from tblivet/fix/small-fixes
tblivet Sep 10, 2025
bc168fa
Merge pull request #765 from mattgoud/improve-a11y-of-ps_customersign…
ga-devfront Sep 11, 2025
3279a2c
feat: improve ps_searchbar accessibility
ga-devfront Sep 11, 2025
d6922ba
feat: account creation a11y
tblivet Sep 9, 2025
0adcfab
wip
tblivet Sep 12, 2025
7154c7d
fix: feedbacks from review
ga-devfront Sep 12, 2025
fe6fa35
fix: stylelint
ga-devfront Sep 12, 2025
6afe538
fix: review
tblivet Sep 12, 2025
ace08bb
styles: clear btn
tblivet Sep 12, 2025
c663337
fix: add feedbacks from review
ga-devfront Sep 15, 2025
48524a7
chore: lint
tblivet Sep 15, 2025
29206a9
fix: add feedbacks from review
ga-devfront Sep 15, 2025
a3aab5b
Update modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl
mattgoud Sep 15, 2025
0207835
Update modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl
mattgoud Sep 15, 2025
140bb42
Update modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl
mattgoud Sep 15, 2025
1a283b8
Update modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl
mattgoud Sep 15, 2025
83d3aaa
Update modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl
mattgoud Sep 15, 2025
0d06433
fix: lint
ga-devfront Sep 15, 2025
203b32b
Update modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl
mattgoud Sep 15, 2025
cfd9d3c
feat: [a11y][ps_categorytree] remove ul tag by nav to wrap categories…
mattgoud Sep 15, 2025
0def74d
fix: typo
tblivet Sep 15, 2025
764a242
Merge pull request #772 from tblivet/fix/typo
tblivet Sep 15, 2025
c8737c0
Update modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl
ga-devfront Sep 15, 2025
3f5697f
Update modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl
ga-devfront Sep 15, 2025
65fc0f7
Merge pull request #767 from PrestaShop/feat/access-ps_imageslider
ga-devfront Sep 15, 2025
a97056c
Merge pull request #768 from mattgoud/improve-accessibility-of-ps_cat…
ga-devfront Sep 15, 2025
bcc4e8a
Merge pull request #770 from tblivet/feat/EAA-5
ga-devfront Sep 16, 2025
affdd30
Merge pull request #769 from ga-devfront/feat/access-ps_searchbar
ga-devfront Sep 16, 2025
05b84c3
feat: [a11y][footer-blocks] fix jira issue SCE-824 - improve a11y fo…
mattgoud Sep 17, 2025
c6a5b9a
feat: [a11y][footer-blocks] related jira issue SCE-824 - set aria-exp…
mattgoud Sep 17, 2025
f578c85
feat: [a11y][contact-us] fix jira issue SCE-724 add id/for attribute …
mattgoud Sep 17, 2025
7b133d4
feat: [a11y][contact-us] related jira issue SCE-724 - make email inpu…
mattgoud Sep 18, 2025
f0d9208
Update modules/contactform/views/templates/widget/contactform.tpl
mattgoud Sep 19, 2025
79e5050
Update modules/contactform/views/templates/widget/contactform.tpl
mattgoud Sep 19, 2025
1f92099
Update modules/contactform/views/templates/widget/contactform.tpl
mattgoud Sep 19, 2025
04b5dae
feat: [a11y][contact-us] related jira issue SCE-724 - message textare…
mattgoud Sep 19, 2025
62a9cae
Update modules/ps_contactinfo/ps_contactinfo.tpl
mattgoud Sep 19, 2025
ff014e5
Update modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl
mattgoud Sep 19, 2025
bde96e4
Update modules/ps_contactinfo/ps_contactinfo.tpl
mattgoud Sep 19, 2025
d884afc
Update modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl
mattgoud Sep 19, 2025
80198ea
Update modules/ps_linklist/views/templates/hook/linkblock.tpl
mattgoud Sep 19, 2025
beeec5e
Update modules/ps_linklist/views/templates/hook/linkblock.tpl
mattgoud Sep 19, 2025
177a8ad
feat: [a11y][contact-us] related jira issue SCE-724 - remove footer p…
mattgoud Sep 19, 2025
696a6a0
chore: fix prettier lint error
mattgoud Sep 19, 2025
98a38a0
Merge pull request #774 from mattgoud/a11y-improvements-contact-us
ga-devfront Sep 22, 2025
b06b60b
Merge pull request #773 from mattgoud/footer-blocks-to-be-closed-with…
tblivet Sep 22, 2025
475cad7
feat: a11y account pages
tblivet Sep 17, 2025
305fda1
chore: lint
tblivet Sep 23, 2025
7b19c29
fix: review
tblivet Sep 23, 2025
6910ea6
feat: [a11y][ps_facetedsearch] fix jira ticket SCE-730 - keyboard han…
mattgoud Sep 23, 2025
bd01675
chore: lint fix
mattgoud Sep 23, 2025
03de86e
fix: review
tblivet Sep 23, 2025
dadf588
fix: review
tblivet Sep 24, 2025
e6558ec
fix: review
tblivet Sep 24, 2025
9e61a26
style: [a11y][ps_factedsearch] related SCE-730 - create focus-visible…
mattgoud Sep 24, 2025
a055205
style: [a11y][ps_factedsearch] related SCE-730 - fix scss placeholder…
mattgoud Sep 24, 2025
a66615a
feat: review
tblivet Sep 24, 2025
caff31f
chore: lint
tblivet Sep 24, 2025
5711100
fix: review
tblivet Sep 25, 2025
fe91e2e
fix: review
tblivet Sep 25, 2025
76135c4
Merge pull request #778 from tblivet/feat/EAA-6
ga-devfront Sep 25, 2025
b0b960c
feat: [a11y][ps_facetedsearch] fix #782 - fix "skip to main content a…
mattgoud Sep 29, 2025
6b425f8
chore: fix lint
mattgoud Sep 29, 2025
030b621
Merge pull request #779 from mattgoud/improve-accessibility-of-ps_fac…
tblivet Sep 30, 2025
af81b6c
feat: checkout a11y
tblivet Sep 24, 2025
556134c
chore: lint
tblivet Oct 1, 2025
65f12ec
feat: terms and conditions
tblivet Oct 2, 2025
fd924f4
chore: lint / fix
tblivet Oct 2, 2025
844db45
fix: ci error and import
tblivet Oct 2, 2025
b4b1b37
feat: review
tblivet Oct 3, 2025
1fdfd53
fix: error when selector was not found
tblivet Oct 3, 2025
eae7b0d
Merge pull request #785 from tblivet/feat/EAA-7
ga-devfront Oct 6, 2025
82c1ffb
Merge pull request #786 from tblivet/fix/update-errors
tblivet Oct 6, 2025
70bb4a3
feat: desktop menu a11y
tblivet Oct 8, 2025
e930372
chore: lint
tblivet Oct 10, 2025
1b3c7d5
style: optimizations
tblivet Oct 10, 2025
612a48d
feat: a11y improvements
tblivet Oct 13, 2025
b1179f0
chore: cleanup
tblivet Oct 13, 2025
19faab5
chore: lint + fix
tblivet Oct 13, 2025
f85c8ee
chore: config cleanup + update workflows
tblivet Oct 13, 2025
b24d2bf
chore: readme
tblivet Oct 13, 2025
eefc9b8
feat: productcomments refactor
tblivet Oct 14, 2025
e81d3ef
feat: productcomments on product list
tblivet Oct 20, 2025
312a9f1
feat: package lock
tblivet Oct 20, 2025
caa2267
Merge pull request #789 from tblivet/chore/version
tblivet Oct 20, 2025
4d300a7
feat: review
tblivet Oct 20, 2025
fd802fd
feat: label improvements
tblivet Oct 20, 2025
e73eebc
chore: lint
tblivet Oct 21, 2025
217f82e
Merge pull request #788 from tblivet/feat/ps_mainmenu-a11y
tblivet Oct 21, 2025
f00274e
chore: code review
tblivet Oct 22, 2025
4c0499f
chore: code review
tblivet Oct 22, 2025
12efcc5
chore: QA review
tblivet Oct 23, 2025
9a43ac5
Merge pull request #793 from tblivet/feat/productcomments-a11y
tblivet Oct 23, 2025
bf11bd6
Poweruser search, use / to focus on searchinput
tswfi Oct 25, 2025
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
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {
devDependencies: ['tests/**/*.js', '.webpack/**/*.js'],
},
],
'max-len': ['error', {code: 120}],
'max-len': ['error', {code: 150}],
'no-alert': 0,
'no-bitwise': 0,
'no-new': 0,
Expand All @@ -70,6 +70,7 @@ module.exports = {
],
'prefer-destructuring': ['error', {object: true, array: false}],
'no-shadow': 'off',
'no-useless-constructor': 'off',
'@typescript-eslint/no-shadow': ['error'],
},
settings: {
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup node env
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Copy Webpack config
run: cp ./webpack/.env-example ./webpack/.env

- name: Build assets
run: npm run build

Expand All @@ -32,6 +29,7 @@ jobs:
rm .git/ -rf
rm .github/ -rf
rm .storybook/ -rf
rm docker/ -rf
rm node_modules/ -rf
rm src/ -rf
rm stories/ -rf
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Setup node env
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm ci

- name: Generate
run: npm run build-storybook
run: npm run storybook:build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
35 changes: 26 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,46 @@
name: Lint
on: [ push, pull_request ]
jobs:
stylelint:
name: SCSS Lint
stylelint_prettier:
name: Stylelint & Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

# Install project dependencies
- name: Install dependencies
run: npm ci

- name: Lint scss
run: npm ci && npm run scss-lint
# Run Prettier check command
- name: Run Prettier check
run: |
npm run prettier || {
echo "::error::Prettier check failed. Run 'npm run prettier:fix' to format your code."
exit 1
}

# Run Stylelint check command
- name: Run Stylelint check
run: |
npm run stylelint || {
echo "::error::Stylelint check failed. Run 'npm run stylelint:fix' to autofix issues."
exit 1
}
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

- name: Lint js
run: touch ./webpack/.env && npm ci && npm run lint
run: npm ci && npm run lint
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
js: [ '20' ]
steps:
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.js }}

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Cache Node Directory
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ jobs:
name: TypeScript type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

- name: Build and check types
run: touch ./webpack/.env && npm ci && npm run build
run: npm ci && npm run build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
assets
.env
coverage
storybook-static
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.19.4
15 changes: 15 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
overrides: [
{
files: "*.scss",
options: {
printWidth: 100,
tabWidth: 2,
useTabs: false,
singleQuote: false,
bracketSpacing: true,
parser: "scss",
},
},
],
};
62 changes: 46 additions & 16 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,73 @@
const path = require('path');

module.exports = {
"stories": [
"../stories/**/*.stories.mdx",
"../stories/**/*.stories.@(js|jsx|ts|tsx)"
stories: [
'../stories/**/*.mdx',
'../stories/**/*.stories.@(js|jsx|ts|tsx)'
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",

addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-a11y',
'@storybook/addon-webpack5-compiler-swc'
],
"framework": "@storybook/html",
"core": {
"builder": "webpack5"

framework: {
name: '@storybook/html-webpack5',
options: {}
},

webpackFinal: (config) => {
config.module.rules[3].use = 'html-loader?minimize=false';
// Add support for HTML
config.module.rules = config.module.rules.map((rule) => {
if (rule.test && rule.test.toString().includes('\\.html$')) {
return {
...rule,
use: {
loader: 'html-loader',
}
};
}
return rule;
});

// Add support for SCSS
config.module.rules.push({
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
use: [
'style-loader',
'css-loader',
{
loader: 'sass-loader',
options: {
sassOptions: {
// Removes deprecation warnings from Bootstrap
quietDeps: true,
}
}
}
],
include: path.resolve(__dirname, '../'),
});

// Add path aliases
config.resolve.alias = {
...config.resolve.alias,
'@js': path.resolve(__dirname, '../src/js'),
'@services': path.resolve(__dirname, '../src/js/services'),
'@constants': path.resolve(__dirname, '../src/js/constants'),
'@helpers': path.resolve(__dirname, '../src/js/helpers'),
}
};

// Define external libraries
config.externals = {
...config.externals,
prestashop: 'prestashop',
};

return config;
},
addonActionsTheme: {
BASE_COLOR: 'red',
},
}

docs: {}
};
3 changes: 1 addition & 2 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {addons} from '@storybook/addons';
import {themes} from '@storybook/theming';
import { addons } from '@storybook/preview-api';
import psTheme from './ps-theme';

addons.setConfig({
Expand Down
20 changes: 7 additions & 13 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@ window.prestashop = {
}
}

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
const preview = {
parameters: {
// Add parameters here
},
options: {
storySort: {
order: ['Theme', ['Introduction', 'JavaScript', ['Components', ['Introduction']]], 'UI', ['Introduction']],
},
},
}

tags: ['autodocs']
};
export default preview;
17 changes: 11 additions & 6 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@
],
"customSyntax": "postcss-scss",
"rules": {
"declaration-colon-newline-after": null,
"function-disallowed-list": null,
"property-disallowed-list": null,
"selector-class-pattern": null,
"selector-id-pattern": null,
"selector-max-id": null,
"selector-max-class": null,
"selector-max-type": null,
"selector-max-combinators": null,
"selector-max-compound-selectors": null,
"selector-max-id": null,
"selector-max-type": null,
"selector-no-qualifying-type": null,
"selector-max-combinators": null,
"selector-class-pattern": null,
"function-disallowed-list": null,
"value-list-comma-newline-after": null,
"value-list-comma-space-after": null,
"scss/dollar-variable-default": null,
"property-disallowed-list": null
"scss/operator-no-newline-after": null,
"scss/percent-placeholder-pattern": null
}
}
Loading