Commit Graph

29 Commits

Author SHA1 Message Date
Régis Freyd 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 Kadir f343c4d1da Refactoring PeopleController for better performance and readability (#227) 2017-06-13 00:28:04 -04:00
Régis Freyd 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 Freyd 690b0e50ba Add Export to SQL (#248) 2017-06-12 22:48:20 -04:00
Yamamoto Kadir 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 Turner c88a5399fa Fix journal bug (#220)
Fix #218
2017-06-11 21:54:50 -04:00
Régis Freyd 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 Anthony 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 Freyd 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 Kumar 7dc53c6dee Fixed gifts count issue (#186) 2017-06-10 09:20:41 -04:00
Marcos RJJunior 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 Freyd f702994d7e Add ability to delete a contact (#119)
Fix #34
2017-06-07 15:34:02 -04:00
Kovah 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égis 78db86f585 Better dashboard 2017-06-05 22:12:39 -04:00
Régis 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égis 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égis c199c5e4f0 Change the way activities work 2017-05-08 12:32:51 -04:00
Régis 82a39f2655 Simplify management of a contact 2017-05-04 13:54:06 -04:00
Régis 70bb786c1b Refactor management of kids 2017-05-03 20:49:24 -04:00
Régis 3c274e6fa2 Simplify significant others management 2017-05-03 12:20:05 -04:00
Régis 53bb6ff7b7 Yet another refactoring 2017-05-02 21:24:10 -04:00
Régis 265f0ffbe3 Remove marketing material from the application 2017-02-20 22:53:30 -05:00
Régis 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