Closed Bug 612929 Opened 14 years ago Closed 14 years ago

Indicate which replies the user has replied to recently

Categories

(support.mozilla.org :: Army of Awesome, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: williamr, Assigned: wenzel)

References

()

Details

Once a user has replied to a tweet, show this on the right side of the tweet in the tweet list by saying "You replied".

If others have also replied to that tweet, it should say "You and 1 other replied" or "You and X others replied". This mockup shows the styling and use cases:
http://people.mozilla.com/~williamr/communitycare/mockups/armyofawesome_231a.jpg

Since this is only useful to the user for a short time period, I think we could do this locally with a cookie and/or some JS. However, scrolling down to load more tweets, clicking the refresh button to reload tweets, or refreshing the page itself should still show the users which tweets they have replied to.
Here's some code that should do what you ask for:

https://github.com/fwenzel/kitsune/compare/master...cc-you-replied-612929

jsocol: r?

Notes:
- I only keep the last replied-to tweet number in localstorage. As it turns out, added replies show up immediately on page reload, so it didn't seem to make sense to me to keep a longer history there. Replies that come from the database and are shown on the page will be marked as mentioned above.
- When you make a reply and the window closes, your reply won't show up in the DOM tree yet. However, the tweet you replied to *will* be marked "You replied". Your actual reply shows up once you reload the page.
Status: NEW → ASSIGNED
master: https://github.com/jsocol/kitsune/commit/19ab09
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Thanks, James!
Target Milestone: 2.3.1 → 2.3.2
Appears the changes to show replies (this bug along with bug 612943 and bug 612935) are only on master and not support-stage. Can we get these added to support-stage? Thanks!
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I cherry-picked all replies-related commits into 2.3.x:
https://github.com/jsocol/kitsune/compare/d5b28d1...3966d43
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Verified on support-stage
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.