#7794 closed task (fixed)
BP Nouveau: Backbone views tasks
Reported by: | imath | Owned by: | djpaul |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Templates | Keywords: | has-patch |
Cc: |
Description (last modified by )
The Activity post form, Group Invites and Messages are using Backbone views. I suggest to use this ticket to list tasks that still needs to be done for these. Let's try to achieve most of them before 3.0 :) @mercime already alerted on some parts :
- (re)Test mobile devices and eventually improve the layout (eg: pagination in Group Invites)
- Avoid empty links. ✅ [12059]
- Add (more) inline documentation.
- Avoid including html tags into Ajax reply for the feedback messages ✅ [12058] & [12060]
Don't hesitate to add the ones you think are missing ;)
Attachments (6)
Change History (35)
#4
@
6 years ago
7794.groupInvites.feedback.patch adds a new JS template for Group invites UI feedbacks to avoid including common html tags to feedback messages in Ajax replies.
#9
@
6 years ago
@imath in 12059 why on earth have you removed the img alt attr? it's a mandatory attr and must always be described for this element! title tags are being avoided this is why mercime ran up the bp-tooltips.
#10
@
6 years ago
Oh my god !!! Why on earth !! I’m so ashamed. I’ll put it back. I’m a human I make mistakes, please forgive me 😊
#12
@
6 years ago
can we be less human and more machine code like then ;) Apologies if I seemed terse '??' but alt attr essential :) thanks for fix.
#14
@
6 years ago
@imath in bp-nouveau/buddypress/common/js-templates/invites/index.php
please remove the title
attribute from <a href="#uninvite-user-{{data.id}}" title="{{data.name}}">
Edit - Btw, can't find where this is used on quick scan. If there's no username text after the avatar based on this code, we might need to add class="bp-tooltip"
and data-bp-tooltip
attribute to the link.
Can upload enhanncements to mobile and desktop views within next 24-48 hours if someone doesn't do it first.
#15
@
6 years ago
@mercime 7794-removeInviteTooltip.patch is adding a Tooltip to explain that clicking on the avatar removes the user from the invites list. @hnla fyi i had to edit css to stop using overflow: hidden
to let the tooltip show.
#16
@
6 years ago
overflow would hide the tooltip, it was appropriate before we started to change things, now you'll need to use the clearfix class or mixin provided to ensure float containment if still necessary.
This ticket was mentioned in Slack in #buddypress by imath. View the logs.
6 years ago
#19
@
6 years ago
- Keywords has-patch added; needs-patch removed
Replying to imath:
@mercime 7794-removeInviteTooltip.patch is adding a Tooltip to explain that clicking on the avatar removes the user from the invites list.
Thanks for the explanation about the tooltip @imath. Attached patch:
- Added
aria-label
attr to the link and made thealt
value = empty on the image so screen readers will announce the label and not have to repeat the username from the old imagealt
value. - Changed
'Remove %s from the invites'
from tooltip because it could grow very wide with the full name to shorter'Disinvite %s'
which is more consistent with the invite/disinvite from Invite Members screen. - Updated stylesheet which: improves positioning of bp-tooltip for the UI, adds cleafix and 100% width to UL containing participants' profile photos, and adds top margin for
#bp-send-invites-form
.
Replying to hnla:
overflow would hide the tooltip, it was appropriate before we started to change things, now you'll need to use the clearfix class or mixin provided to ensure float containment if still necessary.
Implemented clearfix on .buddypress .bp-invites-content #send-invites-editor ul
#20
@
6 years ago
@mercime Awesome ! Thanks a lot for this new version of the patch, I just tested it and it works great. Let's leave some time to @hnla to have a look at it. I'll commit it before RC in any cases ;)
#22
@
6 years ago
- Keywords needs-patch added; has-patch removed
Patches that needed to be committed before RC are committed, many thanks everyone for your help 💪. I'm leaving this ticket open as we still need to work on :
- (re)Test mobile devices and eventually improve the layout (eg: pagination in Group Invites)
- Add (more) inline documentation.
I'm adding another concern raised by @hnla in a comment to another ticket:
- warn the user there are invites not sent before leaving the page (eg: the last step of the group creation process).
#23
@
6 years ago
- Resolution set to fixed
- Status changed from new to closed
Please open new tickets for subsequent improvements, so we can close this one for 3.0, and review anything else on their own merits.
It's likely that anything substantial will not be included at 3.0 in this point.
Thanks everyone! Great work here.
#24
@
6 years ago
@imath yep a trap before finishing group create for unsent invites will be sensible but as Paul says not this release but should be ticketed to go in early on next cycle.
#25
@
6 years ago
- Keywords has-patch added; needs-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
#26
@
6 years ago
7794-group-invite-with-vertnav.patch fixes group invites subnav to horizontal when group nav is set as vertical in customizer
#27
@
6 years ago
- Owner set to djpaul
- Resolution set to fixed
- Status changed from reopened to closed
In 12080:
#28
@
6 years ago
Hmm was just about to check the patch - these late changes to the invites screen did require some work to render a decent layout, thanks for the patch @mercime, use of the grid property is a big change, I would have loved a heads up to the use of this layout paradigm, but good work nonetheless.
In 7794.messagesUI.feedback.patch i suggest to create a new JS template for Messages UI feedbacks to avoid including common html tags to feedback messages in Ajax replies.