Closed
Bug 1201642
Opened 9 years ago
Closed 9 years ago
Make UI for clearing existing private data items individually
Categories
(Firefox for iOS :: General, defect)
Tracking
()
People
(Reporter: bnicholson, Assigned: bnicholson)
References
Details
Attachments
(1 file)
48 bytes,
text/x-github-pull-request
|
nalexander
:
review+
tecgirl
:
ui-review+
|
Details | Review |
Right now, we support clearing history, cookies, cache, logins, and site data. A good start to bug 1191450 would be to provide a UI for clearing these things individually.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8656742 -
Flags: ui-review?(randersen)
Comment 2•9 years ago
|
||
Comment on attachment 8656742 [details] [review]
Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1031
The UI should follow what we're doing in Settings, with top and bottom borders to help separation, and no subsequent dividers on the cells below the "Clear Private Data" button.
As far as the toast is concerned, something would be nice, even if for a couple of seconds before it bumps you back to Settings. I would not leave the user on this screen after they've completed the action.
Assignee | ||
Comment 3•9 years ago
|
||
Hey Robin, updated the cell styles. For the post-click toast/alert, do you know what we want now, or should I file a separate follow-up for us to decide on that UX?
Flags: needinfo?(randersen)
Comment 4•9 years ago
|
||
(In reply to Brian Nicholson (:bnicholson) from comment #3)
> Hey Robin, updated the cell styles. For the post-click toast/alert, do you
> know what we want now, or should I file a separate follow-up for us to
> decide on that UX?
Brian,
Go ahead and file separately, because this looks good, works, and is good for now. I do believe it can improved by either an alert with more information about what you're clearing or a self-destructing toast that takes you back to Settings (like you have now).
Flags: needinfo?(randersen)
Updated•9 years ago
|
Attachment #8656742 -
Flags: ui-review?(randersen) → ui-review+
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Robin Andersen [:tecgirl] from comment #4)
> Go ahead and file separately, because this looks good, works, and is good
> for now. I do believe it can improved by either an alert with more
> information about what you're clearing or a self-destructing toast that
> takes you back to Settings (like you have now).
Thanks! Filed bug 1202093.
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8656742 [details] [review]
Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1031
Plan to land this along with bug 1170690.
Attachment #8656742 -
Flags: review?(nalexander)
Comment 7•9 years ago
|
||
Comment on attachment 8656742 [details] [review]
Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1031
Nice patch series. The preamble guiding the reviewer is appreciated!
Attachment #8656742 -
Flags: review?(nalexander) → review+
Assignee | ||
Comment 8•9 years ago
|
||
Merged 7eb679a.
status-fxios-v1.0:
--- → affected
status-fxios-v1.0.5:
--- → affected
status-fxios-v1.1:
--- → fixed
Assignee | ||
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 9•9 years ago
|
||
https://github.com/mozilla/firefox-ios/commit/e714458f0368969fabadc6874b595fb9a0500bad#diff-4b55209fd9d15aff4987f5bd3aa91e20R37
https://github.com/mozilla/firefox-ios/commit/e714458f0368969fabadc6874b595fb9a0500bad#diff-4b55209fd9d15aff4987f5bd3aa91e20R61
"Clear Private Data" string shouldn't be one string but at least two (if not three).
Flags: needinfo?(francesco.lodolo)
Comment 10•9 years ago
|
||
Not sure why the needinfo for me, but I can confirm this is an issue, and I'd suggest to file a new bug for it: while English might be fine with "Clear Private Data" used as both title and button label, other languages are not. One string, two different contexts that I can see.
Sadly, as discussed in the past, there's no easy solution since we use the actual string as string identifier.
Flags: needinfo?(francesco.lodolo)
Assignee | ||
Comment 11•9 years ago
|
||
Filed bug 1205803; hopefully we can address this by using a separate tableName.
Comment 12•9 years ago
|
||
(In reply to Brian Nicholson (:bnicholson) from comment #11)
> Filed bug 1205803; hopefully we can address this by using a separate
> tableName.
Unfortunately not,
https://github.com/splewako/firefox-ios-l10n-en/commit/abb161b83bc54452e3c4206b7c168b5125240578#diff-f0455d5a9fe1f9eef6bc4ab45eefa508R88
Assignee | ||
Comment 13•9 years ago
|
||
(In reply to Stefan Plewako [:stef] from comment #12)
> Unfortunately not,
> https://github.com/splewako/firefox-ios-l10n-en/commit/
> abb161b83bc54452e3c4206b7c168b5125240578#diff-
> f0455d5a9fe1f9eef6bc4ab45eefa508R88
Hm, looks like it did actually separate two of them (see [1] and [2]) -- but I forgot that the same string appears on the same settings panel (as the nav title and a button). We could create another tableName specifically for one of those, though that feels like a hack :\
[1] https://github.com/splewako/firefox-ios-l10n-en/commit/abb161b83bc54452e3c4206b7c168b5125240578#diff-f0455d5a9fe1f9eef6bc4ab45eefa508R85
[2] https://github.com/splewako/firefox-ios-l10n-en/commit/abb161b83bc54452e3c4206b7c168b5125240578#diff-f0455d5a9fe1f9eef6bc4ab45eefa508R352
Comment 14•9 years ago
|
||
Can we use a string id (i.e. "clear_data_button") instead of the actual string as identifier?
See "String Key Best Practices" section
https://www.objc.io/issues/9-strings/string-localization/
Assignee | ||
Comment 15•9 years ago
|
||
This seems like a good idea, though I'm not sure I fully understand the details. If we use a key, where do we map it to the actual string? Do we need to start manually maintaining an English string file like we do on Android?
Assignee | ||
Comment 16•9 years ago
|
||
I guess that's more of a question for Stefan, in case he's familiar with this approach. I can bring this up in our next iOS meeting.
Flags: needinfo?(sarentz)
Comment 17•9 years ago
|
||
Can we go with the table name solution here?
It is correct that we should have probably used indirect keys instead of (ab)using the English base language string as the identifier.
But I think it will be worse to change that now for just one string. It will also break our l10n flow because we are not prepared to deal with that.
If we feel we need to use a different approach then we should turn that plan that for a next release and do it consistently through the whole product.
Flags: needinfo?(sarentz)
Comment 18•9 years ago
|
||
(In reply to Stefan Arentz [:st3fan] from comment #17)
> If we feel we need to use a different approach then we should turn that plan
> that for a next release and do it consistently through the whole product.
I don't that's a good idea: changing all IDs mean invalidating all the existing translations. If we ever decide to use proper string IDs, that should involve a gradual approach, i.e. using it only for new strings.
You need to log in
before you can comment on or make changes to this bug.
Description
•