Commit Graph
46 Commits
Author SHA1 Message Date
Regis Freyd bd55b211dc Add debts in the list of things to reset 2017-06-29 23:34:32 -04:00
Régis FreydandGitHub 21355c7638 Speed up contact list display (#415) 2017-06-29 23:27:43 -04:00
Zach2825andRégis Freyd 0d09e19270 Add pagination to the list of contacts (#388) 2017-06-29 22:21:10 -04:00
Régis FreydandGitHub fa190ec382 Add import from vCard from inside the application (#407) 2017-06-29 21:57:41 -04:00
Daniel LovattandRégis Freyd 1c62d6be35 Fix name not appearing in latest actions (#404) 2017-06-27 23:22:54 -04:00
Régis FreydandGitHub 4a0598b9d7 Add ability to define name order (#377)
Not everyone lives in the western culture. In some countries, names are not defined in the `firstname lastname` order, but rather the opposite, `lastname firstname`.

You can now define this order in your Settings panel.

Close #372
2017-06-22 16:43:19 -04:00
Régis FreydandGitHub 597991dcf2 Always load env from config instead and add tests (#373) 2017-06-22 11:43:49 -04:00
degan6andRégis Freyd 5cb34a2083 Moved all instances of env out of app (#158)
Moved all instances of env() out of the app folder. Laravel doesn't like when env() is used in the app folder.

Created two new varibles in the app config file
email_new_user_notification for email to send new registrations too
disable_signup for disabling signup
2017-06-22 10:31:28 -04:00
Yamamoto KadirandRégis Freyd e7e0446d9c Further normalize PeopleController. Notes are ordered desc (#319)
Further normalize PeopleController and fix #311
2017-06-20 21:06:42 -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 86fe1baeef Refactor SettingsController for readability (#308)
* Refactor SettingsController
* Fix issues with account deletion
2017-06-16 19:26:06 -04:00
Régis FreydandGitHub 8c6f2b72b0 Add birthday automatically when defining a birthdate (#337)
* When adding an exact birthdate for a contact, a significant other or a kid, a reminder is now automatically created.
* When editing this date, the reminder will be automatically updated.
* When deleting the object, the associated reminder will be deleted.
* Fix birthdate data in production.
* Fix duplication of reminders when updating a contact.
* Add a new way of tracking birthdays in the reminders table.

Fix #325
2017-06-16 19:04:33 -04:00
Régis FreydandGitHub 9a3b25d5bf Add reminder when setting a contact birthday (#316) 2017-06-15 16:34:52 -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
jeremydenounandRégis Freyd 21ae66d444 Breaking: Add timezone as an env variable (#170)
The idea is that the instance owner can decide what should be the default timezone for every new user on the system. Also:

* change default APP_KEY to 32 char (avoid warning on specif openssl version) and update readme to remember 'php artisan key:generate' usage
2017-06-14 21:46:55 -04:00
Tudor GalanopulosandRégis Freyd 31b563f17f Implement edit note functionality (#284)
Close #268
2017-06-14 13:51:11 -04:00
Tudor GalanopulosandRégis Freyd 4872779d29 Add ability to edit debts (#280)
* Add ability to edit debts
* Fix route typo
* Fix invalid parameter sent to logEvent
* Add missing translations

Close #259
2017-06-14 13:42:40 -04:00
Régis FreydandGitHub e55697fbef Add job information to contacts (#265)
* Add Job information
* Add company information
* Fix a bug in the task deletion noticed in the process
2017-06-13 17:02:01 -04:00
Yamamoto KadirandRégis Freyd f343c4d1da Refactoring PeopleController for better performance and readability (#227) 2017-06-13 00:28:04 -04:00
Régis FreydandGitHub 208f6a0ee0 Remove encryption on the Gifts table (#249)
This is just causing too much headache, especially since I made the rookie mistake of not checking the max length of some entries when inserting the gift. That leads to errors in the decryption process.

In production, out of the thousands of gifts already entered, only 5 are not decryptable. I have no other choice than resetting these 5 rows. I'm really sorry about this.

If you do end up having problems running the migration in your own instance, you need to remove the rows that are un-decryptable in the Gifts table as well.
2017-06-13 00:16:10 -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
Brandon TurnerandRégis Freyd c88a5399fa Fix journal bug (#220)
Fix #218
2017-06-11 21:54:50 -04:00
Régis FreydandGitHub 3b1e467da6 Set default country value to null when editing a contact by default (#197)
* Change location of the Edit contact view in the filetree

* Set default country value to null when editing a contact by default

Fix #182
2017-06-10 22:19:15 -04:00
Regis Freyd 151347eb69 Fix the route after password change
Fix #196
2017-06-10 22:09:05 -04:00
Paul AnthonyandRégis Freyd 503f38ee06 Add new currency table and make debt currency agnostic (#188)
* add new currency table and make debt currency agnostic

* removed currencytableseeder from production run job

* russian ruble added to currencies

* fix up default value

* fix down migration and remove seed
2017-06-10 21:34:15 -04:00
Régis FreydandGitHub f61e10daca Add support for social profiles (#191)
* Add support for social profiles
* Add messages in other languages (untranslated)
2017-06-10 12:20:24 -04:00
Vinay KumarandRégis Freyd 7dc53c6dee Fixed gifts count issue (#186) 2017-06-10 09:20:41 -04:00
Marcos RJJuniorandRégis Freyd 6da9eeafd7 Adding pt-br lang (#156)
* adding pt-br app lang

* adding pt-br dashboard lang

* adding pt-br people lang

* adding a pt-br lang

* set lang tweak

* header lang tweak

* adding a success lang at settings
2017-06-09 00:09:33 -04:00
Régis FreydandGitHub f702994d7e Add ability to delete a contact (#119)
Fix #34
2017-06-07 15:34:02 -04:00
KovahandRégis Freyd 3acdacc047 Let user disable the signup (#56) (#81)
Updates the RegisterController to check if the signup is disabled.
Removes signup link if needed.
Also adds a new generic 403 error page.
2017-06-07 12:19:19 -04:00
RégisandGitHub 78db86f585 Better dashboard 2017-06-05 22:12:39 -04:00
RégisandGitHub 5fd8530bfa Add money lending 2017-05-30 12:21:41 -04:00
Regis Freyd 0b6afb6a52 Increment reminder when adding kid or so 2017-05-29 22:20:52 -04:00
Regis Freyd aa6bb136f7 Add reminder when adding a kid 2017-05-29 22:19:27 -04:00
Regis Freyd 4e7e93faff Add reminder when adding a significant other 2017-05-29 22:15:12 -04:00
RégisandGitHub ed29243841 Reminders are working again 2017-05-29 21:27:00 -04:00
Regis Freyd 7aa7c4579b Remove note events 2017-05-08 13:02:45 -04:00
RégisandGitHub c199c5e4f0 Change the way activities work 2017-05-08 12:32:51 -04:00
RégisandGitHub 82a39f2655 Simplify management of a contact 2017-05-04 13:54:06 -04:00
RégisandGitHub 70bb786c1b Refactor management of kids 2017-05-03 20:49:24 -04:00
RégisandGitHub 3c274e6fa2 Simplify significant others management 2017-05-03 12:20:05 -04:00
RégisandGitHub 53bb6ff7b7 Yet another refactoring 2017-05-02 21:24:10 -04:00
RégisandGitHub 265f0ffbe3 Remove marketing material from the application 2017-02-20 22:53:30 -05:00
RégisandGitHub dbf829cf48 Remove tabs on the contact page 2017-02-18 18:59:05 -05:00
Regis Freyd 2e6760e7db Migrate to organization 2017-02-16 19:21:44 -05:00