1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00

Data exports (#2517)

* Import / export UI

* Data exports

* Lint fixes, brakeman update
This commit is contained in:
Zach Gollwitzer 2025-07-24 10:50:05 -04:00 committed by GitHub
parent b7c56e2fb7
commit 0329a5f211
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 717 additions and 2 deletions

View file

@ -122,6 +122,29 @@
</div>
<% end %>
<% if Current.user.admin? %>
<%= settings_section title: "Data Import/Export" do %>
<div class="space-y-4">
<div class="flex gap-4 items-center">
<%= render DS::Link.new(
text: "Export data",
icon: "database",
href: new_family_export_path,
variant: "secondary",
full_width: true,
data: { turbo_frame: :modal }
) %>
</div>
<%= turbo_frame_tag "family_exports", src: family_exports_path, loading: :lazy do %>
<div class="mt-4 text-center text-secondary">
<div class="animate-spin inline-block h-4 w-4 border-2 border-secondary border-t-transparent rounded-full"></div>
</div>
<% end %>
</div>
<% end %>
<% end %>
<%= settings_section title: t(".danger_zone_title") do %>
<div class="space-y-4">
<% if Current.user.admin? %>