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

445: Stores spoken keyboard prompts to Recents #530

Conversation

cinadia
Copy link
Contributor

@cinadia cinadia commented May 15, 2024

Description:
Stores keyboard prompts that the user Speaks to the Recents category
Resolves #445

  • Acceptance Criteria satisfied
  • Regression Testing

@cinadia cinadia self-assigned this May 15, 2024
@cinadia cinadia marked this pull request as ready for review May 23, 2024 20:59
)
viewModel.addNewPhrase(text, PresetCategories.RECENTS.id)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You exposed a flaw in how our categories are set up, nice! We don't actually want to be storing phrases under the "RECENTS" category, instead we determine RECENTS by just looking at the most recently used phrases PhrasesUseCase#getPhrasesForCategory().

Totally understand how you got here, and we should clean up the API to not allow creating a phrase with "Recent" as the category, could you create a ticket on the board to track that? Up to you whether or not you tackle that, but we should get it written down.

As far as the defect at hand, I don't think we actually want just anything spoken from the keyboard to be saved, and this is corroborated by how the iOS app works. Instead, Android is currently missing functionality where a user can save a phrase directly from the keyboard. Download the Vocable iOS app to your Mac and poke around to see what I mean. Once you feel comfortable, I think we should discard the current bug as "won't-fix" and write up an enhancement to match iOS's functionality here.

Copy link
Contributor Author

@cinadia cinadia May 24, 2024

Choose a reason for hiding this comment

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

I created a new issue for the API cleanup: #534

As for saving phrases directly from the keyboard, on iOS they're stored under the "My Sayings" category, but on Android the "My Sayings" category is depricated. Would you like to bring it back?

image

Copy link
Contributor Author

@cinadia cinadia May 29, 2024

Choose a reason for hiding this comment

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

Updated #445 to reflect adding the My Sayings enhancement. Can probably close this PR

Copy link
Collaborator

Choose a reason for hiding this comment

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

@cinadia Agreed!

@PaulKlauser PaulKlauser closed this Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add "My Phrases" functionality to Android, to match iOS behaviour
2 participants