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

feat: filter carry over behavior #1128

Merged
merged 10 commits into from
Sep 16, 2024
Merged

Conversation

codemonkey800
Copy link
Contributor

@codemonkey800 codemonkey800 commented Sep 11, 2024

#527
#1081
#1118

  • Refactors the filter history state to query parameter strings
  • Implements remaining carry over behavior for browse back / forward buttons
  • Adds E2E tests (some incomplete until feat: integrate depositions backend #1093 is merged)

Demo

https://dev-filter-carry.cryoet.dev.si.czi.technology/

Copy link
Member

@kne42 kne42 left a comment

Choose a reason for hiding this comment

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

if it's an easy fix, would you also be able to address #1118 in this PR?

setSearchParams(
(prev) => {
Object.values(QueryParams).forEach((param) => prev.delete(param))
prev.delete('page')
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't this already be covered since QueryParams.Page would be deleted by the above line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

probably didn't realize it was included in QueryParams

frontend/packages/data-portal/app/hooks/useFilter.ts Outdated Show resolved Hide resolved
frontend/packages/data-portal/app/hooks/useFilter.ts Outdated Show resolved Hide resolved
@codemonkey800
Copy link
Contributor Author

if it's an easy fix, would you also be able to address #1118 in this PR?

yee let me take a look 🫡

@codemonkey800 codemonkey800 force-pushed the jeremy/deposition-filter-carryover branch from 01d658b to 4e25439 Compare September 14, 2024 05:57
@codemonkey800 codemonkey800 merged commit afd3497 into main Sep 16, 2024
13 checks passed
@codemonkey800 codemonkey800 deleted the jeremy/deposition-filter-carryover branch September 16, 2024 17:07
github-actions bot added a commit that referenced this pull request Sep 16, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.28.0](web-v1.27.0...web-v1.28.0)
(2024-09-16)


### ✨ Features

* Descriptions of datasets and depositions.
([#1134](#1134))
([6f2d66f](6f2d66f))
* filter carry over behavior
([#1128](#1128))
([afd3497](afd3497))
* Prep FE codebase for 2 API URLs
([#1126](#1126))
([e76f270](e76f270))


### 🐞 Bug Fixes

* Fix not enough padding below key photos
([#1140](#1140))
([6e84e51](6e84e51))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
kne42 added a commit that referenced this pull request Sep 16, 2024
* main:
  chore(main): release web 1.28.0 (#1137)
  fix: Fix not enough padding below key photos (#1140)
  feat: filter carry over behavior (#1128)
  feat: Prep FE codebase for 2 API URLs (#1126)
  docs: Add graphics to data organization page (#1135)
  feat: Descriptions of datasets and depositions. (#1134)
  chore(main): release web 1.27.0 (#1127)
kne42 added a commit that referenced this pull request Sep 21, 2024
* main: (24 commits)
  feat: Add more V2 API fields (#1166)
  feat: Stop querying publications in V2 temporarily (#1160)
  feat: Add reference tomogram selector for single annotation download (#1136)
  feat: Add alignment ID row + tooltip (#1153)
  feat: upgrade sds colors (#1078)
  feat: upgrade sds (#1077)
  chore(main): release web 1.29.0 (#1152)
  feat: Change download all annotations copy (#1151)
  feat: Start writing run query for new API (#1149)
  ci: remove glob path pattern for python client tests workflow (#1143)
  chore(main): release web 1.28.0 (#1137)
  fix: Fix not enough padding below key photos (#1140)
  feat: filter carry over behavior (#1128)
  feat: Prep FE codebase for 2 API URLs (#1126)
  docs: Add graphics to data organization page (#1135)
  feat: Descriptions of datasets and depositions. (#1134)
  chore(main): release web 1.27.0 (#1127)
  feat: integrate depositions backend (#1093)
  docs: Implement SDS colors for dark mode (#1131)
  feat: Implement new single tomogram download flow (#1120)
  ...
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