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

[FX-1459] Move EditText methods to EditTextElement interface #266

Conversation

devinmorgan
Copy link
Contributor

@devinmorgan devinmorgan commented Jun 13, 2024

What

Move EditText-specific methods out of ForageElment interface and into EditTextElement interface.

Why

Leaving these methods on the ForageElement would force the Pos SDK's non-EditText-based UI components to implement these methods, which makes no sense. Methods that make sense for EditText UI components should live on the EditText-specific interface and not on the base ForageElement interface that even non-EditText UI components implement.

Test Plan

  • ❌ No unit tests are necessary here
  • ❌ Nothing runtime-related changed manually testing is unnecessary.

Demo

N/A as this is just implementation

How

Can be merged after #265 is merged

@devinmorgan devinmorgan changed the title Move EditText methods to EditTextElement interface [FX-1459] Move EditText methods to EditTextElement interface Jun 13, 2024
@devinmorgan devinmorgan changed the title [FX-1459] Move EditText methods to EditTextElement interface [FX-1459] Move EditText methods to EditTextElement interface Jun 13, 2024
@devinmorgan devinmorgan marked this pull request as ready for review June 13, 2024 20:18
@devinmorgan devinmorgan force-pushed the devin/fx-1463-update-resvaluesattrsxml-so-that-all-attrs-declare-their branch from 2a75dc1 to fcc0ce0 Compare June 17, 2024 12:02
@devinmorgan devinmorgan force-pushed the devin/fx-1459-sync-edittextelement-and-forageelementt-interfaces-with-poss branch 2 times, most recently from 2dec633 to d197e36 Compare June 17, 2024 12:11
@devinmorgan devinmorgan force-pushed the devin/fx-1463-update-resvaluesattrsxml-so-that-all-attrs-declare-their branch from f42e823 to 54bb224 Compare June 17, 2024 15:31
@devinmorgan devinmorgan changed the base branch from devin/fx-1463-update-resvaluesattrsxml-so-that-all-attrs-declare-their to main June 17, 2024 15:37
Many of the methods originally organized under the ForageElement
interface should actually live under the EditTextElement interface as
not all ForageElements will specifically care to implement them (e.g.
the UI-based ForagePinPad, does not care about hints, box stroke, and
also has no concept of "focussed"

Signed-off-by: Devin Morgan <[email protected]>
@devinmorgan devinmorgan force-pushed the devin/fx-1459-sync-edittextelement-and-forageelementt-interfaces-with-poss branch from d197e36 to 9fc0eff Compare June 17, 2024 15:38
Copy link
Contributor Author

devinmorgan commented Jun 17, 2024

Merge activity

  • Jun 17, 11:39 AM EDT: Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready.
  • Jun 17, 11:41 AM EDT: @devinmorgan merged this pull request with Graphite.

@devinmorgan devinmorgan merged commit 7949cea into main Jun 17, 2024
6 checks passed
@devinmorgan devinmorgan deleted the devin/fx-1459-sync-edittextelement-and-forageelementt-interfaces-with-poss branch July 1, 2024 12:22
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.

2 participants