Skip to content

DT-108: Submit Progress Report Application #2879

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

Draft
wants to merge 15 commits into
base: develop
Choose a base branch
from
Draft

DT-108: Submit Progress Report Application #2879

wants to merge 15 commits into from

Conversation

snf2ye
Copy link
Contributor

@snf2ye snf2ye commented May 20, 2025

Addresses

Summary


Have you read Terra's Contributing Guide lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

Copy link
Contributor Author

@snf2ye snf2ye left a comment

Choose a reason for hiding this comment

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

Comments for reviewers

Comment on lines -1 to -8
export interface Collaborator {
uuid: string;
name: string;
eraCommonsId: string;
email: string;
title: string;
institution: string;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this type in favor of the "Collaborator" type in the main type file. This meant removing the "institution" field, which is not currently tracked in consent and we are moving away from tracking anyway. A corresponding change is made in the CollaboratorAddEdit component to no longer capture "institution".

Comment on lines +38 to +56
<div style={{ marginTop: '20px' }}>
<h4>Reasons for Project Closeout</h4>
<FormField
id={FormStateKey.CLOSEOUT_SUPPLEMENT}
type={FormFieldTypes.RADIOGROUP}
orientation="vertical"
options={[
{ text: 'The Requestor has completed his/her project', name: CloseOutSupplement.PROJECT_COMPLETED },
{ text: 'The Requestor has moved institutions (If the project will be continued in a new institution or by a new PI, they must 
go through Project Transfer)', name: CloseOutSupplement.REQUESTOR_MOVED_INSTITUTION },
{ text: 'The project is being transferred to a new Requestor at the same institution', name: CloseOutSupplement.PROJECT_TRANSFERRED },
{ text: 'The project is being superseded by a new project', name: CloseOutSupplement.PROJECT_SUPERSEDED }
]}
disabled={readOnly}
defaultValue={formState.closeoutSupplement}
onChange={({ key, value }: Partial<FormState>) => {
onFormChange({ [key]: value } as Partial<FormState>);
}}
/>
</div>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The back end currently expects a single value for the closeout field. So, this changes from a multi-select to a single select. We will revisit this when taking a closer look at the closeout process.

@@ -1,4 +1,4 @@
export interface Publication {
export interface PublicationOrPresentation {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed this to make it clearer when we are using the main "publication" type vs. the type that is now shared with presentation.

title: number;
uuid: number;
title: string
uuid: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed these types to match types in consent

Comment on lines +21 to +31
<FormField
id={FormStateKey.CLOSEOUT_YES_NO}
type={FormFieldTypes.YESNORADIOGROUP}
title='5.1 Closeouts'
description={<span>Are you ready to finish work on this project?</span>}
orientation='horizontal'
onChange={({ key, value }: Partial<FormState>) => {
onFormChange({ [key]: value } as Partial<FormState>);
}}
disabled={readOnly}
/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a yes/no radio button to the closeout section. Otherwise, we don't really have a way to clear out the radio button selection.

@snf2ye snf2ye changed the title DT-108 DT-108: Submit Progress Report Application May 20, 2025
@@ -39,7 +44,7 @@ export const ProgressReportApplication = ({ dar, datasets, readOnlyMode = true }
...(dar?.closeOutSupplement && {
closeoutYesNo: !!dar.closeOutSupplement
}),
}
};

const [formState, setFormState] = useState<FormState>(initialState);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The linter in my IDE is complaining about this because the initial state is actually the union of FormState and DataAccessRequest types.

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.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy