1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-08 15:05:22 +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

@ -2,7 +2,7 @@
<div class="text-center flex flex-col items-center max-w-[300px] gap-4">
<p class="text-primary mb-1 font-medium text-sm"><%= t(".message") %></p>
<%= render LinkComponent.new(
<%= render DS::Link.new(
text: t(".new"),
variant: "primary",
href: new_import_path,

View file

@ -11,6 +11,6 @@
<p class="text-sm text-secondary">Please check that your file format, for any errors and that all required fields are filled, then come back and try again.</p>
</div>
<%= render ButtonComponent.new(text: "Try again", href: publish_import_path(import), full_width: true) %>
<%= render DS::Button.new(text: "Try again", href: publish_import_path(import), full_width: true) %>
</div>
</div>

View file

@ -36,7 +36,7 @@
<% end %>
</div>
<%= render MenuComponent.new do |menu| %>
<%= render DS::Menu.new do |menu| %>
<% menu.with_item(variant: "link", text: t(".view"), href: import_path(import), icon: "eye") %>
<% if import.complete? || import.revert_failed? %>

View file

@ -12,8 +12,8 @@
</div>
<div class="space-y-2 flex flex-col">
<%= render LinkComponent.new(text: "Check status", href: import_path(import), variant: "primary", full_width: true) %>
<%= render LinkComponent.new(text: "Back to dashboard", href: root_path, variant: "secondary", full_width: true) %>
<%= render DS::Link.new(text: "Check status", href: import_path(import), variant: "primary", full_width: true) %>
<%= render DS::Link.new(text: "Back to dashboard", href: root_path, variant: "secondary", full_width: true) %>
</div>
</div>
</div>

View file

@ -35,5 +35,5 @@
</div>
</div>
<%= render ButtonComponent.new(text: "Publish import", href: publish_import_path(import), full_width: true) %>
<%= render DS::Button.new(text: "Publish import", href: publish_import_path(import), full_width: true) %>
</div>

View file

@ -11,7 +11,7 @@
<p class="text-sm text-secondary">Please try again or contact support.</p>
</div>
<%= render ButtonComponent.new(
<%= render DS::Button.new(
text: "Try again",
full_width: true,
href: revert_import_path(import)

View file

@ -11,7 +11,7 @@
<p class="text-sm text-secondary">Your imported data has been successfully added to the app and is now ready for use.</p>
</div>
<%= render LinkComponent.new(
<%= render DS::Link.new(
text: "Back to dashboard",
variant: "primary",
full_width: true,

View file

@ -1,7 +1,7 @@
<div class="flex items-center justify-between">
<h1 class="text-xl font-medium text-primary"><%= t(".title") %></h1>
<%= render LinkComponent.new(
<%= render DS::Link.new(
text: "New import",
href: new_import_path,
icon: "plus",

View file

@ -1,4 +1,4 @@
<%= render DialogComponent.new do |dialog| %>
<%= render DS::Dialog.new do |dialog| %>
<% dialog.with_header(title: t(".title"), subtitle: t(".description")) %>
<% dialog.with_body do %>