Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
391 commits
Select commit Hold shift + click to select a range
f0a0872
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
3233368
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
36d6ea8
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
a34e4a5
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
79c4691
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
a23c7e9
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
8d0ae44
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
8ea3bbc
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
5a0e2f0
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
9ba4782
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
1fc11f3
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
9277840
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
d57a25e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
6a1263e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
960f82b
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
a987597
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
9fbb5f1
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
54cc2da
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
af5c8aa
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
44a2e71
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
af7e104
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
d33cd9d
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
883bcb7
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
77fb220
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
02cf728
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
c0432a3
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
f2779aa
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
b96c86b
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
b5c50f0
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
0d4f2c4
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
ca01ae7
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
0c8fd66
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
2ee0dc2
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
271f052
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
0ac2d32
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
194348a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
99bce8a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
51ad084
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
a66c602
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
e24bb0b
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
e9c042f
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
d3fb732
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
7ba9299
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
0449889
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
345e45c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
cd1e5c4
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
060fcb0
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
15f4f73
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
de86e55
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
908ea32
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
c79dcdd
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
6a75537
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
64ef871
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
20cd295
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
8fb0748
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
a7895db
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
e5a18ee
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
58b5de5
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
8904546
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
4f499e0
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
0c3c2db
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
40fd433
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
553fb8f
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
41e441c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
3ab19fc
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
e648a43
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
2240172
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
2668b9e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
884770c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
f1093e4
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
84c4d78
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
9a65d38
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
71e6f98
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
85933eb
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
22ad182
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
9269c99
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
a1180d9
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
44fa7e8
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
66d6c9d
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
1d60256
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
2054299
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
6ea8569
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
4a942bc
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
d32b2a0
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
5fccb5e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
9db24fc
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
b101b1a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
6df1c3f
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
cf90e57
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
4d18f7c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
0f2da45
Update from Shopify for theme dev-test/main
shopify[bot] Feb 13, 2025
008cfc3
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
9cd61ae
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
03f2de3
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
c669c80
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
2e303ee
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
7e0bc02
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
c716399
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
f6c68c9
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
4c1e47f
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
418832a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
415c9b6
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
82f49d4
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
e3c0068
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
19e7f19
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
5cccdb9
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
f8c054c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
6d7a915
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
de16bce
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
36de1bd
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
87adbba
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
a4abde9
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
fdc966e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
18eadf8
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
0f9955c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
4836c6f
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
7ed1e1e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
6cfdc6c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
3630139
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
82bb0c5
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
b215667
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
941e691
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
3fdc9e4
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
d1f9701
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
5760a8e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
80c1513
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
ca6db52
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
b6af01e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
3d72793
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
ef943e0
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
bc52eaf
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
9d00a1c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
d0c8c52
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
1960756
Update from Shopify for theme dev-test/main
shopify[bot] Feb 14, 2025
cf3c1e7
Update from Shopify for theme dev-test/main
shopify[bot] Feb 15, 2025
985c5a9
Update from Shopify for theme dev-test/main
shopify[bot] Feb 15, 2025
3795265
Update from Shopify for theme dev-test/main
shopify[bot] Feb 15, 2025
11f4c29
Update from Shopify for theme dev-test/main
shopify[bot] Feb 15, 2025
60d1d66
Update from Shopify for theme dev-test/main
shopify[bot] Feb 15, 2025
407fad5
Workspace vscode
NathanRutilyDev Feb 16, 2025
33c18ff
Merge branch 'main' of https://github.com/NathanRutilyDev/dev-test
NathanRutilyDev Feb 16, 2025
8edd941
Update from Shopify for theme dev-test/main
shopify[bot] Feb 16, 2025
56e6ae2
Update from Shopify for theme dev-test/main
shopify[bot] Feb 16, 2025
57daff5
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
4b62245
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
69d1411
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
d6e9760
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
6ce8fdd
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
fe77b07
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
66f92b1
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
96531c3
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
1ce218b
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
f6de639
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
56ea5ff
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
076a813
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
44de36a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
1f00d2c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
b4762e4
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
6524696
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
da3e54a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
89f7f33
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
972033e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
2befc9b
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
8bd6344
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
378625d
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
f76b9e9
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
e3fd49a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
7164c4e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
df329e8
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
045cbe9
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
aa643c6
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
ee4ba40
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
bf093cd
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
290b38a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
cc5e4fe
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
f5acd73
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
c867c33
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
00b8a2c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
49b711e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
74271b2
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
0f75af0
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
1a449e7
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
d8c05d5
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
ee2462a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
8ec6a12
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
3aed1d2
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
4bee163
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
9d44f5b
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
e1565c3
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
b5656a7
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
16e9751
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
bbda203
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
07e35f6
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
e1b5c4b
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
d2ccddf
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
f4061b4
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
3d848f4
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
eaadf84
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
9edef49
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
a73d92c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
5202f86
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
fa27033
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
7dcf2b2
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
6b65761
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
4a23089
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
8f2c62a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
29c3cf8
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
eb78522
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
e904f99
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
c7a1ceb
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
558b92f
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
d00ec9e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
83637f9
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
f94d8bb
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
c4573f3
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
fb9e1d2
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
ac8287b
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
99c3cc8
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
be5adfa
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
5d2e8cd
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
ab6ac3a
Fixes nathan
NathanRutilyDev Feb 17, 2025
1574194
Merge branch 'main' of https://github.com/NathanRutilyDev/dev-test
NathanRutilyDev Feb 17, 2025
436cfa6
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
5efabcb
Update from Shopify for theme dev-test/main
shopify[bot] Feb 17, 2025
0c6e34d
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
e6a55a4
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
3ea19da
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
23d5c5e
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
5a28332
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
f5085eb
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
04cc8c6
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
e73b5bc
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
057af37
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
cdddb60
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
52101f4
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
f2157c6
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
a939de3
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
cb0c6d0
Update from Shopify for theme dev-test/main
shopify[bot] Feb 18, 2025
941ebfa
Fix : Correction handle store
NathanRutilyDev Feb 18, 2025
4ae195d
Merge branch 'main' of https://github.com/NathanRutilyDev/dev-test
NathanRutilyDev Feb 18, 2025
ecb9ee8
Update from Shopify for theme dev-test/main
shopify[bot] Feb 24, 2025
2f5077c
Update from Shopify for theme dev-test/main
shopify[bot] Feb 24, 2025
d327ba0
Update from Shopify for theme dev-test/main
shopify[bot] Feb 24, 2025
480407b
Update from Shopify for theme dev-test/main
shopify[bot] Feb 24, 2025
ab81f92
Update from Shopify for theme dev-test/main
shopify[bot] Feb 24, 2025
df4ddfa
Update from Shopify for theme dev-test/main
shopify[bot] Feb 24, 2025
0fab70a
Update from Shopify for theme dev-test/main
shopify[bot] Feb 24, 2025
03c2a6d
Update from Shopify for theme dev-test/main
shopify[bot] Feb 28, 2025
048b302
Correction
NathanRutilyDev Mar 1, 2025
2682c2f
Merge branch 'main' of https://github.com/NathanRutilyDev/dev-test
NathanRutilyDev Mar 1, 2025
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
File renamed without changes.
903 changes: 0 additions & 903 deletions assets/component-card copy.css

This file was deleted.

327 changes: 327 additions & 0 deletions assets/diagnostic-ordonnance-see-more.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,327 @@
/**
* Classe pour gérer la liste des produits d'ordonnance et leurs interactions
*/
class OrdonnanceProductList extends HTMLElement {
// Sélecteurs CSS constants
static selectors = {
addToCartButton: 'button[type="submit"].ordonnance__submit',
selectedProductsContainers: '[data-added-products-result]',
addedProductContainers: '[data-added-products]',
totalContainers: '[data-bundle-total]',
countContainers: '[data-bundle-count]',
addButton: '[data-add-product]',
addAllButton: '[data-add-all-products]',
productInfo: '[data-product-info]',
removeProduct: '[data-remove-product]',
productTemplate: 'template',
};

// Clé de stockage local
static STORAGE_KEY = 'selectedProducts';

constructor() {
super();
this.selectedProducts = this.loadSelectedProducts();
this.initializeElements();
}

/**
* Charge les produits sélectionnés depuis le stockage local
*/
loadSelectedProducts() {
try {
return JSON.parse(localStorage.getItem(OrdonnanceProductList.STORAGE_KEY)) || [];
} catch (error) {
console.error('Erreur lors du chargement des produits:', error);
return [];
}
}

/**
* Initialise les éléments DOM nécessaires
*/
initializeElements() {
const { selectors } = OrdonnanceProductList;
this.addToCartButtons = this.querySelectorAll(selectors.addToCartButton);
this.selectedProductsContainers = this.querySelectorAll(selectors.selectedProductsContainers);
this.addedProductContainers = this.querySelectorAll(selectors.addedProductContainers);
this.totalContainers = this.querySelectorAll(selectors.totalContainers);
this.countContainers = this.querySelectorAll(selectors.countContainers);
this.addProductButtons = this.querySelectorAll(selectors.addButton);
this.addAllButtons = this.querySelectorAll(selectors.addAllButton);
}

/**
* Callback appelé lorsque l'élément est connecté au DOM
*/
connectedCallback() {
if (!this.selectedProductsContainers) {
console.error('Containers des produits sélectionnés non trouvé');
return;
}

this.renderSelectedProducts();
this.updateTotalPrice();
this.setupEventListeners();
}

/**
* Configure les écouteurs d'événements
*/
setupEventListeners() {
const { selectors } = OrdonnanceProductList;

// Gestion des boutons d'ajout individuels
this.querySelectorAll(selectors.addButton).forEach((button) => {
button.addEventListener('click', () => this.addProductToSelection(button));
});

// Gestion des boutons "Ajouter tout"
this.addAllButtons.forEach((button) => {
button.addEventListener('click', () => {
if (button.dataset.addAllProducts === 'true') {
// Si tous les produits sont ajoutés, on les retire tous
this.selectedProducts = [];
this.saveSelectedProducts();
} else {
// Sinon on ajoute tous les produits disponibles
this.querySelectorAll(selectors.addButton).forEach((addButton) => {
if (!addButton.hasAttribute('disabled') && !addButton.classList.contains('added')) {
this.addProductToSelection(addButton);
}
});
}
this.renderSelectedProducts();
this.updateTotalPrice();
this.updateAddAllButtonState();
});
});

this.querySelectorAll(selectors.addToCartButton).forEach((button) => {
button.addEventListener('click', () => this.addToCart());
});
}

/**
* Vérifie si tous les produits disponibles sont ajoutés
*/
areAllAvailableProductsAdded() {
const availableButtons = Array.from(this.addProductButtons).filter((button) => !button.hasAttribute('disabled'));
return availableButtons.every((button) => button.classList.contains('added'));
}

/**
* Met à jour l'état du bouton "Ajouter tout"
*/
updateAddAllButtonState() {
const allProductsAdded = this.areAllAvailableProductsAdded();
this.addAllButtons.forEach((button) => {
button.dataset.addAllProducts = allProductsAdded.toString();

if (allProductsAdded) {
button.classList.remove('button--primary');
button.classList.add('button--secondary');
} else {
button.classList.remove('button--secondary');
button.classList.add('button--primary');
}
});
}

/**
* Affiche les produits sélectionnés
*/
renderSelectedProducts() {
if (!this.selectedProductsContainers) return;

this.selectedProductsContainers.forEach((container) => {
container.innerHTML = '';
});

this.selectedProducts.forEach((product) => {
const productElement = this.querySelector(`.ordonnance__phase__product[data-variant-id="${product.variantId}"]`);
if (!productElement) return;

const template = productElement.querySelector(OrdonnanceProductList.selectors.productTemplate);
if (!template) return;

// Pour chaque conteneur, on crée un clone distinct
this.selectedProductsContainers.forEach((container) => {
const productContentClone = template.content.cloneNode(true);
const removeButton = productContentClone.querySelector(OrdonnanceProductList.selectors.removeProduct);

if (removeButton) {
removeButton.addEventListener('click', () => this.removeProduct(product.variantId));
}

container.appendChild(productContentClone);
});
});

this.updateButtonStates();
this.updateSelectedProductsTitleVisibility();
this.updateAddAllButtonState();
}

/**
* Supprime un produit de la sélection
*/
removeProduct(variantId) {
this.selectedProducts = this.selectedProducts.filter((p) => p.variantId !== variantId);
this.saveSelectedProducts();

this.renderSelectedProducts();
this.updateTotalPrice();
this.updateButtonStates();
this.updateSelectedProductsTitleVisibility();
this.updateAddAllButtonState();
}

/**
* Ajoute ou retire un produit de la sélection
*/
addProductToSelection(element) {
const variantId = element.dataset.variantId;
if (!variantId) return;

// Si le produit est déjà sélectionné, on le retire
if (element.classList.contains('added')) {
this.removeProduct(variantId);
return;
}

// Sinon, on l'ajoute
const productContainer = element.closest('.ordonnance__content');
if (!productContainer) return;

const productInfoElement = productContainer.querySelector(OrdonnanceProductList.selectors.productInfo);
if (!productInfoElement) {
console.error('Élément productInfo non trouvé');
return;
}

try {
const productData = JSON.parse(productInfoElement.textContent);
this.selectedProducts.push(productData);
this.saveSelectedProducts();

this.renderSelectedProducts();
this.updateTotalPrice();
this.updateButtonStates();
this.updateProductsAddedContainers();
this.updateAddAllButtonState();
} catch (error) {
console.error("Erreur lors de l'ajout du produit:", error);
}
}

/**
* Sauvegarde les produits sélectionnés dans le stockage local
*/
saveSelectedProducts() {
try {
localStorage.setItem(OrdonnanceProductList.STORAGE_KEY, JSON.stringify(this.selectedProducts));
} catch (error) {
console.error('Erreur lors de la sauvegarde des produits:', error);
}
}

/**
* Met à jour l'état des boutons
*/
updateButtonStates() {
this.addProductButtons.forEach((button) => {
const variantId = button.dataset.variantId;

this.selectedProducts.some((p) => p.variantId === variantId)
? button.classList.add('added')
: button.classList.remove('added');
});
}

/**
* Met à jour le prix total
*/
updateTotalPrice() {
const totalPrice = this.selectedProducts.reduce((sum, product) => {
const price = parseFloat(product.price.replace(/[^\d.-]/g, '')) || 0;
return sum + price / 100;
}, 0);

const formattedPrice =
new Intl.NumberFormat('fr-FR', {
minimumFractionDigits: 2,
maximumFractionDigits: 2,
}).format(totalPrice) + '€';

this.totalContainers.forEach((element) => {
element.textContent = formattedPrice;
});

this.countContainers.forEach((element) => {
element.textContent = this.selectedProducts.length;
});
}

/**
* Met à jour la visibilité du titre des produits sélectionnés
*/
updateSelectedProductsTitleVisibility() {
this.addedProductContainers.forEach((element) => {
element.dataset.addedProducts = this.selectedProducts.length ? 'true' : 'false';
});
}

/**
* Met à jour les conteneurs de produits ajoutés
*/
updateProductsAddedContainers() {
this.addedProductContainers.forEach((container) => {
container.dataset.addedProducts = this.selectedProducts.length > 0 ? 'true' : 'false';
});
}

/**
* Ajoute les produits sélectionnés au panier
*/
async addToCart() {
if (this.selectedProducts.length === 0) return;

const cartData = {
items: this.selectedProducts.map((product) => ({
id: Number(product.variantId),
quantity: 1,
properties: {
Ordonnance: this.dataset.ordonnanceName,
},
})),
};

try {
const response = await fetch('/cart/add.js', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(cartData),
});

const data = await response.json();

if (!response.ok) {
throw new Error(data.message || "Erreur lors de l'ajout au panier");
}

// Réinitialisation et redirection
localStorage.removeItem(OrdonnanceProductList.STORAGE_KEY);
this.selectedProducts = [];
this.renderSelectedProducts();
this.updateTotalPrice();
window.location.href = '/cart';
} catch (error) {
console.error("Erreur lors de l'ajout au panier:", error);
alert("Impossible d'ajouter les produits au panier. Veuillez réessayer.");
}
}
}

// Enregistrement du composant personnalisé
customElements.define('ordonnance-product-list', OrdonnanceProductList);
5 changes: 0 additions & 5 deletions assets/icon -arrow-compact.svg

This file was deleted.

1 change: 1 addition & 0 deletions assets/icon-arrow-new.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icon-caret-new.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/icon-close copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icon-dot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icon-present.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/icon-shipping.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/icon-truck-delivery.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading