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: Add submittions types to data model, types, and frontend, update intake state and activity status #24

Merged
merged 3 commits into from
Feb 5, 2024

Conversation

wilwong89
Copy link
Collaborator

@wilwong89 wilwong89 commented Feb 1, 2024

Description

Updated intake state and activity status values to title case from uppercase
Added new activity status "New"
Set default activity state to "New" on edit on frontend
Added new submission types to data model and types
Make frontend changes to allow editing new submission types
Added validation to frontend for submission types
Added new value "bcOnlineCompleted" to data model
Added checkbox for BC Online Completed to frontend

Types of changes

New feature (non-breaking change which adds functionality)

Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Changed enums and const util files to reflect new statuses
Made SubmissionsForm default activity state to 'New'.
modified:   frontend/src/components/form/Dropdown.vue
modified:   frontend/src/components/submission/SubmissionForm.vue
modified:   frontend/src/utils/constants.ts
modified:   frontend/src/utils/enums.ts
Copy link

codeclimate bot commented Feb 1, 2024

Code Climate has analyzed commit b0afeb9 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

Copy link

github-actions bot commented Feb 1, 2024

Coverage Report (Application)

Totals Coverage
Statements: 43.57% ( 61 / 140 )
Methods: 26.32% ( 5 / 19 )
Lines: 60.76% ( 48 / 79 )
Branches: 19.05% ( 8 / 42 )

Copy link

github-actions bot commented Feb 1, 2024

Coverage Report (Frontend)

Totals Coverage
Statements: 36.93% ( 212 / 574 )
Methods: 35.14% ( 39 / 111 )
Lines: 42.77% ( 136 / 318 )
Branches: 25.52% ( 37 / 145 )

@wilwong89 wilwong89 marked this pull request as ready for review February 1, 2024 23:13
@wilwong89 wilwong89 force-pushed the feat/submission-types branch from 1daec71 to b0afeb9 Compare February 2, 2024 00:37
@kyle1morel
Copy link
Collaborator

Preemptively approving - approved once the 500 on Submission load is fixed.

@@ -65,7 +66,12 @@ export default {
notes: input.notes,
user: input.user?.userId ? { connect: { userId: input.user.userId } } : disconnectRelation,
intakeStatus: input.intakeStatus,
applicationStatus: input.applicationStatus
applicationStatus: input.applicationStatus,
guidance: input.guidance ? input.guidance : false,
Copy link
Contributor

Choose a reason for hiding this comment

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

cant these just be guidance: input.guidance
the db field defaults to false.. the html form can submit false

@@ -39,9 +40,19 @@ const assigneeOptions: Ref<Array<User>> = ref([props.submission.user]);
// Default form values
const initialFormValues: any = {
...props.submission,
applicationStatus: props.submission.applicationStatus
? props.submission.applicationStatus
: APPLICATION_STATUS_LIST.NEW,
Copy link
Contributor

Choose a reason for hiding this comment

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

i think this can be removed now that youre adding NEW during chefs data import(?)

@TimCsaky TimCsaky merged commit 17398e9 into master Feb 5, 2024
19 of 20 checks passed
@kyle1morel kyle1morel deleted the feat/submission-types branch February 5, 2024 19:41
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