Skip to content

Commit b481f9d

Browse files
authored
Merge pull request #929 from tblivet/release/2.0.0
Release v2.0.0
2 parents d1b73ee + ed906ea commit b481f9d

File tree

585 files changed

+32478
-50409
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

585 files changed

+32478
-50409
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = {
5555
devDependencies: ['tests/**/*.js', '.webpack/**/*.js'],
5656
},
5757
],
58-
'max-len': ['error', {code: 120}],
58+
'max-len': ['error', {code: 150}],
5959
'no-alert': 0,
6060
'no-bitwise': 0,
6161
'no-new': 0,
@@ -70,6 +70,7 @@ module.exports = {
7070
],
7171
'prefer-destructuring': ['error', {object: true, array: false}],
7272
'no-shadow': 'off',
73+
'no-useless-constructor': 'off',
7374
'@typescript-eslint/no-shadow': ['error'],
7475
},
7576
settings: {
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
title: "[Idea] "
2+
body:
3+
- type: markdown
4+
attributes:
5+
value: |
6+
Thank you for sharing your ideas. Please take the time to provide as much detail as possible.
7+
- type: textarea
8+
id: problem
9+
attributes:
10+
label: The problem
11+
description: Describe what problem you would like to see solved.
12+
placeholder: A problem I’d love to see solved is...
13+
validations:
14+
required: false
15+
- type: textarea
16+
id: solution
17+
attributes:
18+
label: The solution
19+
description: Describe the solution(s) you have in mind for this problem.
20+
placeholder: A solution that would help is...
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: additional-context
25+
attributes:
26+
label: Additional context
27+
description: Add any other helpful information or screenshots here.
28+
validations:
29+
required: false
30+
- type: checkboxes
31+
attributes:
32+
label: Do you plan to work on this subject?
33+
description: While optional, taking matters into your own hands will significantly increase the chances that it gets done. Please select all that apply for you.
34+
options:
35+
- label: I'm willing to contribute a [formal specification](https://github.com/PrestaShop/prestashop-specs).
36+
- label: I'm willing to provide any wireframes or design assets required for this feature.
37+
- label: I'm willing to submit a Pull Request that implements this feature.
38+
- label: I'm willing to help verify that the implemented feature works as intended and produces no unintended side effects.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: 🐛 Bug Report
2+
description: Report an issue in Hummingbird theme. DO NOT disclose security issues here, contact security@prestashop.com instead!
3+
type: 'Bug'
4+
projects: [ 'PrestaShop/46', 'PrestaShop/7' ]
5+
title: '[BUG] '
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
### ❗️ Read this before submitting your bug report:
11+
- **Make sure that the problem is indeed related to Hummingbird theme.** To ensure your issue is dealt with as quickly as possible by QA and the community, it is important to make sure that the issue you create is in the right place!
12+
- **Write in English.** Reports in all other languages will be closed.
13+
- **Provide as much detail as possible** - error logs, screenshots, your exact configuration. If the issue cannot be reproduced, it cannot be fixed.
14+
- **Follow the [bug report guidelines](https://devdocs.prestashop-project.org/9/contribute/contribute-reporting-issues/#best-practices-for-writing-an-issue).** This will help issue managers qualify your report faster.
15+
- As explained [in this page](https://www.prestashop-project.org/security/sharing-third-party-distributions/), the team behind the project only maintains distribution under the official PrestaShop or PrestaShopCorp GitHub organizations. Please mention how you installed PrestaShop. If you used a third-party distribution and experience issues not reproducible with the official version, we might redirect you to that distribution's maintainers.
16+
- **Avoid reporting "error 500" or "white page" errors** - this is a universal error message that does not provide enough information to qualify the issue. Enable debug mode in the Performance section of PrestaShop or manually in `/config/defines.inc.php` and try again. You should get a proper error message.
17+
- type: checkboxes
18+
attributes:
19+
label: Prerequisites
20+
options:
21+
- label: I understand and accept the project's [code of conduct](https://github.com/PrestaShop/PrestaShop/blob/develop/CODE_OF_CONDUCT.md).
22+
required: true
23+
- label: I have already [searched in existing issues](https://github.com/PrestaShop/hummingbird/issues?q=is%3Aissue+type%3ABug) and found no previous report of this bug.
24+
required: true
25+
- type: textarea
26+
id: what-happened
27+
attributes:
28+
label: Describe the bug and add attachments
29+
description: What went wrong? If possible, add screenshots, error logs or screen recordings to help explain your problem.
30+
validations:
31+
required: true
32+
- type: textarea
33+
id: expected-behavior
34+
attributes:
35+
label: Expected behavior
36+
description: Explain what you expected to happen instead.
37+
validations:
38+
required: false
39+
- type: textarea
40+
id: steps-reproduce
41+
attributes:
42+
label: Steps to reproduce
43+
description: List the exact steps to reproduce the issue.
44+
placeholder: |
45+
1. Go to '...'
46+
2. Click on '....'
47+
3. Scroll down to '....'
48+
4. See error
49+
validations:
50+
required: true
51+
- type: input
52+
id: prestashop-version
53+
attributes:
54+
label: PrestaShop version(s) where the bug happened
55+
description: If the issue concerns upgrade, specify which versions you upgrading FROM and upgrading TO
56+
placeholder: "e.g., from 1.0.1 to 2.0.0"
57+
validations:
58+
required: true
59+
- type: input
60+
id: php-version
61+
attributes:
62+
label: PHP version(s) where the bug happened
63+
placeholder: "e.g., 8.0 or 8.2"
64+
validations:
65+
required: false
66+
- type: input
67+
id: sponsor-company
68+
attributes:
69+
label: Your company or customer's name goes here (if applicable).
70+
validations:
71+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 🚀 Idea / Feature request
4+
url: https://github.com/PrestaShop/hummingbird/discussions/new?category=ideas
5+
about: Suggest an idea to improve Hummingbird theme
6+
- name: 🙏 I need help
7+
url: https://github.com/PrestaShop/hummingbird/discussions/new?category=q-a
8+
about: If you have questions or need help
9+

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Setup node env
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: 20
2020

2121
- name: Install dependencies
2222
run: npm ci
2323

24-
- name: Copy Webpack config
25-
run: cp ./webpack/.env-example ./webpack/.env
26-
2724
- name: Build assets
2825
run: npm run build
2926

@@ -32,6 +29,8 @@ jobs:
3229
rm .git/ -rf
3330
rm .github/ -rf
3431
rm .storybook/ -rf
32+
rm docker/ -rf
33+
rm docs/ -rf
3534
rm node_modules/ -rf
3635
rm src/ -rf
3736
rm stories/ -rf

.github/workflows/cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616

1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@master
19+
uses: actions/checkout@v4
2020

2121
- name: Setup node env
22-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node }}
2525

2626
- name: Install dependencies
2727
run: npm ci
2828

2929
- name: Generate
30-
run: npm run build-storybook
30+
run: npm run storybook:build
3131

3232
- name: Deploy
3333
uses: peaceiris/actions-gh-pages@v3

.github/workflows/lint.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,46 @@
11
name: Lint
22
on: [ push, pull_request ]
33
jobs:
4-
stylelint:
5-
name: SCSS Lint
4+
stylelint_prettier:
5+
name: Stylelint & Prettier
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v4
99

1010
- name: Setup Node
11-
uses: actions/setup-node@v3
11+
uses: actions/setup-node@v4
1212
with:
1313
node-version: 20
14+
15+
# Install project dependencies
16+
- name: Install dependencies
17+
run: npm ci
1418

15-
- name: Lint scss
16-
run: npm ci && npm run scss-lint
19+
# Run Prettier check command
20+
- name: Run Prettier check
21+
run: |
22+
npm run prettier || {
23+
echo "::error::Prettier check failed. Run 'npm run prettier:fix' to format your code."
24+
exit 1
25+
}
26+
27+
# Run Stylelint check command
28+
- name: Run Stylelint check
29+
run: |
30+
npm run stylelint || {
31+
echo "::error::Stylelint check failed. Run 'npm run stylelint:fix' to autofix issues."
32+
exit 1
33+
}
1734
eslint:
1835
name: ESLint
1936
runs-on: ubuntu-latest
2037
steps:
21-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v4
2239

2340
- name: Setup Node
24-
uses: actions/setup-node@v3
41+
uses: actions/setup-node@v4
2542
with:
2643
node-version: 20
2744

2845
- name: Lint js
29-
run: touch ./webpack/.env && npm ci && npm run lint
46+
run: npm ci && npm run lint

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
js: [ '20' ]
1010
steps:
1111
- name: Setup Node
12-
uses: actions/setup-node@v3
12+
uses: actions/setup-node@v4
1313
with:
1414
node-version: ${{ matrix.js }}
1515

1616
- name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
- name: Cache Node Directory
2020
uses: actions/cache@v4

.github/workflows/typecheck.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ jobs:
55
name: TypeScript type check
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v4
99

1010
- name: Setup Node
11-
uses: actions/setup-node@v3
11+
uses: actions/setup-node@v4
1212
with:
1313
node-version: 20
1414

1515
- name: Build and check types
16-
run: touch ./webpack/.env && npm ci && npm run build
16+
run: npm ci && npm run build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
assets
33
.env
44
coverage
5+
storybook-static

0 commit comments

Comments
 (0)