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

172 feature reconfigure form signing approving and category logic #178

Conversation

kaiyangzheng
Copy link
Collaborator

Description

Update useForm hook to set todo, pending, and completed forms correctly:

Todo

  • Your turn to sign the form
  • You are the originator and the form is ready to be approved

Pending

  • Originator: forms that are still in progress of being signed
  • Member of chain: form that are still in the progress of being signed or awaiting approval

Completed

  • Approved forms that everyone can see in the chain

Update frontend to reflect needs approval status.

Motivation and Context

Reduce confusion of those categories and make it consistent with what client wants.

Closes [#172]

How has this been tested?

Created, signed, and approved forms with various edge cases.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Additional Context

This change assumes that we can only assign a user to sign a form once.

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mfa-form-automator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 2:34am

@@ -120,6 +122,7 @@ export const AuthProvider = ({ children }: any) => {
login,
logout,
}),
// eslint-disable-next-line react-hooks/exhaustive-deps
Copy link
Contributor

Choose a reason for hiding this comment

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

So many overrides 🫠

Copy link
Contributor

Choose a reason for hiding this comment

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

:fear:

Copy link
Contributor

@ahweigl ahweigl left a comment

Choose a reason for hiding this comment

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

🚀

@@ -120,6 +122,7 @@ export const AuthProvider = ({ children }: any) => {
login,
logout,
}),
// eslint-disable-next-line react-hooks/exhaustive-deps
Copy link
Contributor

Choose a reason for hiding this comment

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

:fear:

@kaiyangzheng kaiyangzheng merged commit c406fe6 into main Oct 23, 2024
7 checks passed
@kaiyangzheng kaiyangzheng deleted the 172-feature-reconfigure-form-signing-approving-and-category-logic branch October 23, 2024 19:12
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.

[FEATURE] Reconfigure todo, pending, and completed forms
3 participants