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

15538 Fixed restoration type layout and validation issues #735

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

severinbeauvais
Copy link
Collaborator

Issue #: bcgov/entity#15538

Description of changes:

  • app version = 5.11.20
  • imported latest shared Approval Type component
  • fixed approval type layout
  • refactored approval type validation
  • refactored restoration type validation
  • fixed restoration business name layout

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).

- imported latest shared Approval Type component
- fixed approval type layout
- refactored approval type validation
- refactored restoration type validation
- fixed restoration business name layout
@bcregistry-sre
Copy link
Collaborator

bcregistry-sre commented Sep 25, 2024

@@ -1,26 +1,24 @@
<template>
<div id="approval-type">
<div
class="section-container"
>
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 div (and class) double-wrapped the sub-component, so wasn't needed.

:noticeDate="getRestoration.noticeDate"
:applicationDate="getRestoration.applicationDate"
:invalidSection="invalidSection"
:validate="getShowErrors"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A previous fix implemented this prop to enable validation.

@@ -33,6 +31,9 @@ import { ApprovalType as ApprovalTypeShared } from '@bcrs-shared-components/appr
}
})
export default class ApprovalType extends Vue {
/** Whether this section is invalid. */
@Prop({ default: false }) readonly invalidSection!: boolean
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 now comes from the parent component instead of being computed here.

<div id="restoration-type">
<div
id="restoration-type"
:class="{ 'invalid-section': invalidSection }"
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 was previously in the parent component, but to make this consistent with the shared ApprovalType component, I moved it here.

box-shadow: inset 3px 0 0 $app-red;
border-top-left-radius: 0 !important;
border-bottom-left-radius: 0 !important;
}
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Sep 25, 2024

Choose a reason for hiding this comment

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

This is now done in the child components (as per comment above).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

See recent comments in ticket bcgov/entity#15538 for sample screenshots.

@bcgov bcgov deleted a comment from bcregistry-sre Sep 25, 2024
@severinbeauvais severinbeauvais merged commit 1b9dfdf into bcgov:main Sep 25, 2024
5 checks passed
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

4 participants