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

Update the theme to material 3, with new search ui, in addition to other smaller changes). #212

Merged
merged 13 commits into from
Jan 4, 2025

Conversation

caarmen
Copy link
Owner

@caarmen caarmen commented Jan 2, 2025

Preparation steps

  • Bump librairies to the latest stable version.
  • Fix the shell script which disables animations the devices before launching tests.
  • Improve the way we look up specific RecyclerViews in tests: use a unique resource id for the different RecyclerViews (rhymer result list, thesaurus result list, ...)

UI rework

  • Migrate from the app compat theme to the material3 theme.
    • The accent color is removed. No more yellow.
    • The play button looks slightly different.
    • The settings/about/license screens have a gray toolbar instead of the primary color toolbar.
  • Redo the search UI: use the SearchBar + SearchView from the material library, instead of using the platform search widgets. This involves creating our own UI (recyclerview adapter) for the search suggestions.
    • The search suggestions appear in a full screen mode.

@caarmen caarmen force-pushed the rewrite-search-ui branch from d1dac6c to ed31f97 Compare January 2, 2025 18:30
@caarmen caarmen force-pushed the rewrite-search-ui branch from 27f52e7 to a9a3293 Compare January 2, 2025 20:00
Copy link

github-actions bot commented Jan 2, 2025

Overall Project 72.85% -0.29%
Files changed 90.39% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 90.38% -1.81% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 71.94% -0.66%

@caarmen caarmen force-pushed the rewrite-search-ui branch from 335bc3c to d6aea0b Compare January 2, 2025 21:43
Copy link

github-actions bot commented Jan 2, 2025

Overall Project 78.83% -0.27%
Files changed 90.26% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 90.38% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 71.94% -0.66%

Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.35% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 71.94% -0.66%

Copy link

github-actions bot commented Jan 3, 2025

Overall Project 70.95% -0.27%
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 71.12% -0.66%

Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.46% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 71.94% -0.66%

Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.43% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 72.36% -0.66%

Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.43% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 72.36% -0.66%

Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.43% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 72.36% -0.66%

@caarmen caarmen force-pushed the rewrite-search-ui branch from de0fa60 to 82dc437 Compare January 3, 2025 12:36
@caarmen caarmen changed the title Rewrite search UI and theming Update the theme to material 3, with new search ui, in addition to other smaller changes). Jan 3, 2025
Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.43% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 72.36% -0.66%

@caarmen caarmen force-pushed the rewrite-search-ui branch from 82dc437 to d598c6c Compare January 3, 2025 13:16
Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.43% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 72.36% -0.66%

@caarmen caarmen force-pushed the rewrite-search-ui branch from dfb11ed to 99c30d3 Compare January 3, 2025 16:09
Copy link

github-actions bot commented Jan 3, 2025

Overall Project 53.44% -1.52%
Files changed 45.77%

File Coverage
FilterDialogFragment.kt 88.66% 🍏
Search.kt 88.57% -3.27% 🍏
MainActivity.kt 69.14% -0.66%
SuggestionsViewModel.kt 21.71% -74.29%
SuggestionsAdapter.kt 16.26% -76.42%

@caarmen caarmen force-pushed the rewrite-search-ui branch from 99c30d3 to 10ec68d Compare January 3, 2025 17:54
Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.43% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 72.36% -0.66%

@caarmen caarmen force-pushed the rewrite-search-ui branch from 10ec68d to bfda09e Compare January 3, 2025 18:44
Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.43% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 72.36% -0.66%

@caarmen caarmen force-pushed the rewrite-search-ui branch from bfda09e to dcc5548 Compare January 3, 2025 20:35
Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.43% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 72.36% -0.66%

@caarmen caarmen force-pushed the rewrite-search-ui branch from dcc5548 to b05477a Compare January 3, 2025 21:06
@caarmen
Copy link
Owner Author

caarmen commented Jan 3, 2025

There is an issue with the composer tab: it doesn't scroll?

Copy link

github-actions bot commented Jan 3, 2025

Overall Project 80.43% -0.27% 🍏
Files changed 90.24% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 72.36% -0.66%

caarmen added 11 commits January 3, 2025 22:34
…abs.

This allows us to more easily (and consistently between robolectric + devices) look for elements in the view hierarchy.
… tests.

We were setting values for the wrong animation property names.
Remove:
* Custom alert dialog themes.
* Custom popup menu header color.
* Accent color.

Replace the play icon with one that has a transparent triangle inside the circle.

Adjust tests to find the play button, after the migration to material3 components.

Note that the search theming is not correct in this commit. This is addressed in the next commit.
Use the SearchBar and SearchView provided from the material components library, instead of the appcompat one.

Some tests are failing. They are addressed in the following commits.
…e search widget.

TODO: Figure out why the app bar is displayed scrolled up initially.
Instead of having this workaround in tests: prevent the issue in the first place.

It was being caused by the query word, in the results list header, being selectable. This was making the app bar scroll up just when opening the app, even if there were no queries yet.

Only make this `TextView` selectable if it's from an actual user query.
@caarmen caarmen force-pushed the rewrite-search-ui branch from b05477a to d57d69f Compare January 3, 2025 21:37
Copy link

github-actions bot commented Jan 4, 2025

Overall Project 80.3% -0.46% 🍏
Files changed 85.15% 🍏

File Coverage
SuggestionsViewModel.kt 94.29% -5.71% 🍏
Search.kt 91.83% -1.45% 🍏
FilterDialogFragment.kt 88.66% 🍏
SuggestionsAdapter.kt 84.55% -15.45% 🍏
MainActivity.kt 71.01% -3.02%

@caarmen caarmen marked this pull request as ready for review January 4, 2025 14:58
@caarmen caarmen merged commit b58e175 into master Jan 4, 2025
3 checks passed
@caarmen caarmen deleted the rewrite-search-ui branch January 4, 2025 14:58
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.

1 participant