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: Improve group creation #171

Merged
merged 7 commits into from
Sep 20, 2024
Merged

feat: Improve group creation #171

merged 7 commits into from
Sep 20, 2024

Conversation

e-fisher
Copy link
Collaborator

This PR aims to improve group creation during recording.

  • Remove group form
  • Add "Create group" button below the requests, clicking it adds a new group and focuses names, allowing user to set a new name or keep the default one
  • Update clear action to delete created groups as well
  • Fix groups not being displayed in validator

Potential future improvements:

  • Add ability to delete group
  • Add ability to reset requests per group
CleanShot.2024-09-19.at.14.45.12.mp4

useClickAway(headerRef, () => {
if (!group.isEditing) return

handleSubmit(submit)()
})
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This custom hook would cause a race condition and disable edit mode when clicking on "add group" button, replacing it with the hook from react-use seems to solve the problem.

Copy link
Member

@Llandy3d Llandy3d left a comment

Choose a reason for hiding this comment

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

From the functionality point of view looks great 🚀

@e-fisher e-fisher merged commit 4a55d6c into main Sep 20, 2024
1 check passed
@e-fisher e-fisher deleted the feat/improve-group-creation branch September 20, 2024 13:05
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