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

Implement browse chips for search screen #26

Merged
merged 11 commits into from
Jun 28, 2024
Merged

Conversation

uragiristereo
Copy link
Owner

Browsing is just getting easier, the "space" each tags indicates an "and" notation to show only the posts that contains those tags, it was confusing before for users that aren't familiar with how Danbooru works. Now, with chips introduced users are able to know that they're searching with two different tags.

The tags are colored based on their category, supports for exclude tag with dash (-) prefix, qualifiers (search:, ordfav:), also or notation like (tag1 or tag2). The colors are retrieved from getting tags from search query, search autocomplete and getting tags from the post detail bottom sheet, then stored into the local database. The database version remains unchanged because the previous migration has not done in production.

This PR marks the first time an unit test is introduced to the project.

Result (left before, right after)

Frame 10

Summary of changes

  • Implemented a new table: tag_categories
  • Introduced a new repository: TagCategoryRepository
  • Introduced a new use case: GenerateChipsFromTagsUseCase
  • Added testing scenario
  • Implemented the chips UI
  • Integrated the chips UI into existing search feature

What to do after this PR?

  • Add support for more qualifiers

@uragiristereo uragiristereo merged commit fa3fc8e into main Jun 28, 2024
@uragiristereo uragiristereo deleted the feature/browse-chips branch July 4, 2024 04:09
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