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)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios 1.1+ ---
fxios-v1.0 --- affected
fxios-v1.0.5 --- affected
fxios-v1.1 --- fixed

People

(Reporter: bnicholson, Assigned: bnicholson)

References

Details

Attachments

(1 file)

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.
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.
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)
Blocks: 1191450
(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)
Attachment #8656742 - Flags: ui-review?(randersen) → ui-review+
(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.
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 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+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
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)
Filed bug 1205803; hopefully we can address this by using a separate tableName.
(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
(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
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/
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?
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)
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)
(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.
Blocks: 1212574
Depends on: 1238102
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: