mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 12:34:12 +00:00
Implement Reporting tab (#276)
* First reporting version * Fixes for all tabs * Transactions table * Budget section re-design * FIX exports Fix transactions table aggregation * Add support for google sheets Remove pdf and xlsx for now * Multiple fixes - Trends & Insights now follows top filter - Transactions Breakdown removed filters, implemented sort by amount. - The entire section follows top filters. - Export to CSV adds per month breakdown * Linter and tests * Fix amounts - Correctly handle amounts across the views and controller. - Pass proper values to do calculation on, and not loose precision * Update Gemfile.lock * Add support for api-key on reports Also fix custom date filter * Review fixes * Move budget status calculations out of the view. * fix ensures that quarterly reports end at the quarter boundary * Fix bugdet days remaining Fix raw css style * Fix test * Implement google sheets properly with hotwire * Improve UX on period comparison * FIX csv export for non API key auth
This commit is contained in:
27
app/views/reports/_empty_state.html.erb
Normal file
27
app/views/reports/_empty_state.html.erb
Normal file
@@ -0,0 +1,27 @@
|
||||
<div class="bg-container rounded-xl shadow-border-xs p-12 text-center">
|
||||
<%= icon("chart-bar", class: "w-16 h-16 text-tertiary mx-auto mb-6") %>
|
||||
|
||||
<h3 class="text-xl font-medium text-primary mb-3">
|
||||
<%= t("reports.empty_state.title") %>
|
||||
</h3>
|
||||
|
||||
<p class="text-base text-secondary mb-6 max-w-md mx-auto">
|
||||
<%= t("reports.empty_state.description") %>
|
||||
</p>
|
||||
|
||||
<div class="flex gap-3 justify-center">
|
||||
<%= render DS::Link.new(
|
||||
text: t("reports.empty_state.add_transaction"),
|
||||
href: new_transaction_path,
|
||||
variant: "primary",
|
||||
frame: :modal
|
||||
) %>
|
||||
|
||||
<%= render DS::Link.new(
|
||||
text: t("reports.empty_state.add_account"),
|
||||
href: new_account_path,
|
||||
variant: "secondary",
|
||||
frame: :modal
|
||||
) %>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user