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

feat: add contact archiving #1769

merged 29 commits into from Oct 27, 2018

Conversation

asbiin
Copy link
Member

@asbiin asbiin commented Sep 2, 2018

This close #1623

  • Add "Archive"/"Unarchive" action on contact
    image
  • Mask archived contacts from standard views
  • Add an archived contact view
  • Add a link to the archived contact view

(Add api functions to get archived contacts => this one will be done in another PR)

Copy link
Member

@djaiss djaiss left a comment

Choose a reason for hiding this comment

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

A few comments, otherwise AWESOMMMME.

CHANGELOG Outdated
@@ -14,6 +14,7 @@ UNRELEASED CHANGES:
* Fix gift recipient relation
* Fix subscription cancel on account deletion
* Fix email maximum size on settings
* Add contact archiving
Copy link
Member

Choose a reason for hiding this comment

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

Add ability to archive a contact

<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>
Copy link
Member

Choose a reason for hiding this comment

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

I think you can simply omit href="#" entirely.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK nice

resources/views/people/_header.blade.php Outdated Show resolved Hide resolved
Copy link
Member

@djaiss djaiss left a comment

Choose a reason for hiding this comment

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

Just one more tiny change 😀

@@ -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

@djaiss
Copy link
Member

djaiss commented Sep 10, 2018

Don't forget to run Cypress on this one.

@asbiin
Copy link
Member Author

asbiin commented Oct 13, 2018

@djaiss cypress fails on my computer on master branch: I cannot validates any modification with it.

@asbiin asbiin changed the title feat: add contact archiving [wip] feat: add contact archiving Oct 19, 2018
@asbiin asbiin temporarily deployed to monica-team-pr-1769 October 19, 2018 07:25 Inactive
@asbiin asbiin temporarily deployed to monica-team-pr-1769 October 19, 2018 17:46 Inactive
@asbiin asbiin temporarily deployed to monica-team-pr-1769 October 19, 2018 17:47 Inactive
@asbiin asbiin temporarily deployed to monica-team-pr-1769 October 19, 2018 18:06 Inactive
@asbiin asbiin temporarily deployed to monica-team-pr-1769 October 25, 2018 20:09 Inactive
@asbiin asbiin temporarily deployed to monica-team-pr-1769 October 27, 2018 01:13 Inactive
@asbiin asbiin temporarily deployed to monica-team-pr-1769 October 27, 2018 01:15 Inactive
@djaiss
Copy link
Member

djaiss commented Oct 27, 2018

I've rewritten some of the screens, also removed the button and use a link instead.

Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

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

SonarQube analysis found issues:
Bug Bugs: 1
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 0

See all issues in SonarCloud

@asbiin asbiin temporarily deployed to monica-team-pr-1769 October 27, 2018 01:20 Inactive
Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

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

SonarQube analysis found issues:
Bug Bugs: 1
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 0

See all issues in SonarCloud

@github-actions
Copy link

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Contact archiving
3 participants