Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add contact archiving #1769

Merged
merged 29 commits into from Oct 27, 2018
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
12e9b12
Add is_active column
asbiin Sep 2, 2018
68972b2
Add contact archiving
asbiin Sep 2, 2018
f95864b
Apply fixes from StyleCI
asbiin Sep 2, 2018
8c476a2
Merge remote-tracking branch 'origin/master' into feat/contact-archiving
asbiin Sep 5, 2018
cf274a2
Update makefile
asbiin Sep 5, 2018
8a6a068
Update changelog
asbiin Sep 5, 2018
5b0b7e6
Move button elsewhere
asbiin Sep 5, 2018
c1f676f
Fix message
asbiin Sep 10, 2018
2efc834
chore(assets): Update assets
MonicaBot Sep 10, 2018
ef65a4d
Merge remote-tracking branch 'origin/master' into feat/contact-archiving
asbiin Sep 10, 2018
7b6f5b0
Merge branch 'feat/contact-archiving' of github.com:monicahq/monica i…
asbiin Sep 10, 2018
781dc8e
chore(assets): Update assets
MonicaBot Sep 10, 2018
f51fb33
Merge remote-tracking branch 'origin/master' into feat/contact-archiving
asbiin Sep 21, 2018
7f85355
Merge remote-tracking branch 'origin/master' into feat/contact-archiving
asbiin Sep 23, 2018
0a24bb0
update
asbiin Sep 23, 2018
2c0ab3b
Merge remote-tracking branch 'origin/master' into feat/contact-archiving
asbiin Sep 30, 2018
fdbf4bc
Add links to archived contacts
asbiin Oct 1, 2018
93866bf
chore(assets): Update assets
MonicaBot Oct 1, 2018
6058b3e
Merge remote-tracking branch 'origin/master' into feat/contact-archiving
asbiin Oct 11, 2018
df94b44
Merge remote-tracking branch 'origin/master' into feat/contact-archiving
asbiin Oct 13, 2018
32b258b
Merge remote-tracking branch 'origin/master' into feat/contact-archiving
asbiin Oct 19, 2018
6991d67
Add changelog notification
asbiin Oct 19, 2018
6d52b0b
Apply fixes from StyleCI
asbiin Oct 19, 2018
af7337b
fix
asbiin Oct 19, 2018
6d8d58b
Merge branch 'master' into feat/contact-archiving
asbiin Oct 25, 2018
ac1c984
Improve screens
djaiss Oct 27, 2018
f51e22b
remove useless button
djaiss Oct 27, 2018
4beed75
Fix sonar
djaiss Oct 27, 2018
898a4c6
Trying to fix this freaking sonar
djaiss Oct 27, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions CHANGELOG
@@ -1,6 +1,6 @@
UNRELEASED CHANGES:

*
* Add ability to archive a contact

RELEASED VERSIONS:

Expand All @@ -22,9 +22,7 @@ v2.7.0 - 2018-09-04
* Fix gift recipient relation
* Fix subscription cancel on account deletion
* Fix email maximum size on settings
* Add contact archiving

RELEASED VERSIONS:
* Fix reminder link in email sent

v2.6.0 - 2018-08-17
-------------------
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -81,7 +81,11 @@ docker_push_bintray: .deploy.json

.PHONY: docker docker_build docker_tag docker_push docker_push_bintray

build: build-dev
build:
composer install --no-interaction --no-suggest --ignore-platform-reqs
php artisan lang:generate
yarn install
yarn run production

build-prod:
composer install --no-interaction --no-suggest --ignore-platform-reqs --no-dev
Expand Down
2 changes: 1 addition & 1 deletion public/css/app-ltr.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/css/app-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/langs/en.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/mix-manifest.json
@@ -1,7 +1,7 @@
{
"/js/app.js": "/js/app.js?id=4451742bfd445a6ddbd4",
"/css/app-ltr.css": "/css/app-ltr.css?id=d44d00bbf39ff8c5d2aa",
"/css/app-rtl.css": "/css/app-rtl.css?id=30f2452c42d24e922374",
"/js/app.js": "/js/app.js?id=fabb54e3bcd43e3893ca",
"/css/app-ltr.css": "/css/app-ltr.css?id=e7fb9bf63d762412fc0d",
"/css/app-rtl.css": "/css/app-rtl.css?id=6235c7b59e82da7cd6b8",
"/css/stripe.css": "/css/stripe.css?id=64c68c04c4e475fcc7c6",
"/js/vendor.js": "/js/vendor.js?id=490bf428af4c7224b600",
"/js/stripe.js": "/js/stripe.js?id=e2284957ba723a52a4b7",
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/components/people/Archive.vue
Expand Up @@ -5,7 +5,7 @@
<div>
<notifications group="archive" position="top middle" duration=5000 width="400" />

<a href="#" class="btn edit-information" @click="toggle">{{ active ? $t('people.contact_archive') : $t('people.contact_unarchive') }}</a>
<a class="btn btn-special" @click="toggle" :title="$t('people.contact_archive_help')">{{ active ? $t('people.contact_archive') : $t('people.contact_unarchive') }}</a>
</div>
</template>

Expand Down
21 changes: 21 additions & 0 deletions resources/assets/sass/buttons.scss
Expand Up @@ -88,3 +88,24 @@
width: 15px;
margin-right: 3px;
}

$btn-special-light: #A9BCF5;
$btn-special: #819FF7;
$btn-special-hover-light: #5882FA;
$btn-special-hover: #2E64FE;

.btn-special {
color: #fff;
background-color: $btn-special;
background-image: -webkit-linear-gradient(270deg, $btn-special-light 0%, $btn-special 90%);
background-image: linear-gradient(-180deg, $btn-special-light 0%, $btn-special 90%);

&:hover {
color: #fff;
background-color: $btn-special-hover;
background-image: -webkit-linear-gradient(270deg, $btn-special-hover-light 0%, $btn-special-hover 90%);
background-image: linear-gradient(-180deg, $btn-special-hover-light 0%, $btn-special-hover 90%);
background-position: 0 -0.5em;
border-color: rgba(27,31,35,0.5);
}
}
1 change: 1 addition & 0 deletions resources/lang/en/people.php
Expand Up @@ -63,6 +63,7 @@
'edit_contact_information' => 'Edit contact information',
'contact_archive' => 'Archive contact',
'contact_unarchive' => 'Unarchive contact',
'contact_archive_help' => 'Archived contact will not appear on contact lists',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Archived contacts will not be shown in the contact list

'call_button' => 'Log a call',
'set_favorite' => 'Favorite contacts are placed at the top of the contact list',

Expand Down
3 changes: 0 additions & 3 deletions resources/views/people/_header.blade.php
Expand Up @@ -93,9 +93,6 @@
<li>
<a href="{{ route('people.edit', $contact) }}" class="btn edit-information" id="button-edit-contact">{{ trans('people.edit_contact_information') }}</a>
</li>
<li>
<contact-archive hash="{{ $contact->hashID() }}" active="{{ json_encode($contact->is_active) }}"></contact-archive>
</li>
</ul>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion resources/views/people/profile.blade.php
Expand Up @@ -43,9 +43,12 @@
@include('people.sidebar')

<p><a href="{{ route('people.vcard', $contact) }}">{{ trans('people.people_export') }}</a></p>
<p>
<contact-archive hash="{{ $contact->hashID() }}" active="{{ json_encode($contact->is_active) }}"></contact-archive>
</p>
<p>
{{ trans('people.people_delete_message') }}
<a href="#" id="link-delete-contact" onclick="if (confirm('{{ trans('people.people_delete_confirmation') }}')) { $('#contact-delete-form').submit(); } return false;">{{ trans('people.people_delete_click_here') }}</a>.
<a id="link-delete-contact" onclick="if (confirm('{{ trans('people.people_delete_confirmation') }}')) { $('#contact-delete-form').submit(); } return false;">{{ trans('people.people_delete_click_here') }}</a>.
<form method="POST" action="{{ route('people.delete', $contact) }}" id="contact-delete-form" class="hidden">
{{ method_field('DELETE') }}
{{ csrf_field() }}
Expand Down