Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Commit a1a05c8

Browse files
committed
Merge remote-tracking branch 'origin/main' into bugfix/ui-pwa-ios
2 parents c78e781 + 321a343 commit a1a05c8

File tree

279 files changed

+4384
-1137
lines changed

Some content is hidden

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

279 files changed

+4384
-1137
lines changed

Gemfile.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ GEM
122122
bindex (0.8.1)
123123
bootsnap (1.18.6)
124124
msgpack (~> 1.2)
125-
brakeman (7.0.2)
125+
brakeman (7.1.0)
126126
racc
127127
builder (3.3.0)
128128
capybara (3.40.0)
@@ -192,9 +192,9 @@ GEM
192192
et-orbi (1.2.11)
193193
tzinfo
194194
event_stream_parser (1.0.0)
195-
faker (3.5.1)
195+
faker (3.5.2)
196196
i18n (>= 1.8.11, < 2)
197-
faraday (2.13.1)
197+
faraday (2.13.2)
198198
faraday-net_http (>= 2.0, < 3.5)
199199
json
200200
logger
@@ -365,7 +365,7 @@ GEM
365365
faraday (>= 1, < 3)
366366
sawyer (~> 0.9)
367367
ostruct (0.6.2)
368-
pagy (9.3.4)
368+
pagy (9.3.5)
369369
parallel (1.27.0)
370370
parser (3.3.8.0)
371371
ast (~> 2.4.1)
@@ -448,13 +448,13 @@ GEM
448448
ffi (~> 1.0)
449449
rbs (3.9.4)
450450
logger
451-
rdoc (6.14.1)
451+
rdoc (6.14.2)
452452
erb
453453
psych (>= 4.0.0)
454454
redcarpet (3.6.1)
455455
redis (5.4.0)
456456
redis-client (>= 0.22.0)
457-
redis-client (0.24.0)
457+
redis-client (0.25.0)
458458
connection_pool
459459
regexp_parser (2.10.0)
460460
reline (0.6.1)
@@ -522,16 +522,16 @@ GEM
522522
rexml (~> 3.2, >= 3.2.5)
523523
rubyzip (>= 1.2.2, < 3.0)
524524
websocket (~> 1.0)
525-
sentry-rails (5.25.0)
525+
sentry-rails (5.26.0)
526526
railties (>= 5.0)
527-
sentry-ruby (~> 5.25.0)
528-
sentry-ruby (5.25.0)
527+
sentry-ruby (~> 5.26.0)
528+
sentry-ruby (5.26.0)
529529
bigdecimal
530530
concurrent-ruby (~> 1.0, >= 1.0.2)
531-
sentry-sidekiq (5.25.0)
532-
sentry-ruby (~> 5.25.0)
531+
sentry-sidekiq (5.26.0)
532+
sentry-ruby (~> 5.26.0)
533533
sidekiq (>= 3.0)
534-
sidekiq (8.0.4)
534+
sidekiq (8.0.5)
535535
connection_pool (>= 2.5.0)
536536
json (>= 2.9.0)
537537
logger (>= 1.6.2)
@@ -556,7 +556,7 @@ GEM
556556
stimulus-rails (1.3.4)
557557
railties (>= 6.0.0)
558558
stringio (3.1.7)
559-
stripe (15.2.1)
559+
stripe (15.3.0)
560560
tailwindcss-rails (4.2.3)
561561
railties (>= 7.0.0)
562562
tailwindcss-ruby (~> 4.0)
File renamed without changes.

app/components/alert_component.rb renamed to app/components/DS/alert.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AlertComponent < ViewComponent::Base
1+
class DS::Alert < DesignSystemComponent
22
def initialize(message:, variant: :info)
33
@message = message
44
@variant = variant

app/components/button_component.html.erb renamed to app/components/DS/button.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<%= container do %>
22
<% if icon && (icon_position != :right) %>
3-
<%= helpers.icon(icon, size: size, color: icon_color) %>
3+
<%= helpers.icon(icon, size: size, color: icon_color, class: icon_classes) %>
44
<% end %>
55

66
<% unless icon_only? %>

app/components/button_component.rb renamed to app/components/DS/button.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# An extension to `button_to` helper. All options are passed through to the `button_to` helper with some additional
44
# options available.
5-
class ButtonComponent < ButtonishComponent
5+
class DS::Button < DS::Buttonish
66
attr_reader :confirm
77

88
def initialize(confirm: nil, **opts)

app/components/buttonish_component.rb renamed to app/components/DS/buttonish.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
class ButtonishComponent < ViewComponent::Base
1+
class DS::Buttonish < DesignSystemComponent
22
VARIANTS = {
33
primary: {
44
container_classes: "text-inverse bg-inverse hover:bg-inverse-hover disabled:bg-gray-500 theme-dark:disabled:bg-gray-400",
55
icon_classes: "fg-inverse"
66
},
77
secondary: {
8-
container_classes: "text-secondary bg-gray-50 theme-dark:bg-gray-700 hover:bg-gray-100 theme-dark:hover:bg-gray-600 disabled:bg-gray-200 theme-dark:disabled:bg-gray-600",
8+
container_classes: "text-primary bg-gray-50 theme-dark:bg-gray-700 hover:bg-gray-100 theme-dark:hover:bg-gray-600 disabled:bg-gray-200 theme-dark:disabled:bg-gray-600",
99
icon_classes: "fg-primary"
1010
},
1111
destructive: {
@@ -71,7 +71,7 @@ def initialize(variant: :primary, size: :md, href: nil, text: nil, icon: nil, ic
7171
end
7272

7373
def call
74-
raise NotImplementedError, "ButtonishComponent is an abstract class and cannot be instantiated directly."
74+
raise NotImplementedError, "Buttonish is an abstract class and cannot be instantiated directly."
7575
end
7676

7777
def container_classes(override_classes = nil)

app/components/dialog_component.html.erb renamed to app/components/DS/dialog.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%= wrapper_element do %>
22
<%= tag.dialog class: "w-full h-full bg-transparent theme-dark:backdrop:bg-alpha-black-900 backdrop:bg-overlay pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)] #{drawer? ? "lg:p-3" : "lg:p-1"}", **merged_opts do %>
33
<%= tag.div class: dialog_outer_classes do %>
4-
<%= tag.div class: dialog_inner_classes, data: { dialog_target: "content" } do %>
4+
<%= tag.div class: dialog_inner_classes, data: { DS__dialog_target: "content" } do %>
55
<div class="grow overflow-y-auto py-4 space-y-4 flex flex-col">
66
<% if header? %>
77
<%= header %>

app/components/dialog_component.rb renamed to app/components/DS/dialog.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
class DialogComponent < ViewComponent::Base
1+
class DS::Dialog < DesignSystemComponent
22
renders_one :header, ->(title: nil, subtitle: nil, hide_close_icon: false, **opts, &block) do
33
content_tag(:header, class: "px-4 flex flex-col gap-2", **opts) do
44
title_div = content_tag(:div, class: "flex items-center justify-between gap-2") do
55
title = content_tag(:h2, title, class: class_names("font-medium text-primary", drawer? ? "text-lg" : "")) if title
6-
close_icon = render ButtonComponent.new(variant: "icon", class: "ml-auto", icon: "x", tabindex: "-1", data: { action: "dialog#close" }) unless hide_close_icon
6+
close_icon = render DS::Button.new(variant: "icon", class: "ml-auto", icon: "x", tabindex: "-1", data: { action: "DS--dialog#close" }) unless hide_close_icon
77
safe_join([ title, close_icon ].compact)
88
end
99

@@ -19,16 +19,16 @@ class DialogComponent < ViewComponent::Base
1919

2020
renders_many :actions, ->(cancel_action: false, **button_opts) do
2121
merged_opts = if cancel_action
22-
button_opts.merge(type: "button", data: { action: "modal#close" })
22+
button_opts.merge(type: "button", data: { action: "DS--dialog#close" })
2323
else
2424
button_opts
2525
end
2626

27-
render ButtonComponent.new(**merged_opts)
27+
render DS::Button.new(**merged_opts)
2828
end
2929

3030
renders_many :sections, ->(title:, **disclosure_opts, &block) do
31-
render DisclosureComponent.new(title: title, align: :right, **disclosure_opts) do
31+
render DS::Disclosure.new(title: title, align: :right, **disclosure_opts) do
3232
block.call
3333
end
3434
end
@@ -99,11 +99,11 @@ def merged_opts
9999
merged_opts = opts.dup
100100
data = merged_opts.delete(:data) || {}
101101

102-
data[:controller] = [ "dialog", "hotkey", data[:controller] ].compact.join(" ")
103-
data[:dialog_auto_open_value] = auto_open
104-
data[:dialog_reload_on_close_value] = reload_on_close
105-
data[:action] = [ "mousedown->dialog#clickOutside", data[:action] ].compact.join(" ")
106-
data[:hotkey] = "esc:dialog#close"
102+
data[:controller] = [ "DS--dialog", "hotkey", data[:controller] ].compact.join(" ")
103+
data[:DS__dialog_auto_open_value] = auto_open
104+
data[:DS__dialog_reload_on_close_value] = reload_on_close
105+
data[:action] = [ "mousedown->DS--dialog#clickOutside", data[:action] ].compact.join(" ")
106+
data[:hotkey] = "esc:DS--dialog#close"
107107
merged_opts[:data] = data
108108

109109
merged_opts
File renamed without changes.

0 commit comments

Comments
 (0)