mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 11:34:13 +00:00
* Handle Turbo updates with tabs Fixes #491 * Add Filterable concern for controllers * Add trendline chart * Extract common UI to partials * Series refactor * Put placeholders for calculations in * Add classification generated column to account * Add basic net worth calculation * Add net worth tests * Get net worth graph working * Fix lint errors * Implement asset grouping query * Make trends and series more intuitive * Fully functional dashboard * Remove logging
30 lines
1.3 KiB
Plaintext
30 lines
1.3 KiB
Plaintext
<%# locals: (account:, valuations:) %>
|
|
<div class="bg-white space-y-4 p-5 border border-alpha-black-25 rounded-xl shadow-xs">
|
|
<div class="flex justify-between items-center">
|
|
<h3 class="font-medium text-lg">History</h3>
|
|
<%= link_to new_account_valuation_path(account), data: { turbo_frame: dom_id(Valuation.new) }, class: "flex gap-1 font-medium items-center bg-gray-50 text-gray-900 p-2 rounded-lg" do %>
|
|
<%= lucide_icon("plus", class: "w-5 h-5 text-gray-900") %>
|
|
<span class="text-sm">New entry</span>
|
|
<% end %>
|
|
</div>
|
|
<div class="rounded-xl bg-gray-25 p-1">
|
|
<div class="flex flex-col rounded-lg space-y-1">
|
|
<div class="text-xs font-medium text-gray-500 uppercase flex items-center px-4 py-2">
|
|
<div class="w-16">date</div>
|
|
<div class="flex items-center justify-between grow">
|
|
<div></div>
|
|
<div>value</div>
|
|
</div>
|
|
<div class="w-56 text-right">change</div>
|
|
<div class="w-[72px]"></div>
|
|
</div>
|
|
<div class="rounded-lg bg-white border-alpha-black-25 shadow-xs">
|
|
<%= turbo_frame_tag dom_id(Valuation.new) %>
|
|
<%= turbo_frame_tag "valuations_list" do %>
|
|
<%= render partial: "accounts/account_valuation_list", locals: { valuation_series: valuations } %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|