mirror of
https://github.com/we-promise/sure.git
synced 2026-04-14 09:34:05 +00:00
* PlaidConnectable concern * Remove bad abstraction * Put sync implementations in own concerns * Sync strategies * Move sync orchestration to Sync class * Clean up sync class, add state machine * Basic market data sync cron * Fix price sync * Improve sync window column names, add timestamps * 30 day syncs by default * Clean up market data methods * Report high duplicate sync counts to Sentry * Add sync states throughout app * account tab session * Persistent account tab selections * Remove manual sleep * Add migration to clear stale syncs on self hosted apps * Tweak sync states * Sync completion event broadcasts * Fix timezones in tests * Cleanup * More cleanup * Plaid item UI broadcasts for sync * Fix account ID namespace conflict * Sync broadcasters * Smoother account sync refreshes * Remove test sync delay
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
<% content_for :page_header do %>
|
|
<div class="space-y-1 mb-6 flex gap-4 justify-between items-center lg:items-start">
|
|
<div class="space-y-1">
|
|
<h1 class="text-xl lg:text-3xl font-medium text-primary">Welcome back, <%= Current.user.first_name %></h1>
|
|
<p class="text-sm lg:text-base text-secondary">Here's what's happening with your finances</p>
|
|
</div>
|
|
|
|
<%= render LinkComponent.new(
|
|
icon: "plus",
|
|
text: "New",
|
|
href: new_account_path,
|
|
frame: :modal,
|
|
class: "hidden lg:inline-flex"
|
|
) %>
|
|
|
|
<%= render LinkComponent.new(
|
|
variant: "icon-inverse",
|
|
icon: "plus",
|
|
href: new_account_path,
|
|
frame: :modal,
|
|
class: "rounded-full lg:hidden"
|
|
) %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="w-full space-y-6 pb-24">
|
|
<% if Current.family.accounts.any? %>
|
|
<section class="bg-container py-4 rounded-xl shadow-border-xs">
|
|
<%= render partial: "pages/dashboard/net_worth_chart", locals: {
|
|
balance_sheet: @balance_sheet,
|
|
period: @period
|
|
} %>
|
|
</section>
|
|
<% else %>
|
|
<section>
|
|
<%= render "pages/dashboard/no_accounts_graph_placeholder" %>
|
|
</section>
|
|
<% end %>
|
|
|
|
<section>
|
|
<%= render "pages/dashboard/balance_sheet", balance_sheet: @balance_sheet %>
|
|
</section>
|
|
</div>
|