Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add filter on Users page#2653

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
AbhineetJain merged 6 commits intomainfromabhineetjain/users-filter-ui
Jun 28, 2022
Merged

Conversation

AbhineetJain
Copy link
Contributor

@AbhineetJainAbhineetJain commentedJun 25, 2022
edited
Loading

This PR adds a new filter to the Users page.

Subtasks

  • add filter to the API call and users machine.
  • add filter to Users page view.
  • add error handling in the filter component, users page and machine.
  • default to blank table on error.
  • refactor common code for workspace filter.
  • add unit tests and stories.

Fixes#595

Screenshots

Screen Shot 2022-06-25 at 5 25 45 PM
Screen Shot 2022-06-25 at 5 25 54 PM
Screen Shot 2022-06-25 at 5 26 07 PM
Screen Shot 2022-06-25 at 5 26 20 PM

Screen Shot 2022-06-25 at 5 25 25 PM

@AbhineetJainAbhineetJain requested a review froma team as acode ownerJune 25, 2022 21:51
@AbhineetJainAbhineetJainforce-pushed theabhineetjain/users-filter-ui branch fromdb1ab2e tob94dba8CompareJune 25, 2022 21:51
@AbhineetJainAbhineetJainforce-pushed theabhineetjain/users-filter-ui branch 3 times, most recently from81dc68b to63e35c2CompareJune 27, 2022 15:18
@EmyrkEmyrk requested a review frompresleypJune 27, 2022 15:31
@Emyrk
Copy link
Member

Pumped on this

])(`query=%p, filter=%p`,(query,filter)=>{
expect(queryToFilter(query)).toEqual(filter)
})
})
Copy link
Member

Choose a reason for hiding this comment

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

❤️

Copy link
Contributor

@presleyppresleyp left a comment

Choose a reason for hiding this comment

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

Kira raises great questions but don't consider me a blocker on this. Excited to have this feature!

@AbhineetJainAbhineetJainforce-pushed theabhineetjain/users-filter-ui branch from63e35c2 to4717f84CompareJune 28, 2022 07:43
@AbhineetJainAbhineetJainforce-pushed theabhineetjain/users-filter-ui branch from1031696 tobfbf729CompareJune 28, 2022 15:32
users: [],
roles: MockSiteRoles,
isLoading: true,
}
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I like this story since it tests a particular behavior of the component, but I am not sure if it is a good UI snapshot since the loader is spinning and the snapshot may change across different builds. 🤔

Copy link
Member

Choose a reason for hiding this comment

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

Good thought. I haven't read through this in detail, but could we pause the animation for the loader? Or introduce a slight delay?https://www.chromatic.com/docs/animations

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks for pointing to this, I used

Loading.parameters={chromatic:{pauseAnimationAtEnd:true},}

and it seems to be constant for at least 3 builds.

canEditUsers,
isLoading,
}) => {
const styles = useStyles()
Copy link
Member

Choose a reason for hiding this comment

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

I think this is so much clearer!!!!!!!!!!!! thank you!!!

AbhineetJain reacted with hooray emoji
Copy link
Member

@Kira-PilotKira-Pilot left a comment

Choose a reason for hiding this comment

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

this is so well done!

AbhineetJain reacted with hooray emoji
@AbhineetJain
Copy link
ContributorAuthor

Merging this now. If there are more concerns, we can handle them in a separate PR! 🎉

@AbhineetJainAbhineetJain merged commit0d25e17 intomainJun 28, 2022
@AbhineetJainAbhineetJain deleted the abhineetjain/users-filter-ui branchJune 28, 2022 23:12
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Kira-PilotKira-PilotKira-Pilot approved these changes

@presleyppresleyppresleyp approved these changes

@EmyrkEmyrkAwaiting requested review from Emyrk

@f0sself0sselAwaiting requested review from f0ssel

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Allow for searching Users
4 participants
@AbhineetJain@Emyrk@presleyp@Kira-Pilot

[8]ページ先頭

©2009-2025 Movatter.jp