1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

Component namespacing (#2463)
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

* [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:23 EDT

* [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:30 EDT

* Update stimulus controller references to use namespace

* Fix remaining tests
This commit is contained in:
Zach Gollwitzer 2025-07-18 08:30:00 -04:00 committed by GitHub
parent d5b147f2cd
commit ab6fdbbb68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
182 changed files with 322 additions and 321 deletions

View file

@ -17,14 +17,13 @@
</div>
</div>
<%= render MenuComponent.new(variant: "button", no_padding: true) do |menu| %>
<%= render DS::Menu.new(variant: "button", no_padding: true) do |menu| %>
<% menu.with_button(
id: "transaction-filters-button",
type: "button",
text: "Filter",
variant: "outline",
icon: "list-filter",
data: { menu_target: "button" }
icon: "list-filter"
) %>
<% menu.with_custom_content do %>

View file

@ -1,6 +1,6 @@
<%# locals: (form:) %>
<%= render TabsComponent.new(
<%= render DS::Tabs.new(
variant: :unstyled,
active_tab: get_default_transaction_search_filter[:key],
active_btn_classes: "bg-surface text-primary",
@ -28,7 +28,7 @@
<div class="flex justify-between items-center gap-2 bg-container p-3 shrink-0">
<div>
<% if @q.present? %>
<%= render LinkComponent.new(
<%= render DS::Link.new(
text: t(".clear_filters"),
variant: "ghost",
href: transactions_path(clear_filters: true),
@ -37,8 +37,8 @@
</div>
<div>
<%= render ButtonComponent.new(text: t(".cancel"), type: "button", variant: "ghost", data: { action: "menu#close" }) %>
<%= render ButtonComponent.new(text: t(".apply")) %>
<%= render DS::Button.new(text: t(".cancel"), type: "button", variant: "ghost", data: { action: "DS--menu#close" }) %>
<%= render DS::Button.new(text: t(".apply")) %>
</div>
</div>
</div>

View file

@ -16,7 +16,7 @@
merchant.name,
nil %>
<%= form.label :merchants, value: merchant.name, class: "text-sm text-primary flex items-center gap-2" do %>
<%= render FilledIconComponent.new(
<%= render DS::FilledIcon.new(
variant: :text,
hex_color: merchant.color,
text: merchant.name,

View file

@ -16,7 +16,7 @@
tag.name,
nil %>
<%= form.label :tags, value: tag.name, class: "text-sm text-primary flex items-center gap-2" do %>
<%= render FilledIconComponent.new(
<%= render DS::FilledIcon.new(
variant: :text,
hex_color: tag.color || Tag::UNCATEGORIZED_COLOR,
text: tag.name,