diff --git a/README.md b/README.md index 620876a2..cd5982cb 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@ Join us? [^^^ STOPPED EDITING HERE ^^^] +> This repository is no longer actively maintained. You can read more about this in our [final release](https://github.com/maybe-finance/maybe/releases/tag/v0.6.0). + ## Maybe Hosting Maybe is a fully working personal finance app that can be [self hosted with Docker](docs/hosting/docker.md). diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 0b2252d7..b78c54ad 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -9,6 +9,11 @@ class AccountsController < ApplicationController render layout: "settings" end + def sync_all + family.sync_later + redirect_to accounts_path, notice: "Syncing accounts..." + end + def show @chart_view = params[:chart_view] || "balance" @tab = params[:tab] diff --git a/app/views/accounts/index.html.erb b/app/views/accounts/index.html.erb index ff45d33f..3557ceb8 100644 --- a/app/views/accounts/index.html.erb +++ b/app/views/accounts/index.html.erb @@ -2,6 +2,14 @@

<%= t(".accounts") %>

+ <%= icon( + "refresh-cw", + as_button: true, + size: "sm", + href: sync_all_accounts_path, + disabled: Current.family.syncing?, + frame: :_top + ) %> <%= render DS::Link.new( text: "New account", href: new_account_path(return_to: accounts_path), diff --git a/config/initializers/version.rb b/config/initializers/version.rb index 134b959a..3aefc6ba 100644 --- a/config/initializers/version.rb +++ b/config/initializers/version.rb @@ -14,7 +14,7 @@ module Maybe private def semver - "0.5.0" + "0.6.0" end end end diff --git a/config/routes.rb b/config/routes.rb index a44554d6..d6c2bc7a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -162,6 +162,10 @@ Rails.application.routes.draw do get :sparkline patch :toggle_active end + + collection do + post :sync_all + end end # Convenience routes for polymorphic paths