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

Agenda quick filters pills #609

Merged
merged 7 commits into from
Oct 27, 2023
Merged

Conversation

thecalcc
Copy link
Contributor

@thecalcc thecalcc commented Oct 11, 2023

NHUB-414

Checklist

  • This pull request is not adding new forms that use redux
  • This pull request is adding missing TypeScript types to modified code segments where it's easy to do so with confidence

@petrjasek petrjasek added this to the v2.6 milestone Oct 17, 2023
Copy link
Member

@tomaskikutis tomaskikutis left a comment

Choose a reason for hiding this comment

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

  • fix merge conflicts
  • specify the ticket number
  • add a comment to the PR explaining why you didn't fulfill the checklist item regarding typescript types

@thecalcc
Copy link
Contributor Author

I haven't checked the last checkbox because technically if I had to, I'd need to type the whole redux state for search & agenda, which I'm not going to right now. The other point is covered though, the component is typed properly with it's dispatch & store props.

@tomaskikutis
Copy link
Member

where it's easy to do so with confidence

If it would involve lots of work here adding types to many places not related to this PR, I think we can conclude that it's not easy - thus checkpoint can be marked as completed anyway.

@thecalcc thecalcc changed the title Init Agenda quick filters pills Oct 25, 2023
assets/search/reducers.ts Show resolved Hide resolved
import {connect} from 'react-redux';
import {agendaCoverageStatusFilter, getActiveFilterLabel} from 'agenda/components/AgendaCoverageExistsFilter';

const IS_AGENDA = location.pathname.includes('/agenda');
Copy link
Member

Choose a reason for hiding this comment

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

We've already talked that this is a low quality implementation that we'd normally not approve, but are going with it anyway because of effort that would be required to do a proper one. In such cases it'd be very useful to add a comment describing the situation and guidelines on how should we fix it when we have more time.

@@ -225,12 +231,7 @@ const mapStateToProps = (state: any) => ({
});

const mapDispatchToProps = (dispatch: any) => ({
clearQuickFilter: (filter: string) => dispatch(clearQuickFilter(filter)),
clearItemTypeFilter: () => dispatch(setItemTypeFilter(null)),
Copy link
Member

Choose a reason for hiding this comment

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

move this one too

Copy link
Member

@tomaskikutis tomaskikutis left a comment

Choose a reason for hiding this comment

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

fix ci

@petrjasek petrjasek merged commit 56b6cb8 into superdesk:develop Oct 27, 2023
6 of 7 checks passed
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