Closed Bug 586930 Opened 14 years ago Closed 14 years ago

[UX] Add "Copy User Agent" functionality

Categories

(Input :: General, enhancement, P2)

enhancement

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: wenzel, Assigned: michaelk)

References

Details

Attachments

(2 files)

The "more options" per-message menu has a point "copy user agent" (currently commented out). Need to enable it and make it work.

In bug 582101 comment 4 Chris suggested a lightbox for this purpose that closes on copy, as JavaScript can't copy to the clipboard on its own.
Given bug 578055 is/was 1.7, shouldn't this be, also?
Target Milestone: --- → 1.7
That depends. If we want to block on it, sure. If we want to deploy 1.7 ASAP, not. Also, this'll need some string changes.
This is definitely a nice to have and not a blocker. Seeing as how we've already talked to folks in l10n already, I'd rather push this back.
Priority: -- → P3
Target Milestone: 1.7 → 1.8
Priority: P3 → P2
The translate comment option is kinda lonely. We should get this in for 1.8, peeps.
If we keep adding things to 1.8, we need to postpone the milestone.
Target Milestone: 1.8 → 1.8.1
Target Milestone: 1.8.1 → 1.8
Good point, moving this to 2.0.
Target Milestone: 1.8 → 2.0
Severity: minor → enhancement
Chowse: Does this use a similar UI as the "share on twitter" thing? I wonder if we even need to allow people to copy the permalink by using a popup -- instead we could link straight to twitter with target=_blank?

This functionality here, however, certainly needs a "lightbox" closing on copy, as we can't use Flash to do it.
Target Milestone: 2.0 → 2.1
Assigning this to chowse for now. Will you give me some mocks, or even HTML/CSS if you have the time? This should be precisely what you've been talking about regarding a lightbox and an oncopy -> close event.
Assignee: nobody → chowse
Target Milestone: 2.1 → 2.0
Target Milestone: 2.0 → 2.1
Attached image Copy UA Lightbox
Here's the UI for lightbox. Time permitting, I can create the HTML/CSS to go along with it.
And here's a functioning prototype:
http://people.mozilla.com/~chowse/drop/mozilla.com/input/copy-ua/copy-ua.html

You can find all the relevant code here:
http://people.mozilla.com/~chowse/drop/mozilla.com/input/copy-ua/
Assignee: chowse → nobody
Thanks, Chris. Excellent work as usual. I'll pick this up, unless someone else feels compelled to get to it before me :)
Assignee: nobody → fwenzel
Assignee: fwenzel → michael
Moving to 2.2 after conversing w Stephen & Aakash.
Target Milestone: 2.1 → 2.2
Moving all 2.2 bugs to 3.0, as their code freezes would most likely coincide.
Target Milestone: 2.2 → 3.0
Added on master:
https://github.com/fwenzel/reporter/commit/b957c3cfea80aa0e90c2bc46f601b14934509022

We'll need a selenium test for this, as it is mostly JS.

Thanks chowse for the prototype!
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Why did you add the overlay to the base template? This way it shows up on every single page that not necessarily even contains this functionality :-/

In particular, the release feedback pages now show this overlay.

Instead, you probably want to put this include into all templates where this is relevant -- there shouldn't be too many (dashboard, search, single opinion page, themes, sites are all the ones that come to mind).
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached image Bug screenshot
Hudson is happy again, so I pushed the 2nd round for this:

Only include on dashboard pages:
https://github.com/fwenzel/reporter/commit/19faf227d0c859efc0d141ed35e5c99515cf691a

Make work with scrolling and resizing:
https://github.com/fwenzel/reporter/commit/b49b9419f9c287d12a24aa0c94abef9cd030f6bc
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
I'm not seeing the 'User Agent' copy anymore when viewing: http://input.stage.mozilla.com/en-US/beta/themes or http://input.stage.mozilla.com/en-US/beta/sites?q=search+page&sentiment=&version=&show_one_offs=
Shouldn't these pages have the copy, or am I misunderstanding this?
Only individual messages (not entire clusters) have user agent strings associated with them. When you click on a single theme cluster, you'll see a list of messages inside that cluster, which should have this option available.
Verified able to copy user agent from individual messages within a theme cluster
Status: RESOLVED → VERIFIED
Component: Input → General
Product: Webtools → Input
Adding back the in-testsuite flag that was mistakenly removed.
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: