1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00
Commit graph

295 commits

Author SHA1 Message Date
Jose Farias
39ebf7f129 Implement empty state 2024-04-19 10:02:37 -06:00
Jose Farias
f40cb215f7 Replace trendline controller 2024-04-19 09:52:41 -06:00
Jose Farias
237cfc1f45 Refactor trendline chart controller into a time series chart controller 2024-04-19 09:50:15 -06:00
Jose Farias
ee920f359c Remove object parsing in TimeSeries::Value
We're only every passing hashes
2024-04-18 22:57:50 -06:00
Jose Farias
31caf7056d Refactor Money 2024-04-18 21:06:47 -06:00
Jose Farias
03cee1f121 Skip trend values same class validations if any values are nil 2024-04-18 21:06:36 -06:00
Jose Farias
70747320c0 Clean up TimeSeries::Trend 2024-04-18 20:54:11 -06:00
Jose Farias
5d14d03963 Allow nil current values in trends
I think I might've gotten it wrong before, nils might appear in trends if values are unavailable for snapshots
2024-04-18 20:52:52 -06:00
Jose Farias
ec68b9bfe7 Make trend public in TimeSeries::Value 2024-04-18 20:49:43 -06:00
Jose Farias
11afc94f69 Merge branch 'jose/refactor-time-series' of github.com:josefarias/maybe into jose/refactor-time-series 2024-04-18 20:47:36 -06:00
Jose Farias
7a119199b3 Use favorable_direction for trend_styles helper 2024-04-18 20:47:25 -06:00
Jose Farias
e1c75c1628
Merge branch 'maybe-finance:main' into jose/refactor-time-series 2024-04-18 20:44:52 -06:00
Jose Farias
7714c4f89d Correctly enumerate trend test 2024-04-18 20:43:00 -06:00
Jose Farias
913e50569c Bring back trend test 2024-04-18 20:42:28 -06:00
Jose Farias
c041f4f6c0 Bring back tests for trends where current is nil 2024-04-18 20:40:16 -06:00
Jose Farias
9aa975cc90 Use as_json in TimeSeries 2024-04-18 20:40:00 -06:00
Jose Farias
4ed294eb13 Refactor TimeSeries artifacts 2024-04-18 20:03:46 -06:00
Jose Farias
cc7b878d50 Reindent Money class 2024-04-18 20:01:58 -06:00
Jose Farias
996a2e1c75 Remove trend tests where current is nil
I think if we've gotten this far with a nil value for current, there's a data integrity problem.

If we allow this, we'll have to be very defensive in our code. Best to raise and fix early.
2024-04-18 20:01:40 -06:00
Jose Farias
3c4bdb6bef Fix spacing in time series tests 2024-04-18 18:09:03 -06:00
Jose Farias
e175aa9b49 Reindent TimeSeries classes 2024-04-18 18:03:52 -06:00
Zach Gollwitzer
0277bc94f3
Small redesign of transaction filters (#650) 2024-04-18 17:05:37 -04:00
Jakub Kottnauer
0a1fa525d5
Fix modal height in Safari (#648) 2024-04-18 16:55:56 -04:00
Zach Gollwitzer
f5f624881f
Add placeholders for dashboard features (#642)
* Add placeholders for new dashboard

* Fix tests and lint errors
2024-04-18 10:32:36 -04:00
Zach Gollwitzer
4708e85da3
Update issue templates 2024-04-18 08:34:50 -04:00
Zach Gollwitzer
9bda7efc3f
New Settings Menu, Routes and Controllers Organization (#641)
* Add new settings routes and controllers

* Add new settings view, restructure controllers and routes

* Fix lint errors
2024-04-18 07:56:51 -04:00
Harshit Chaudhary
39d57a167e
Fixed Data Access Restriction (#636)
Co-authored-by: Harshit Chaudhary <harshit.chaudhary@procol.in>
2024-04-16 15:58:53 -04:00
Jose Farias
cd8d741fe1
Add transaction modal flow (#633)
* Add transaction modal flow

* Preserve decimals when creating transactions
2024-04-16 14:44:31 -04:00
Thibaut Gorioux
a22c7a0e9c
Add persistent notification with dismiss and action button (#611)
* Update notification partial

* Update locals args

* Lint

* Move content to body in notification helper

* Avoid dynamic Tailwind class

* Styling

* Add notification to localization file

* Lint

* Normalize locales

* Auto dismiss by default
2024-04-16 13:33:51 -04:00
dependabot[bot]
5516b03b6e
Bump rails from bad7ff1 to 6d3fd5b (#626)
Bumps [rails](https://github.com/rails/rails) from `bad7ff1` to `6d3fd5b`.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](bad7ff1664...6d3fd5b98c)

---
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-04-15 12:04:59 -04:00
dependabot[bot]
3672835ba1
Bump mocha from 2.1.0 to 2.2.0 (#617)
Bumps [mocha](https://github.com/freerange/mocha) from 2.1.0 to 2.2.0.
- [Changelog](https://github.com/freerange/mocha/blob/main/RELEASE.md)
- [Commits](https://github.com/freerange/mocha/compare/v2.1.0...v2.2.0)

---
updated-dependencies:
- dependency-name: mocha
  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-04-15 11:35:36 -04:00
dependabot[bot]
be288afcd4
Bump pagy from 8.0.2 to 8.1.2 (#618)
Bumps [pagy](https://github.com/ddnexus/pagy) from 8.0.2 to 8.1.2.
- [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/8.0.2...8.1.2)

---
updated-dependencies:
- dependency-name: pagy
  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-04-15 11:35:29 -04:00
dependabot[bot]
81115a9bed
Bump tailwindcss-rails from 2.3.0 to 2.4.0 (#620)
Bumps [tailwindcss-rails](https://github.com/rails/tailwindcss-rails) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/rails/tailwindcss-rails/releases)
- [Changelog](https://github.com/rails/tailwindcss-rails/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rails/tailwindcss-rails/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: tailwindcss-rails
  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-04-15 11:35:22 -04:00
dependabot[bot]
eee07a4d6c
Bump sentry-ruby from 5.17.2 to 5.17.3 (#621)
Bumps [sentry-ruby](https://github.com/getsentry/sentry-ruby) from 5.17.2 to 5.17.3.
- [Release notes](https://github.com/getsentry/sentry-ruby/releases)
- [Changelog](https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-ruby/compare/5.17.2...5.17.3)

---
updated-dependencies:
- dependency-name: sentry-ruby
  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-04-15 11:35:04 -04:00
Pieter Beulque
fc631e698d
Allow 2 decimals when adding a balance (#614) 2024-04-15 11:27:39 -04:00
Zach Gollwitzer
5aca2ff9b6
Add zero-config self hosting on Render (#612)
* v1 of backend implementation for self hosting

* Add docs

* Add upgrades controller

* Add global helpers for self hosting mode

* Add self host settings controller

* Conditionally show self hosting settings

* Environment and config updates

* Complete upgrade prompting flow

* Update config for forked repo

* Move configuration of github provider within class

* Add upgrades cron

* Update deploy button

* Update guides

* Fix render deployer

* Typo

* Enable auto upgrades

* Fix cron

* Make upgrade modes more clear and consistent

* Trigger new available version

* Fix logic for displaying upgrade prompts

* Finish implementation

* Fix regression

* Trigger new version

* Add i18n translations

* trigger new version

* reduce caching time for testing

* Decrease cache for testing

* trigger upgrade

* trigger upgrade

* Only trigger deploy once

* trigger upgrade

* If target is commit, always upgrade if any upgrade is available

* trigger upgrade

* trigger upgrade

* Test release

* Change back to maybe repo for defaults

* Fix lint errors

* Clearer naming

* Fix relative link

* Add abs path

* Relative link

* Update docs
2024-04-13 09:28:45 -04:00
Pieter Beulque
2bbf120e2f
Use placeholder-shown: for reduced opacity (#615) 2024-04-13 08:49:48 -04:00
Mike
b812b6d8c9
Enhance currency selector to list 'All Others' after 'Popular' (#610) 2024-04-10 10:47:58 -04:00
Igor Alexandrov
b5c56f7775
Added lints for ERB templates (#609)
* Added erblint and fixed offenses

* Added erblint bintstub. Included erblint into CI

* Merged GitHub Actions tasks for rubocop and erblint into one

* Added config for erblint.

* Reverted erblint call in the CI
2024-04-09 08:08:58 -04:00
Josh Pigford
21e2d05d0c Sentry 2024-04-08 11:29:11 -05:00
dependabot[bot]
671247f19c
Bump ruby-lsp-rails from 0.3.3 to 0.3.5 (#605)
Bumps [ruby-lsp-rails](https://github.com/Shopify/ruby-lsp-rails) from 0.3.3 to 0.3.5.
- [Release notes](https://github.com/Shopify/ruby-lsp-rails/releases)
- [Commits](https://github.com/Shopify/ruby-lsp-rails/compare/v0.3.3...v0.3.5)

---
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-04-08 07:27:34 -04:00
dependabot[bot]
7792edce0f
Bump good_job from 3.27.3 to 3.27.4 (#606)
Bumps [good_job](https://github.com/bensheldon/good_job) from 3.27.3 to 3.27.4.
- [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.27.3...v3.27.4)

---
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-04-08 07:27:26 -04:00
dependabot[bot]
a1075bdc81
Bump rails from 0033d46 to bad7ff1 (#607)
Bumps [rails](https://github.com/rails/rails) from `0033d46` to `bad7ff1`.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](0033d46236...bad7ff1664)

---
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-04-08 07:27:11 -04:00
dependabot[bot]
80b288cedb
Bump pagy from 7.0.11 to 8.0.2 (#608)
Bumps [pagy](https://github.com/ddnexus/pagy) from 7.0.11 to 8.0.2.
- [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.11...8.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-08 07:27:00 -04:00
Pablo Porto
00a42be5c0
fix(authentication): Fix issues when users try to logout (#603)
Run set last login information action only when the user exist. Thus preventing running it after the logout method, which was causing an error
2024-04-08 07:26:46 -04:00
Zach Gollwitzer
d29d465a3c
Basic transaction categories CRUD actions (inline) (#601)
* Fix dropdown issues and add dummy transaction category modal

* Minor namings tweaks

* Add search type

* Use new menu controller

* Complete basic transaction category inline CRUD actions

* Fix lint error

---------

Co-authored-by: Jakub Kottnauer <jk@jakubkottnauer.com>
2024-04-04 17:29:50 -04:00
Mattia
315c4bf1ec
Account Sync should happen at login, 1x per day, OR on-demand (#594)
* Add last_sync_date to accounts table

* Always sync Account after Valuation or Transaction creation, update, or deletion.

Skip sync if user clicks "sync" button without changing anything

* Sync user accounts daily based on last_login_at
2024-04-04 17:00:12 -04:00
Zach Gollwitzer
4f0b2de4ef
Consolidate dropdown controllers (#600)
* Basic listbox and popover controllers with temporary example

* Separate select and menu controllers
2024-04-03 17:32:27 -04:00
Zach Gollwitzer
0a0289846e
Centralize auth (#598) 2024-04-03 10:35:55 -04:00
Thibaut Gorioux
b3c48d13e7
Filter transactions by category (#581)
* Add transaction filtering by category

* Link label to checkbox

* Keep the dropdown open when clicked to allow tab change

* Show the badge with color and name when filter is applied

* Reduce color height
2024-04-02 12:17:26 -04:00