use icons to toggle profile state as public or private
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PPL |
Fix Released
|
High
|
Bassel Safadi |
Bug Description
The first-run implementation of to toggle the state of a profile from public to private uses a drop-down menu and save button. This is not ideal from a UX point-of-view.
Instead, add a place for an icon to sit next to the person's name on the Profile page, as in:
Profile » Name [icon]
By default, the profile will be private and have a violet lock icon:
[root]/
The lock icon should be a link with "Public" as the title attribute in the link. Clicking the link should change the state of the profile from private to public.
If the profile is public, it will have a mariner colored check icon:
[root]/
The title attribute in the link should read "Make Private" and clicking the link will change the Profile to private.
Changed in ppl: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Brad Phillips (brad-bradphillips) |
milestone: | none → 0.2 |
Ah, I've been trying to make this happen, but am having difficulties with the edit & edit-in-place forms. I've successfully created a new form on the aiki_users table (form 28) that is reserved specifically for publicity changes (and, as such, only alters that field in the db). I've also successfully brought in the edit form ajax-style when the icon is clicked.
I've been able to get the appropriate icons to display when a profile is private or public. I've also been able to manually edit the publicity using the (#(form: edit:(! (2)!))# ) format, but there are two issues I'm having:
1. The edit only seems to work if I manually change the field in the form, via a text input. Any attempts at using hidden or autofields with values automatically inserted (from the url) like "is_public| People: Publicity: value:( !(3)!)" fail to successfully update the row in the table. I think this may relate to the on_submit event that still needs to be implemented in aiki, but need to talk to Bassel about.
2. Each of the form edit methods ( (#(form:edit)#) and in widget <edit></edit>) seem to require another step where the user has to click 'submit'. This means, a user clicks the image, then, even if the fields are set as autofield or hidden, a "submit" or "save" button has to be clicked for the changes to take affect. Maybe if there was a way to substitute the submission button with the image of the public or private icon, this could eliminate the multi-step issue.
Editing forms needs more documentation in aiki. I'm again at a stage where I feel like I'm just tossing aiki markup at a brick wall, in random combinations, until something sticks.