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

New::DocForm updates: TypeScript, error handling, documentation, discourage long summaries #21

Merged
merged 16 commits into from
Mar 7, 2023

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Feb 2, 2023

Makes the following changes to the New::DocForm:

  • Replaces ad-hoc collaborator dropdown with PeopleSelect component
  • Gently discourages long summaries (see video)
  • Improves form recovery after a createDoc error (shows flashMessage; preserves formFields)
  • Converts class to TypeScript and adds documentation

Plus some renaming, for clarity :-)

CleanShot.2023-02-02.at.18.07.08.mp4

@jeffdaley jeffdaley changed the title Jeffdaley/new doc form New::DocForm updates: TypeScript, error handling, documentation, discourage long summaries Feb 2, 2023
@jeffdaley jeffdaley marked this pull request as ready for review February 2, 2023 23:08
@jeffdaley jeffdaley requested a review from a team as a code owner February 10, 2023 22:17
Comment on lines -1 to -4
export interface DocumentPerson {
email: string;
imgURL: string | null;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved to web/app/types/document.d.ts

}),
});

throw new Error();
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this for testing and should be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😅😬🫠 thanks for catching

@jeffdaley jeffdaley merged commit 1279411 into main Mar 7, 2023
@jeffdaley jeffdaley deleted the jeffdaley/new-doc-form branch March 7, 2023 21:13
anuragprafulla referenced this pull request in razorpay/hermes Jun 27, 2023
…scourage long summaries (#21)

* Type DocForm; Discourage long summaries; Cleanup

* Cleanup

* Rearrange interfaces

* Update yarn.lock

* Cleanup

* Refactor updateFormElements actions

* Refactor updateFormElements actions

* Add comment

* Update doc-form.ts
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.

None yet

2 participants