Commit Graph
34 Commits
Author SHA1 Message Date
Régis FreydandGitHub 874a7f09fb Add ability to define which features you want active on the Contact sheet (#1121) 2018-04-09 09:07:52 -04:00
Régis FreydandGitHub ae521f5226 Refactor relationships (#971) 2018-04-01 20:46:51 -04:00
Gabriel CarusoandAlexis Saettler 1794435726 Use now helper (#1051) 2018-03-29 10:09:04 +02:00
Gabriel CarusoandAlexis Saettler c52e868250 Symplify return (#1054) 2018-03-26 01:32:13 +02:00
Régis FreydandGitHub 9d883ecba6 Add yearly statistics to activities and calls object (#1049) 2018-03-25 12:26:11 -04:00
Alexis SaettlerandGitHub 67aa882eee Open register page after a clean installation (#954)
* Redirect to /register if there is no account
* Remove default creation for admin@admin.com
2018-03-13 23:28:42 +01:00
Alexis SaettlerandGitHub 558515b59a Fix issues proposed by sonar (#986) 2018-03-08 22:37:27 +01:00
Matthew BrownandAlexis Saettler 749caa2c03 Fix issues found by static analysis (#878) 2018-03-04 18:23:33 +01:00
Régis FreydandGitHub 8d2b21a0ce Fix reset account deleting default account values (#956)
This fixes #922
2018-03-01 20:50:05 -05:00
Alexis SaettlerandGitHub 9fbf194e89 Fixes based on sonar recommandations (#934) 2018-02-26 19:31:39 +01:00
Régis FreydandGitHub e96b70f95c Add concept of notifications for reminders (#894) 2018-02-25 17:42:14 -05:00
Alexis SaettlerandGitHub 2c14f6d0ee Fix default genders seed with setup:production (#898) 2018-02-15 21:40:19 +01:00
Régis FreydandGitHub d004791b11 Refactor destroyAndReplace method to facilitate unit testing (#880) 2018-02-04 16:39:56 -05:00
Régis FreydandGitHub e78e140b9e Add support for custom genders (#879) 2018-02-04 15:44:26 -05:00
Régis FreydandGitHub cc754ca35d Add Annual plan (#861) 2018-01-28 13:22:55 -05:00
Régis FreydandGitHub 4fc47f605b Add more unit tests for Account model (#833) 2018-01-19 10:19:55 -05:00
Régis FreydandGitHub fe974db4c1 Change the structure of the dashboard (#755) 2018-01-06 09:31:57 -05:00
Régis FreydandGitHub 94f8146411 Change how the Journal works (#709) 2017-12-22 14:53:45 -05:00
Régis FreydandGitHub d8bed11785 Add ability to add dates without a year (#677) 2017-12-13 15:38:05 -05:00
Régis FreydandGitHub 76c75ce6e7 Add inline notes editing and favorites for notes (#672)
Notes are now edited inline (with Vue.js) and can be marked as favorites.
Favorite notes will appear on the dashboard in a new tab.
2017-12-04 09:55:47 -05:00
Régis FreydandGitHub 8e575735d5 Add support for multiple contact fields and addresses (#657)
This requires to run the migrations `php artisan migrate` which might take some time.
2017-11-26 09:36:20 -05:00
Régis FreydandGitHub 7e1cd96bf5 Add API (#606)
This is the first part of the API. It supports most of contacts, as well as the
journal. This PR also brings Monica to Laravel 5.5, as the API required it with
the new concept of resources. It needs to run `php artisan migrate` as well as
`php artisan passport:keys` to generate the access tokens needed for the API.
2017-10-30 08:38:15 -04:00
Régis FreydandGitHub a3af477ebe Add new account limit for free accounts (#561) 2017-08-28 21:41:44 -04:00
Régis FreydandGitHub c196732750 Fix delete account bug (#536) 2017-08-14 20:23:22 -04:00
Régis FreydandGitHub 095ef1caa8 Significant other and kids can now be contacts (#524) 2017-08-14 17:14:46 -04:00
Régis FreydandGitHub a2172f0851 Add style CI (#503)
Hopefully this will result in slightly better code.
2017-07-26 21:02:55 -04:00
Régis FreydandGitHub 23384db2c2 Add support for tags (#424)
Close #99
2017-07-04 22:14:22 -04:00
Régis FreydandGitHub a583ef45b2 Design improvements (#422)
* Add better icons on the latest actions
* Fix translations key on edit note success
* Fix mobile view for the latest actions on mobile
2017-07-02 09:59:07 -04:00
Régis FreydandGitHub fa190ec382 Add import from vCard from inside the application (#407) 2017-06-29 21:57:41 -04:00
Régis FreydandGitHub 5b5b2da5f8 Add multi user support and subscriptions (#359)
This pull request adds support to multi users in one account. It also introduces the notion of subscriptions.

Accounts can now have multiple users.

Subscriptions are defined by a new env variable called REQUIRES_SUBSCRIPTION, and defaults to false. As promised, all the paid features on .com will be free if you download and host Monica on your own server.
2017-06-20 20:51:40 -04:00
Yamamoto KadirandRégis Freyd 496d23e4a7 Separate PeopleController into smaller chunks (#253)
* Edit relation docblocks of Contact model
* Move activities to its own controller
* Move reminders to its own controller
* Move tasks to its own controller
* Refactor Gift in preparation for the move
* Move gifts into its own controller
* Fix failing tests
* Move debt to its own controllelr
* Fix tests failing on PHP7
* Move significant others to its own controller
* Move kids to its own controller
* Move notes to its own controller
* Some more adjustments & solving #277
And more query optimizations
2017-06-15 15:03:22 -04:00
Régis FreydandGitHub 690b0e50ba Add Export to SQL (#248) 2017-06-12 22:48:20 -04:00
Yamamoto KadirandRégis Freyd 50005544ee Fix some relationship inconsistencies and reduce dashboard queries (#209)
This normalizes all relationships and adds relations to models to take advantage of laravel's eagerloading and reduce queries to the database.

This might go against the 'add any kind of complexities whatsoever' rule in the contribution guide, but I think adding relations would eventually simplify the code base. The amount of queries just on the dashboard fell from ~70 to 26. There's also a lot of boilerplate code in the Contact model to retrieve relationships and to maintain accurate count of them (fields like number_of_*). They can be greatly simplified with the addition of relations.

One other thing in the Contact model was the definition of the Contact-User relation. This definition uses the account_id field in the contacts table and and relates it to id in users. I'm not sure if this is the intention, since the id from accounts table is used when assigning account_id for a contact. This seems to have worked so far, because both a user and its associated account are created at the same time during registration and their ids match, but if there was any difference, this relationship would relate wrong contacts and users. I changed the relationship name to account. This makes the path to a user from a contact is $contact->account->user right now.
2017-06-11 23:01:23 -04:00
Regis Freyd 2e6760e7db Migrate to organization 2017-02-16 19:21:44 -05:00