mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-07 22:45:20 +02:00
Component namespacing (#2463)
* [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:
parent
d5b147f2cd
commit
ab6fdbbb68
182 changed files with 322 additions and 321 deletions
|
@ -4,7 +4,7 @@
|
|||
<div class="space-y-4">
|
||||
<div class="p-3 shadow-border-xs bg-container rounded-lg">
|
||||
<div class="flex items-start gap-3">
|
||||
<%= render FilledIconComponent.new(
|
||||
<%= render DS::FilledIcon.new(
|
||||
icon: "check-circle",
|
||||
rounded: true,
|
||||
size: "lg",
|
||||
|
@ -24,7 +24,7 @@
|
|||
<div class="bg-container rounded-lg p-3 border border-primary" data-controller="clipboard">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<code id="api-key-display" class="font-mono text-sm text-primary break-all" data-clipboard-target="source"><%= @api_key.plain_key %></code>
|
||||
<%= render ButtonComponent.new(
|
||||
<%= render DS::Button.new(
|
||||
text: "Copy API Key",
|
||||
variant: "ghost",
|
||||
icon: "copy",
|
||||
|
@ -84,7 +84,7 @@
|
|||
</div>
|
||||
|
||||
<div class="flex justify-end pt-4 border-t border-primary">
|
||||
<%= render LinkComponent.new(
|
||||
<%= render DS::Link.new(
|
||||
text: "Continue to API Key Settings",
|
||||
href: settings_api_key_path,
|
||||
variant: "primary"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div class="space-y-4">
|
||||
<div class="p-3 shadow-border-xs bg-container rounded-lg">
|
||||
<div class="flex items-start gap-3">
|
||||
<%= render FilledIconComponent.new(
|
||||
<%= render DS::FilledIcon.new(
|
||||
icon: "check-circle",
|
||||
rounded: true,
|
||||
size: "lg",
|
||||
|
@ -29,7 +29,7 @@
|
|||
<div class="bg-container rounded-lg p-3 border border-primary" data-controller="clipboard">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<code id="api-key-display" class="font-mono text-sm text-primary break-all" data-clipboard-target="source"><%= @api_key.plain_key %></code>
|
||||
<%= render ButtonComponent.new(
|
||||
<%= render DS::Button.new(
|
||||
text: "Copy API Key",
|
||||
variant: "ghost",
|
||||
icon: "copy",
|
||||
|
@ -89,7 +89,7 @@
|
|||
</div>
|
||||
|
||||
<div class="flex justify-end pt-4 border-t border-primary">
|
||||
<%= render LinkComponent.new(
|
||||
<%= render DS::Link.new(
|
||||
text: "Continue to API Key Settings",
|
||||
href: settings_api_key_path,
|
||||
variant: "primary"
|
||||
|
|
|
@ -44,13 +44,13 @@
|
|||
</div>
|
||||
|
||||
<div class="flex justify-end gap-3 pt-4 border-t border-primary">
|
||||
<%= render LinkComponent.new(
|
||||
<%= render DS::Link.new(
|
||||
text: "Cancel",
|
||||
href: settings_api_key_path,
|
||||
variant: "ghost"
|
||||
) %>
|
||||
|
||||
<%= render ButtonComponent.new(
|
||||
<%= render DS::Button.new(
|
||||
text: "Create API Key",
|
||||
variant: "primary",
|
||||
type: "submit"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<div class="space-y-4">
|
||||
<div class="p-3 shadow-border-xs bg-container rounded-lg">
|
||||
<div class="flex items-start gap-3">
|
||||
<%= render FilledIconComponent.new(
|
||||
<%= render DS::FilledIcon.new(
|
||||
icon: "check-circle",
|
||||
rounded: true,
|
||||
size: "lg",
|
||||
|
@ -25,7 +25,7 @@
|
|||
<div class="bg-container rounded-lg p-3 border border-primary" data-controller="clipboard">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<code id="api-key-display" class="font-mono text-sm text-primary break-all" data-clipboard-target="source"><%= @current_api_key.plain_key %></code>
|
||||
<%= render ButtonComponent.new(
|
||||
<%= render DS::Button.new(
|
||||
text: "Copy API Key",
|
||||
variant: "ghost",
|
||||
icon: "copy",
|
||||
|
@ -44,7 +44,7 @@
|
|||
</div>
|
||||
|
||||
<div class="flex justify-end pt-4 border-t border-primary">
|
||||
<%= render LinkComponent.new(
|
||||
<%= render DS::Link.new(
|
||||
text: "Continue to API Key Settings",
|
||||
href: settings_api_key_path,
|
||||
variant: "primary"
|
||||
|
@ -57,7 +57,7 @@
|
|||
<div class="space-y-4">
|
||||
<div class="p-3 shadow-border-xs bg-container rounded-lg flex justify-between items-center">
|
||||
<div class="flex items-center gap-3">
|
||||
<%= render FilledIconComponent.new(
|
||||
<%= render DS::FilledIcon.new(
|
||||
icon: "key",
|
||||
rounded: true,
|
||||
size: "lg"
|
||||
|
@ -104,7 +104,7 @@
|
|||
<div class="bg-container rounded-lg p-3 border border-primary" data-controller="clipboard">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<code id="api-key-display" class="font-mono text-sm text-primary break-all" data-clipboard-target="source"><%= @current_api_key.plain_key %></code>
|
||||
<%= render ButtonComponent.new(
|
||||
<%= render DS::Button.new(
|
||||
text: "Copy API Key",
|
||||
variant: "ghost",
|
||||
icon: "copy",
|
||||
|
@ -123,13 +123,13 @@
|
|||
</div>
|
||||
|
||||
<div class="flex flex-col sm:flex-row gap-3 pt-4 border-t border-primary">
|
||||
<%= render LinkComponent.new(
|
||||
<%= render DS::Link.new(
|
||||
text: "Create New Key",
|
||||
href: new_settings_api_key_path(regenerate: true),
|
||||
variant: "secondary"
|
||||
) %>
|
||||
|
||||
<%= render ButtonComponent.new(
|
||||
<%= render DS::Button.new(
|
||||
text: "Revoke Key",
|
||||
href: settings_api_key_path,
|
||||
method: :delete,
|
||||
|
@ -146,7 +146,7 @@
|
|||
<div class="space-y-4">
|
||||
<div class="p-3 shadow-border-xs bg-container rounded-lg">
|
||||
<div class="flex items-start gap-3">
|
||||
<%= render FilledIconComponent.new(
|
||||
<%= render DS::FilledIcon.new(
|
||||
icon: "key",
|
||||
rounded: true,
|
||||
size: "lg"
|
||||
|
@ -181,7 +181,7 @@
|
|||
</div>
|
||||
|
||||
<div class="flex justify-start">
|
||||
<%= render LinkComponent.new(
|
||||
<%= render DS::Link.new(
|
||||
text: "Create API Key",
|
||||
href: new_settings_api_key_path,
|
||||
variant: "primary"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue