contact management: include important items like "remove" in dropdown menu #797
Labels
No labels
Addons
API
Berlin 2019
Berlin2014
Berlin2015
Berlin2016
Berlin2017
Berlin2018
Bug
Calendar
Cant Fix
dependencies
Docs
Documentation Needed
Enhancement
Federation
Hackathon 2020
Hackathon 2021
hacktoberfest-accepted
Help Wanted
Installation
Junior Jobs
Mobile
Needs More Info
Needs Prototype
New Feature
Performance
Privacy
Refactoring
Security
Support Request
Tests Needed
Theme-specific
Translation
UI
UX
Won't Fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
friendica-test/friendica#797
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this is concerning the contacts section: when on the view to manage all contacts, each contact has a dropdown list with a few options.
This imo should only contain the most used and basic options. Remove is certainly a basic option but is currently missing. I suggest removing items like "View Photos" and add a "remove" option. When I'm in the section where I manage all my contacts I expect those options rather then content related options.
The current flow of having to select "edit contact" and only then being able to remove a contact, also forcing the user to leave the overview view is not really intuitive.
I have maybe a solution to fix this problem.
In /include/Contact.php
insert at line 199:
$contact_drop_link = "";
$contact_block_link = "";
$contact_ignore_link = "";
insert at line 215:
$contact_drop_link = $a->get_baseurl() . '/contacts/' . $contact['id'] . '/drop';
$contact_block_link = $a->get_baseurl() . '/contacts/' . $contact['id'] . '/block';
$contact_ignore_link = $a->get_baseurl() . '/contacts/' . $contact['id'] . '/ignore';
and insert at line 230:
'drop' => array(t("Drop Contact"), $contact_drop_link),
'block' => array(t("Block Contact"), $contact_block_link),
'ignore' => array(t("Ignore Contact"), $contact_ignore_link),
Please remember, this solution is not tested.
Edit:
I have tested this solution and it works. I will add the drop option in the code. Pull Request: #810
Tested in Friendica, version 3.2.1745: I click "drop" item in the contacts options. Once clicked I find myself on the "Home" view. When I go back to contacts the contact is still there. So not fixed yet.
same effect last time I tried it