Closed (fixed)
Project:
Drupal Commons
Version:
6.x-2.5
Component:
User interface
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2011 at 19:25 UTC
Updated:
26 Jul 2012 at 17:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ezra-g commentedRemoving local changes to the FBSMP module has changed the way the Facebook-style status UI works in Commons. We should commit to a UI so that we reduce the number of times this UI changes in significant ways.
a) The Commons Facebook-style status UI in the latest release from GitHub looks like this:
b) Out-of-the-box built via the 6.x-2.x branch's Drush make script (with local changes to FBSMP removed), it looks like this:

c) It's really supposed to look like this (From the Commons Interaction guide):

d) I did some experimental work to incorporate some elements from the FBSMP default UI in the experimental fbss-upstream branch, which looks like this:
So, in order of preference, the UI should be styled to look like c), a), or d).
Technical note: The fbss_custom.module included with Commons does some altering to this form that affects its appearance.
See #1256076 for a list of specific local changes to the FBSMP project that are present in the Commons GitHub repository.
Comment #2
icecreamyou commentedFor the record, it shouldn't be too bad getting it back to (a) -- basically those changes weren't committed back to FBSMP on d.o from the Commons version because they didn't cover every case (e.g. they only worked correctly if just the Picture and Link plugins were enabled).
Comment #3
Anonymous (not verified) commentedSorry,
but as a relatively newbie to Commons, and recognizing that something is wrong with messaging, I detected this entry and my confusion is perfect.
I'm not [now] using github. But I read there is a new security update(2.3) as well and a message that we should NOT update to it now?!
Easy questions :
1. should we update to 2.3 ?
2. Are we still secure if we do not update?
3. I have a site online using drupal 6.22 and commons 2.2 and my Commons Facebook-style status UI looks like variant b.
WHAT shall I do to avoid more complains from my site members ?
I would be happy if someone could give me an explanation for an easy and handy way to solve point 3, without going that deep into github first.
Thanks in advance
$regs snoopje
.
Comment #4
ezra-g commented@IceCreamYou: That's what I would expect. However, I've tried copying the CSS removed in the diff at #1256076 into commons_roots-styles.css but without having the desired effect. If this seems easy to you...patches welcome :).
@snoopje:
Yes, you should upgrade to Commons 2.3 by downloading it from http://network.acquia.com/downloads/drupal-commons and can expect it to work without introducing new bugs over Commons 2.2. However, your questions are off-topic from this issue. Please open a new issue so so that we can address them.
Comment #5
icecreamyou commentedIt's more than just CSS; the markup is different too.
Comment #6
ezra-g commentedExactly :).
Comment #7
ezra-g commentedComment #8
lightsurge commentedDo we really want facebook style status messages in our group homepages?
With two types of content (status/node) my site was becoming a mess with two places and two forms information could be held in... I actually think commons.acquia.com is becoming a mess for the same reason.
You can still have a facebook-style microblogging UI for group homepages using custom node forms... that's what I ended up doing, screenshots in http://drupal.org/node/1322322#comment-5204162.
With custom forms and QuickTabs module my UI is sort of a mixture of c/d.
Comment #9
david.moore.ipg commentedI think the activity stream model is simpler and more familiar to users than the complex dashboard that we had before. People can still search and find things they are looking for.
So, I see two separate issues.
1) do we want a simple microblog to share links, images and other attachments as an additional content type along with blogs, documents, polls, events, and discussions?
2) Do we prefer a simple activity stream page to the complex dashboard we had before.
Comment #10
lightsurge commentedA search will not turn up content that's in an FBSS status message.
I still want both (and still do have both) - microblog and activity log streams.. I just don't see exactly why Commons is using FBSS statuses on group homepages instead of nodes, apart from the speed improvements we get from them being a lot 'lighter'. I don't see what they do that's sufficiently better than nodes and therefore worth the disadvantages in this context, which are mainly that they're not fully integrated with Drupal as nodes are.
OG groups are supposed to be areas that composite information in an effective way, it's difficult for them to do this if they have two competing content forms... one will win over the other. Nodes have to win, for the time being at least!
Comment #11
david.moore.ipg commentedAgreed, the fact that FBSS messages don't show up in searches is bad.
Agreed, the microblog should create nodes equivalent to the other content types.
If that were the case, I would not mind the microblog showing up on the streams page or the group page as a "default" way to create a quick post, especially if people just want to put up a quick message (status) or share a link or photo (why make them create a blog post for that).
Agreed, it is confusing to have both. I think something that looks like the activity stream (which looks like facebook) is a better initial interface to content than the dashboard panels concept in earlier releases.
That said, it would be preferable if the activity listing could be filtered by content type, group, tag, etc.
I think the hard part is trying to figure out the best way to combine the activity stream stuff (Fred joined this group, Joe and Sally are now friends, etc.) with node and other content creation (Jim added the [content type] [node name] in [group]).
It would be best if we could create the same "wall" type effect with a filterable view that treated microbogs and other content the same by putting short summaries right in the "stream" AND had activity updates interspersed.
Apples and oranges as far as drupal is concerned--difficult to implement--but I think it would fit what users expect in a wall/stream.
Comment #12
ezra-g commented@david.moore.ipg & @lightsurge, thanks for the design feedback!
Let's keep this issue focused on the specific task here, which is making the current UI look decent with some styling fixes.
Could you open a new issue or post in http://groups.drupal.org/commons with this discussion? Thanks!
Comment #13
lightsurge commented@david.moore.ipg
This is exactly what I've configured Commons to do... by chopping the blog node form into three portions.
@ezra-g
The reason I posted in this issue is that I believe that work on improving the FBSS UI for group status messages might be work in the wrong direction. I don't think having the FBSS/FBSMP UI is a good thing to have at all in the group stream. It's better to replicate it with a custom node form and use that instead (like I say, by chopping up the blog_node_form).
That said I do already have an issue open #1322322: Status messages are replacing nodes and will leave this one alone :)
Comment #14
ay13 commentedAttached is the patch giving the functionality described in case 'C' in comment #1.
Also attached are the 2 new images used incase the diff --binary does not work.
Comment #15
ay13 commentedUpdated patch removing unnecessary comments.
Comment #16
ezra-g commentedThanks! Marking as "needs review"
Comment #17
icecreamyou commentedUse $('selector', context) instead of $('selector') to only apply this to the HTML the behavior is currently supposed to operate on. This is important when markup is loaded onto the page via AJAX (as FBSS does). Also you need to make sure only to show the buttons near the status update form you're focusing on; otherwise your code will do unexpected things when multiple status update forms appear on the same page. As an example, this commit does basically the same thing you want, but for status comments (note that it uses $(context).find('selector') instead of $('selector', context), but it's the same thing).
Comment #18
ezra-g commentedThis is a great start.
However, in Commons Origins, when focusing on the status textarea, what I see doesn't match the comp in Both Firefox 8 and Chrome 15 in Mac OS 10.7 Lion.
Here's a screenshot of both:
Comment #19
ezra-g commentedThis patch seems close!
Also,
The call to drupal_add_js() should be moved inside of the form_alter, to prevent the JS from being added on every page request.
Minor nitpick, please begin code comments with a capital letter per the code standards for comments :).
Comment #20
ay13 commentedAttached patch has all the updates suggested.
Comment #21
ay13 commentedThe last patch was against a patched version of FBSMP and not the dev version that commons uses.
Sorry for the mixup, the attached version should be better.
Comment #22
ezra-g commentedThis patch is looking great for me in Firefox & Chrome!
One thing I notice is that in a context where a user can post a private status update, the "private" checkbox is visible before the textarea has focus. I think this should be hidden along with the other controls until the textarea has focus for consistency.
Comment #23
icecreamyou commentedI would do this:
That will take care of the Private checkbox and anything else that might get added below the status update box. (I haven't tested this, you might need to tweak it a little.)
Comment #24
icecreamyou commentedOh, also, you shouldn't set those form elements to
display: none;in the CSS or people who have JavaScript disabled won't be able to save statuses. Hide them in JavaScript instead by doing something like this:$('.facebook-status-form', context).children(':not(.facebook-status-textarea-wrapper)').hide();Comment #25
ay13 commentedThey are only hidden when JavaScript is enabled. It uses the js class Drupal sets on the HTML element when js is detected.
Comment #26
ay13 commentedAttached patch hides the private checkbox until text area has focus.
Comment #27
ay13 commentedSorry for the constant bombardment of patches. i found a bug when submitting multiple messages without page reload. the attached patch includes all previous fixes and fixes this new issue.
hoping this is the last patch for this issue.
Comment #28
ezra-g commentedThanks for your revisions!
I can confirm that with this patch the UI degrades acceptably in the versions of Firefox and Chrome mentioned above, with and without Javascript.
However, doing a functional test I noticed a few issues:
a) When logged in as an administrative user with the permission to administer blocks, I'm unable to share a status once the photo uploading form is present - Clicking on the "Share" button has no effect because the block administration control is above it
b) The controls (Link, File, Private) drop down awkwardly when the photo form is present. I think they should probably disappear until the photo form is dismissed.
c) This one is my fault: I didn't notice that screenshots A and C differ in the label and icon for the photo attachment button. To stay consistent with the functionality that Commons currently offers, let's leave this as "Photo" and use the camera-style icon that FBSMP ships with. Sorry I missed that from the beginning!
Comment #29
icecreamyou commentedThat one's actually my fault. Committed fix to FBSMP dev.
Comment #30
ezra-g commentedWow - Thanks for the fast assist, @IceCreamYou!
This resolves issue a) for me, but I think it means Commons needs to adjust our styling somewhat, as the Share button no longer appears aligned:
Comment #31
ay13 commentedAttached patch has css fix for styling issue introduced by FBSMP update.
Comment #32
ezra-g commentedThe patch in #31 doesn't address points B and C from #28. @ay13, feel free to get in touch offline to discuss those.
Comment #33
ezra-g commentedAlso, I'm seeing the same/similar button alignment issue from #18 on Mac OS with the latest FBSMP dev using the patch from 32.
Comment #34
ezra-g commenteday13 passed me this patch directly, which resolves the issue in #33. Let's do further enhancements in new issues.
http://drupalcode.org/project/commons.git/commit/a0e0916
Thanks!
Comment #36
kbettis commented