Gaetan Craig-Riou
8de7c304fe
Add AdminTooltipComponent
...
I left the stimulus controller separated as it is generic enough
2024-09-10 13:29:40 +10:00
Gaetan Craig-Riou
0a9b858f2a
Add the ability to pass options ModalComponent
...
Now you can add another stimulus controller or action to the modal
2024-09-10 13:29:39 +10:00
Maikel Linke
6317fe1b71
Disable RSpec monkey patching
2024-05-09 12:24:41 +10:00
David Cook
58215727bc
[fixup]
...
- Style/ClassAndModuleChildren: Use nested module/class definitions instead of compact style.
- fix spec
2023-11-30 13:47:39 +11:00
David Cook
968a224da6
Move vertical ellipsis menu to a ViewComponent
...
Javascript hasn't been moved in, as we don't seem to be set up for that yet.
We could make it smarter, and pass in an array of parameters to build the links (as in _order_links.html.haml). But why make it complicated if we don't need to?
2023-11-24 16:23:18 +11:00
Jean-Baptiste Bellet
3b68674896
Remove new_products_page and all associated controller/components/
...
new_products_page` is dead, long live `admin_style_v3` !
2023-08-10 10:02:45 +02:00
David Cook
a9ca07f4fb
fixup Update specs
...
Delete empty describe block
2023-08-08 11:36:31 +01:00
Matt-Yorkley
321047d663
Update specs
2023-08-08 11:36:31 +01:00
Matt-Yorkley
42a3087cdb
Remove :available_on attribute from Product class
2023-07-06 14:36:35 +01:00
Gaetan Craig-Riou
503e0ecba1
Fix category spec as per code review
...
- Use a hardcoded string for the expected categories (taxons), and fix
taxon step up to not use default taxon
- Fix constant typo
2023-02-14 13:36:12 +11:00
Gaetan Craig-Riou
313fdab346
Fix rubocop warnings
2023-02-08 12:04:05 +11:00
Gaetan Craig-Riou
722b04a211
Add missing collumns on new_products page
...
It also includes specs for ProductComponent
2023-02-08 12:04:05 +11:00
Jean-Baptiste Bellet
928b4144d5
Remove @storybook
2022-12-27 10:50:11 +01:00
Luis Ramos
e52937c113
Use rubocop auto correct to add frozen string literal to all files
...
This is an unsafe auto corection, we will need to trust our build here
2021-06-17 23:07:26 +01:00
Luis Ramos
23627c5453
Run rubocop -a (safe corrections) removing all exceptions so all possible fixes are applied
...
9290 issues fixed
2021-06-17 22:19:26 +01:00
Jean-Baptiste Bellet
4781d6cc84
Add new (and first) component: DistributorTitle
...
- Simple wrapper around `<h3 />` for distributor title, used in the shop front
2021-04-22 15:08:54 +02:00
Jean-Baptiste Bellet
39683bd814
Create first story for ExampleComponent
...
- Once story has been created, still need to generate the story itself (in json file format). Help with command: `rake view_component_storybook:write_stories_json`
2021-04-22 15:08:54 +02:00
Jean-Baptiste Bellet
390c8a89da
Add (very simple) spec for a ViewComponent component
...
- Add `ViewComponent::TestHelpers` to get the helper method `render_inline`
- Use Capybara to expect some assertion
2021-04-22 15:08:54 +02:00