1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 13:19:39 +02:00
Commit graph

238 commits

Author SHA1 Message Date
Cristiano Crolla
7fa77b4fd7
Add Custom Turbo Confirm Modal (#580)
* Add turbo confirm dialog

* Add default fallback check

* Fix locale typo and swap element type

* Replaced locale folder and removed static strings from Turbo.setConfirmMethod

* Normalize shared/en.yml
2024-03-29 13:33:49 -04:00
Zach Gollwitzer
b1bfdef8ff
Isolate infinite loop bug, add timeout to actions (#583)
* Isolate infinite loop bug, add timeout to actions

* Increase timeout to allow for temporary failure

* Set correct timeout, implement temporary fix

* Trigger syncs at controller layer
2024-03-29 12:53:08 -04:00
Mattia
2d406274ac
Allow user to search transaction categories (#577)
Issue #573
2024-03-29 10:02:15 -04:00
Thibaut Gorioux
2181cdd118
Allow event propagation to fix turbo frame update (#575)
* Allow event propagation to fix turbo frame update

* Add setting to dropdown to manage close when open and clicking on it
2024-03-28 13:24:07 -04:00
Zach Gollwitzer
f0c2d4ead0
Implement transaction filtering UI (#578)
* Rough sketch of implementation

* Consolidate auto submit controller

* Store ransack params in session

* Improve how summary is calculated for txns

* Implement filters UI
2024-03-28 13:23:54 -04:00
Jose Farias
7ae25dd6df
Implement Synth as an exchange rate provider (#574)
* Implement Synth as an exchange rate provider

* Add assertions to provider interface test

* Assert the correct provider error is raised

* Remove unnecessary parens
2024-03-27 11:16:00 -04:00
Thibaut Gorioux
a1b25f1c5b
Close new account modal when clicking outside of it (#576) 2024-03-27 10:35:23 -04:00
Thibaut Gorioux
d274d1a394
to_series doen't expect argument anymore (#569) 2024-03-26 08:13:19 -04:00
Adrien Poly
d2df5b2872
add uniq index for users email to ensure uniqueness (#567) 2024-03-25 15:59:49 -04:00
dependabot[bot]
39e6d1a2af
Bump good_job from 3.26.2 to 3.27.1 (#562)
Bumps [good_job](https://github.com/bensheldon/good_job) from 3.26.2 to 3.27.1.
- [Release notes](https://github.com/bensheldon/good_job/releases)
- [Changelog](https://github.com/bensheldon/good_job/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bensheldon/good_job/compare/v3.26.2...v3.27.1)

---
updated-dependencies:
- dependency-name: good_job
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-25 13:36:13 -04:00
dependabot[bot]
176300cbd9
Bump rails from 5411787 to 4db9f51 (#563)
Bumps [rails](https://github.com/rails/rails) from `5411787` to `4db9f51`.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](5411787a15...4db9f51259)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-25 13:35:57 -04:00
Zach Gollwitzer
d402f4d6ba
Remove currency conversion job call (#566) 2024-03-25 13:06:27 -04:00
Zach Gollwitzer
110855d077
Multi-Currency Part 2 (#543)
* Support all currencies, handle outside DB

* Remove currencies from seed

* Fix account balance namespace

* Set default currency on authentication

* Cache currency instances

* Implement multi-currency syncs with tests

* Series fallback, passing tests

* Fix conflicts

* Make value group concrete class that works with currency values

* Fix migration conflict

* Update tests to expect multi-currency results

* Update account list to use group method

* Namespace updates

* Fetch unknown exchange rates from API

* Fix date range bug

* Ensure demo data works without external API

* Enforce cascades only at DB level
2024-03-21 13:39:10 -04:00
Josh Pigford
de0cba9fed Update .env.example 2024-03-20 13:27:40 -05:00
Josh Brown
c7b336de45
Fix ZeroDivisionError (#557) 2024-03-20 13:14:08 -04:00
Juan B. Rodriguez
49d1fe0e11
feat: add crypto account type to demo data (#555)
* feat: add crypto account type to demo data

* fix: set currency to BTC, revert schema migration change and fix tests

* fix: update dates in time_series tests
2024-03-19 15:34:35 -04:00
Zach Gollwitzer
f904d9d062
Add the ability to "rollup" values in a time series (#554)
* Clean up time series models

* Add value group rollup class for summarizing hierarchical data

* Integrate new classes

* Update UI to use new patterns

* Update D3 charts to expect new data format

* Clean up account model

* More cleanup

* Money improvements

* Use new money fields

* Remove invalid fixture data to avoid orphaned accountables

* Update time series to work better with collections

* Fix tests and UI bugs
2024-03-19 09:10:40 -04:00
dependabot[bot]
0a8518506c
Bump ruby-lsp-rails from 0.3.2 to 0.3.3 (#549)
Bumps [ruby-lsp-rails](https://github.com/Shopify/ruby-lsp-rails) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/Shopify/ruby-lsp-rails/releases)
- [Commits](https://github.com/Shopify/ruby-lsp-rails/compare/v0.3.2...v0.3.3)

---
updated-dependencies:
- dependency-name: ruby-lsp-rails
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 11:32:46 -04:00
dependabot[bot]
fc66990772
Bump good_job from 3.26.1 to 3.26.2 (#550)
Bumps [good_job](https://github.com/bensheldon/good_job) from 3.26.1 to 3.26.2.
- [Release notes](https://github.com/bensheldon/good_job/releases)
- [Changelog](https://github.com/bensheldon/good_job/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bensheldon/good_job/compare/v3.26.1...v3.26.2)

---
updated-dependencies:
- dependency-name: good_job
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 11:32:19 -04:00
dependabot[bot]
d6fb43a547
Bump rails from bf96dcf to 5411787 (#551)
Bumps [rails](https://github.com/rails/rails) from `bf96dcf` to `5411787`.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](bf96dcfa0d...5411787a15)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 11:30:43 -04:00
dependabot[bot]
9dc2aa7533
Bump pagy from 7.0.10 to 7.0.11 (#552)
Bumps [pagy](https://github.com/ddnexus/pagy) from 7.0.10 to 7.0.11.
- [Release notes](https://github.com/ddnexus/pagy/releases)
- [Changelog](https://github.com/ddnexus/pagy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ddnexus/pagy/compare/7.0.10...7.0.11)

---
updated-dependencies:
- dependency-name: pagy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 11:27:52 -04:00
Zach Gollwitzer
fe2fa0eac1
Multi-currency support: Money + Currency class improvements (#553)
* Money improvements

* Replace all old money usage
2024-03-18 11:21:00 -04:00
Dave Corson-Knowles
e5750d1a13
Add presence validations for required fields (#545)
* Adds basic validations for required fields

Also deletes a few extraneous .keep files

Does not add the family_id required field for user, since that breaks the basic test setup

* Restore keep files to this branch

* Remove Credit model and validate models behind ids

* Restore concerns .keep
2024-03-15 15:21:59 -04:00
Ryan Taber
a4c97a9d52
Removes unused model and routes (#546) 2024-03-15 12:20:54 -04:00
Yu Le
56743eb380
Enable turbo refresh in layout/auth & Fix registrations controller create fail w/ status (#544) 2024-03-14 10:30:46 -04:00
Jakub Kottnauer
2c257a2a4b
Add inline category selection (#541)
* Implement inline category selection

* Add turbo frame to refresh updated transaction

* Improve styles

* Fix category assignment

* Reorganize code

* Revert event propagation

* Remove unused frames

* Make only the transaction name clickable

* Add custom scrollbar class
2024-03-14 10:30:36 -04:00
Jakub Kottnauer
2c3752668a
Fix event handler removal on disconnect (#540)
* Fix event handler removal on disconnect

* Fix tab controller
2024-03-11 17:42:18 -04:00
Zach Gollwitzer
c60ddaec1d
Multi-currency part 1 (#542)
* Add family snapshots table

* Add snapshot method, clean up family expected results

* Remove old sync trigger
2024-03-11 16:32:13 -04:00
Josh Pigford
1cdf5ea6a7 Optimized icons 2024-03-11 09:02:48 -05:00
Josh Pigford
0eddd86e74 Favicons 2024-03-11 09:01:50 -05:00
dependabot[bot]
c7cf9bad69
Bump rails from db30dd6 to bf96dcf (#538)
Bumps [rails](https://github.com/rails/rails) from `db30dd6` to `bf96dcf`.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](db30dd6fe7...bf96dcfa0d)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 08:53:57 -04:00
dependabot[bot]
ad15fa2c47
Bump turbo-rails from 2.0.4 to 2.0.5 (#539)
Bumps [turbo-rails](https://github.com/hotwired/turbo-rails) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/hotwired/turbo-rails/releases)
- [Commits](https://github.com/hotwired/turbo-rails/compare/v2.0.4...v2.0.5)

---
updated-dependencies:
- dependency-name: turbo-rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 08:51:27 -04:00
Ciocanel Razvan
cca779d3c4
Feat transactions search (#532)
* gem: Add ransack gem

* feat: Implement transactions search
2024-03-11 08:51:16 -04:00
Cristiano Crolla
7f2633f9da
Add transaction sidebar (#534)
* Create sidebar element and working with turbo

* Add overview fields

* Add columns to transations and tidy modal

* permit new transaction params

* Add autosubmit form controller

* remove unused show code
2024-03-10 17:38:31 -04:00
Jean Moreau
9c9459211f
Implement basic transaction pagination (#531)
* install pagy

* add pagy to controller, display default pagy UI

* display hardcoded custom UI to confirm styling

* implement custom UI with pagy methods

* move pagination into partial

* use lucide icons

* only display pagination if 2 or more pages are available

* add mobile pagination placeholder

* use link_to and display greyed out buttons when no prev or next needed

* sort transactions by date so grouping works appropriately with pagination

* add space between mobile view buttons

* remove debugging
2024-03-08 15:11:58 -05:00
Zach Gollwitzer
ed89ad522d
Add multi currency demo accounts (#530) 2024-03-07 17:46:36 -05:00
Jakub Kottnauer
90d0cc0c39
Add backend support for transaction categories (#524)
* Add backend support for transaction categories

* Fix tests

* Localize default category names

* Add tests

* Remove category icon and set default color
2024-03-07 13:15:50 -05:00
Zach Gollwitzer
ad7136cb63
Add accounts management list (#522)
* Add accounts management

* Normalize i18n file

* Get turbo streams working

* Ignore disabled accounts in calculations

* Add empty state
2024-03-07 10:55:51 -05:00
Dave Corson-Knowles
0e77bab00b
Keep .ruby_version file in Docker (#523)
* Use our .ruby-version file in Bundler so it is managed in only 1 place

See: https://gorails.com/episodes/bundler-ruby-version-file

* Copy Ruby Version file into Docker

* Update Dockerfile

Signed-off-by: Zach Gollwitzer <zach.gollwitzer@gmail.com>

---------

Signed-off-by: Zach Gollwitzer <zach.gollwitzer@gmail.com>
Co-authored-by: Zach Gollwitzer <zach.gollwitzer@gmail.com>
2024-03-07 10:43:18 -05:00
Zach Gollwitzer
6f0e410684
Dashboard View and Calculations (#521)
* 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
2024-03-06 09:56:59 -05:00
Dave Corson-Knowles
680a91d807
Use our .ruby-version file in Bundler so it is managed in only 1 place (#520)
See: https://gorails.com/episodes/bundler-ruby-version-file
2024-03-06 08:19:10 -05:00
Dave Corson-Knowles
9c08721e9c
Add angel investment type to Investment (#519) 2024-03-06 08:14:25 -05:00
Dave Corson-Knowles
d40fa9909a
Remove unused gem jbuilder (#518)
* Remove unused Gem jbuilder

* Remove unused Gem jbuilder

* Revert "Remove unused Gem jbuilder"

This reverts commit d165ddc1fc.
2024-03-06 08:12:39 -05:00
Josh Pigford
159245b08c Remove red icon 2024-03-04 10:41:48 -06:00
Josh Pigford
c5b142a23f Update multi-currency readme 2024-03-04 10:27:34 -06:00
Josh Pigford
4843cf22c6
Use Synth for exchange rates (#514)
* Switch currency seeding over to Synth

* Switch all exchange rates over to Synth
2024-03-04 10:26:20 -06:00
dependabot[bot]
0f2c41477d
Bump rails from 2abee30 to db30dd6 (#509)
Bumps [rails](https://github.com/rails/rails) from `2abee30` to `db30dd6`.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](2abee307fe...db30dd6fe7)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 08:41:01 -05:00
dependabot[bot]
711d40037d
Bump dotenv-rails from 3.0.2 to 3.1.0 (#510)
Bumps [dotenv-rails](https://github.com/bkeepers/dotenv) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/bkeepers/dotenv/releases)
- [Changelog](https://github.com/bkeepers/dotenv/blob/main/Changelog.md)
- [Commits](https://github.com/bkeepers/dotenv/compare/v3.0.2...v3.1.0)

---
updated-dependencies:
- dependency-name: dotenv-rails
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 08:35:33 -05:00
dependabot[bot]
19fc41c28e
Bump good_job from 3.25.0 to 3.26.1 (#511)
Bumps [good_job](https://github.com/bensheldon/good_job) from 3.25.0 to 3.26.1.
- [Release notes](https://github.com/bensheldon/good_job/releases)
- [Changelog](https://github.com/bensheldon/good_job/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bensheldon/good_job/compare/v3.25.0...v3.26.1)

---
updated-dependencies:
- dependency-name: good_job
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 08:32:07 -05:00
dependabot[bot]
a4ca47632b
Bump pg from 1.5.5 to 1.5.6 (#512)
Bumps [pg](https://github.com/ged/ruby-pg) from 1.5.5 to 1.5.6.
- [Changelog](https://github.com/ged/ruby-pg/blob/master/History.md)
- [Commits](https://github.com/ged/ruby-pg/compare/v1.5.5...v1.5.6)

---
updated-dependencies:
- dependency-name: pg
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 08:31:50 -05:00