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

fix(ui): reset page when search term changes #6569

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

psychedelicious
Copy link
Collaborator

Summary

When changing the search term, we should reset the page (set offset to 0).

Related Issues / Discussions

https://discord.com/channels/1020123559063990373/1149513625321603162/1257795535482392727

QA Instructions

  • Without a search term set, select a page in the gallery
  • Enter a search term that will result more than 1 page of results

Without this PR, we expect that the search results will start on a page equal to the previously selected page, or the last possible page of the search results.

With this PR, we expect that the search results will start on the first page.

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

@github-actions github-actions bot added the frontend PRs that change frontend files label Jul 2, 2024
- For single image deletion, select the image in the same slot as the deleted image
- For multiple image deletion, empty selection
- On list images, if no images are currently selected, select the first image
@psychedelicious
Copy link
Collaborator Author

fix(ui): revise image selection after deletion
9f71af1

  • For single image deletion, select the image in the same slot as the deleted image
  • For multiple image deletion, empty selection
  • On list images, if no images are currently selected, select the first image

@psychedelicious psychedelicious enabled auto-merge (rebase) July 3, 2024 02:53
@psychedelicious psychedelicious merged commit 7c01b69 into main Jul 3, 2024
14 checks passed
@psychedelicious psychedelicious deleted the psyche/fix/ui/reset-page-on-search branch July 3, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants