Skip to content

Conversation

@AdamT20054
Copy link
Contributor

@AdamT20054 AdamT20054 commented Mar 5, 2025

Description

Changes

Update the search bar to remember the "Search Type" outside of the filter modal.

Why is this change required? What problem does it solve?

Raised in #16602 , it's a QOL feature. Appreciated more for people who frequently search by non-context means, eg, those without HW-accel ML

If it fixes an open issue, please link to the issue here.

#16602

How Has This Been Tested?

Live-tested UI, with it remote linked to my prod-immich running v1.128.0
https://github.com/user-attachments/assets/069d40d1-85be-4317-9a17-2e1b42adb0be

Unit tests

npm run test

 Test Files  18 failed | 18 passed (36)
      Tests  55 failed | 87 passed (142)
   Start at  15:34:50
   Duration  4.87s (transform 4.20s, setup 15.07s, collect 6.53s, tests 5.08s, environment 23.48s, prepare 4.29s)

npm run check:all
No issues for the files changed in this PR

Checklist:

  • [Y] I have performed a self-review of my own code
  • [N/A] I have made corresponding changes to the documentation if applicable
  • [Y] I have no unrelated changes in the PR.
  • [N/A] I have confirmed that any new dependencies are strictly necessary.
  • [N/A] I have written tests for new code (if applicable)
  • [Y] I have followed naming conventions/patterns in the surrounding code
  • [N/A] All code in src/services uses repositories implementations for database calls, filesystem operations, etc.
  • [N/A] All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services)

@YarosMallorca YarosMallorca linked an issue Mar 5, 2025 that may be closed by this pull request
4 tasks
Copy link
Collaborator

@YarosMallorca YarosMallorca left a comment

Choose a reason for hiding this comment

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

Tested locally, works as expected.

@alextran1502 alextran1502 requested a review from mertalev March 6, 2025 14:40
@alextran1502 alextran1502 changed the title Remember search context feat(web): remember search context Mar 6, 2025
@alextran1502
Copy link
Member

Added the element to show the current search type on the search bar for clarity

image

@alextran1502 alextran1502 merged commit 70a0870 into immich-app:main Mar 10, 2025
39 checks passed
knechtandreas added a commit to knechtandreas/immich that referenced this pull request Mar 10, 2025
…s-broken

* main:
  fix(server): set the dev server restart policy of the dev server container to match the other containers (immich-app#16753)
  feat(web): remember search context (immich-app#16614)
  feat(server): read Android and Sony video camera make/model (immich-app#16678)
  fix(server): adjust type of person.birthDate (immich-app#16628)
  fix(web): add labels to memory lane buttons (immich-app#16664)
  feat(mobile): locate in timeline (immich-app#16722)
  chore(ml): uv (immich-app#16725)
  fix: 🍪 packages confusion (immich-app#16735)
  fix(web): Update people-card favorite position (immich-app#16746)
  chore(mobile): upgrade riverpod (immich-app#16742)
  chore(mobile): upgrade flutter_web_auth_2 (immich-app#16741)
  fix(docs): edge case when restoring dump that is unreadable as current user (immich-app#16758)
savely-krasovsky pushed a commit to savely-krasovsky/immich that referenced this pull request Jun 8, 2025
* Retain search context in LocalStorage.

* Remove debug logging

* Prettier

* Added QueryType and VALID_QUERY_TYPES to $lib/constants

* Prettier

* Renamed VALID_QUERY_TYPES to fit the codestyle.

Ran prettier

* show current search type on search bar

* fix: linting

---------

Co-authored-by: Alex Tran <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search Bar Does Not Respect Search Type

4 participants