Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

① [Currency selection] Remove currency picker #568

Conversation

justinswart
Copy link
Contributor

@justinswart justinswart commented Feb 1, 2019

📲 What

Paired with @Scollaco to remove the currency picker from SettingsAccountViewController.

🤔 Why

We've decided to replace the picker behaviour with a table view that will be pushed onto the navigation stack.

🛠 How

Deleted all references to the picker.

✅ Acceptance criteria

  • Project builds successfully
  • Tests pass
  • Currency picker is gone

🤖Related PR's for this feature

#569

@justinswart
Copy link
Contributor Author

Copy link
Contributor

@ifbarrera ifbarrera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested:
- iPhone X (12.1)
- iPhone 6s Plus (11.4)
- iPhone 6s (10.3.1)

Currency picker is gone, tapping the cell does nothing, tests pass 👍

@dusi
Copy link
Contributor

dusi commented Feb 4, 2019

Looks like case SettingsCurrencyPickerCell in Nib.swift can be removed as well..

@dusi
Copy link
Contributor

dusi commented Feb 4, 2019

[UPDATED]

Also from visual perspective there are 2 questions that come into my mind:

  1. Should we add disclosure indicator to the change currency cell to imply that this will push user to a different screen?
    Noticed that this has been done in ② [Currency selection] Add table view #569

  2. Should we change the text color to something more subtle?
    Using green color makes the text look like a button, but since we want the whole cell to react to taps we don't explicitly need to make this look like a button (the disclosure indicator from first point should make that clear). Cc @dannyalright

screen shot 2019-02-04 at 11 15 52 am

(please ignore the Text label on the screenshot - it was an accident)

@justinswart justinswart merged commit 88b4173 into feature-currency-selection Feb 4, 2019
@justinswart justinswart mentioned this pull request Feb 4, 2019
8 tasks
@dnywh
Copy link
Contributor

dnywh commented Feb 5, 2019

good catch @dusi, that was actually the intended visual outcome but not described on the Trello card. See the original collection for a mockup.

@justinswart want me to make a separate card for this?

@justinswart
Copy link
Contributor Author

@dannyalright sure - just to be clear we add a chevron disclosure icon in a later PR, but are you saying the text should not be green?

@dnywh
Copy link
Contributor

dnywh commented Feb 5, 2019

that's right. It should be the default cell 'value' colour. Here's the exact screen just to be safe. All good RE chevron in later PR

justinswart added a commit that referenced this pull request Feb 7, 2019
* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference
justinswart added a commit that referenced this pull request Feb 7, 2019
* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference
justinswart added a commit that referenced this pull request Feb 7, 2019
* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference
justinswart added a commit that referenced this pull request Feb 19, 2019
* Add SelectCurrencyViewController

* Fix tests

* Add tableview header

* Update snapshots

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* ① [Currency selection] Remove currency picker (#568)

* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference

* Remove local var, improve function name

* Set label colour

* Update snapshots

* Fix project file

* Correctly size header/footer views

* Make the tests pass (#585)

* Run snapshot tests on all devices

* Remove duplicate extension, use keypath setter

* Fix autolayout warnings
justinswart added a commit that referenced this pull request Feb 21, 2019
* Remove currency picker

* swiftlint

* Add SelectCurrencyViewController

* Fix tests

* Update snapshots

* Add tableview header

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Add update calls

* swiftlint

* Add update calls

* Add view model tests

* Remove stray file ref

* Fix tests

* swiftlint

* Remove redundant enum case

* Fix rebase duplication

* Remove reference

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* Add SelectCurrencyViewController

* Fix tests

* Add tableview header

* Update snapshots

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* ① [Currency selection] Remove currency picker (#568)

* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference

* Remove local var, improve function name

* Set label colour

* Update snapshots

* Fix project file

* Correctly size header/footer views

* Make the tests pass (#585)

* Fix merge issue

* Run snapshot tests on all devices

* Remove duplicate extension, use keypath setter

* Fix autolayout warnings

* Fix merge issue

* Add weak self, fix project file

* Renamed signal

* Refactor view model and tests

* Use more inference
justinswart added a commit that referenced this pull request Feb 22, 2019
* ① [Currency selection] Remove currency picker (#568)

* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference

* ③ [Currency selection] Add table view again (#582)

* Remove currency picker

* swiftlint

* Add SelectCurrencyViewController

* Fix tests

* Update snapshots

* Remove redundant enum case

* Remove reference

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Set nav title

* Fix yet another merge issue

* Fix merge

* ③ [Currency selection] Add table view header (#570)

* Add SelectCurrencyViewController

* Fix tests

* Add tableview header

* Update snapshots

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* ① [Currency selection] Remove currency picker (#568)

* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference

* Remove local var, improve function name

* Set label colour

* Update snapshots

* Fix project file

* Correctly size header/footer views

* Make the tests pass (#585)

* Run snapshot tests on all devices

* Remove duplicate extension, use keypath setter

* Fix autolayout warnings

* ④ [Currency selection] Add change currency api calls (#571)

* Remove currency picker

* swiftlint

* Add SelectCurrencyViewController

* Fix tests

* Update snapshots

* Add tableview header

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Add update calls

* swiftlint

* Add update calls

* Add view model tests

* Remove stray file ref

* Fix tests

* swiftlint

* Remove redundant enum case

* Fix rebase duplication

* Remove reference

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* Add SelectCurrencyViewController

* Fix tests

* Add tableview header

* Update snapshots

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* ① [Currency selection] Remove currency picker (#568)

* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference

* Remove local var, improve function name

* Set label colour

* Update snapshots

* Fix project file

* Correctly size header/footer views

* Make the tests pass (#585)

* Fix merge issue

* Run snapshot tests on all devices

* Remove duplicate extension, use keypath setter

* Fix autolayout warnings

* Fix merge issue

* Add weak self, fix project file

* Renamed signal

* Refactor view model and tests

* Use more inference

* swiftlint

* Add success banner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants