[Pontoon] Add an option to link to multiple strings

NEW
Unassigned

Status

Webtools
Pontoon
P3
normal
10 months ago
2 months ago

People

(Reporter: tomer, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 months ago
In dxr.mozilla.org I can select multiple lines in a file and than have a link that will show these lines highlighted. I'd suggest having a similar feature in pontoon, so we could send a team member a link that contains multiple strings, instead of one of the following workarounds:

* Sending one string per link
* Sending link to a search results or a resource, and asking them to look on the second string, the third from the bottom, etc. 

I'd like to have a link similar to this one: 
https://pontoon.mozilla.org/he/firefox-aurora/all-resources/?string=75295,75296 
… Which will show me both strings in the list.


As for the UI for creating such lists, I guess having control-click to toggle multiple selections will be enough; this is an advanced feature after all. ☺
Would you like this to URL show only strings 75295 & 75296 in the string list, or do you want to list all strings and only select strings 75295 & 75296 for batch editing?
Priority: -- → P3
(Reporter)

Comment 2

10 months ago
(In reply to Matjaz Horvat [:mathjazz] from comment #1)
> Would you like this to URL show only strings 75295 & 75296 in the string
> list, or do you want to list all strings and only select strings 75295 &
> 75296 for batch editing?

Given that strings could exist in different resources, I am not sure if listing all strings and just highlighting the selected strings would be usable. These strings might be very far from each other, so highlighting may require the user to scroll down the page and look for other markers. On the other hand, highlighting might be useful in some other scenarios, and can be done client side.
Right.

The "string" parameter is used to identify the currently selected string in the editor, so I'd leave this parameter untouched. Later on we can change it to "strings" and allow for linking to multiple strings selected in the batch editor, but that's a different bug.

For selecting strings in the string list by ID, I think we need a separate filtering parameter (e.g. ids), to complement currently used parameters - status, extra, time and author.

The only thing I'm not sure about is UX. Currently, URL always reflects the current state of the translate view and I'd like to keep that feature.

One possible solution is to use checkboxes for batch editing, and then add a "Show selected strings only" link to the batch editor. The alternative would be to not have a UI at all and only support manually listing IDs in the URL.
Blocks: 1390931
You need to log in before you can comment on or make changes to this bug.