-
Notifications
You must be signed in to change notification settings - Fork 33
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
Tan 3487/screening status filter item #9994
Conversation
…enLabDotCo/citizenlab into TAN-3487/screening-status-filter-item
…into TAN-3487/screening-status-filter-item
|
const prescreeningButtonIsDisabled = | ||
!phasePrescreeningEnabled || !preScreeningFeatureAllowed; | ||
|
||
const prescreeningTooltipIsDisabled = | ||
phasePrescreeningEnabled && preScreeningFeatureAllowed; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the status code checks here since we know code is always prescreening
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the original StatusFilter with all the prescreening status related code that I'd like to separate from all other status filters. Only changes where indicated. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed all prescreening
specific code from this.
…into TAN-3487/screening-status-filter-item
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still a couple of more things that can be cleaned up from the prescreening status component before it's fully complete.
...app/components/admin/PostManager/components/FilterSidebar/statuses/ScreeningStatusFilter.tsx
Outdated
Show resolved
Hide resolved
...app/components/admin/PostManager/components/FilterSidebar/statuses/ScreeningStatusFilter.tsx
Outdated
Show resolved
Hide resolved
...app/components/admin/PostManager/components/FilterSidebar/statuses/ScreeningStatusFilter.tsx
Outdated
Show resolved
Hide resolved
front/app/components/admin/PostManager/components/FilterSidebar/statuses/StatusFilters.tsx
Show resolved
Hide resolved
Tan 3487/review
…into TAN-3487/screening-status-filter-item
There's a lot of code specifically for status code
prescreening
in the generic status filter, which makes it hard to reason about/messy. So I'm creating a separate component for theprescreening
status code to take this out.This is prep work for next ticket(s). No functional changes in here. I might further refactor this (reduce code duplication) later if I have time left.
Changelog
Changed
Screening
status in input manager so it doesn't look as if you can drop inputs on this status.