Skip to content

feat(imagesearch): add NTB distributor filter#2655

Merged
gularsson merged 1 commit into
mainfrom
feature/elelog-717-ntb-image-search-cannot-filter-by-distributor-catalogue
Jun 1, 2026
Merged

feat(imagesearch): add NTB distributor filter#2655
gularsson merged 1 commit into
mainfrom
feature/elelog-717-ntb-image-search-cannot-filter-by-distributor-catalogue

Conversation

@gularsson
Copy link
Copy Markdown
Contributor

  • bump @ttab/elephant-tt-api 0.4.2 -> 0.5.2
  • read distributorNames from the SWR key in ntbFetcher and set outsideSubscription when a distributor is selected
  • add distributor Select to ImageSearchInput, shown only for NTB
  • default NPK-unit users to the NPK distributor via useHasUnit
  • introduce shared ImageSearchKey tuple type used by both fetchers
  • add distributor/allDistributors labels (sv, en, nb)
  • cover the fetcher coupling and unit-driven default with tests

- bump @ttab/elephant-tt-api 0.4.2 -> 0.5.2
- read distributorNames from the SWR key in ntbFetcher and set
  outsideSubscription when a distributor is selected
- add distributor Select to ImageSearchInput, shown only for NTB
- default NPK-unit users to the NPK distributor via useHasUnit
- introduce shared ImageSearchKey tuple type used by both fetchers
- add distributor/allDistributors labels (sv, en, nb)
- cover the fetcher coupling and unit-driven default with tests
@gularsson gularsson self-assigned this May 29, 2026
Comment thread src/views/ImageSearch/index.tsx
@gularsson gularsson merged commit 686229d into main Jun 1, 2026
2 checks passed
@gularsson gularsson deleted the feature/elelog-717-ntb-image-search-cannot-filter-by-distributor-catalogue branch June 1, 2026 08:32
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.

3 participants