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

Vuetify Fixes for MHR and Misc Features #1615

Conversation

cameron-eyds
Copy link
Collaborator

Issue #: /bcgov/entity#18391

Description of changes:

  • Following the patterns for PPR, continued the refactors into MHR Related flows.

  • Replaces v-mask with maska package for our phone number masking, as a global directive

  • Registration Table refactors - leverage virtual scroller so we can pull in the entirety of the registration data set and prevent having pseudo pagination. Improves performance greatly for filtering and swapping tabs.

  • Minor fixes to svg styling for stepper

  • Flows covered in this ticket:
    MHR Registrations Table
    MHR Registration Flows
    User Access Flows
    MHR Unit Notes
    MHR Information Flows
    Exemption Flow

Notes:

  • Keep in mind this was functionality first, so there will be some minor UX or stylings i'm sure i missed.
  • We are also still missing a Date Picker, so there is some errors where that component is referenced (Future Ticket)

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

@cameron-eyds cameron-eyds self-assigned this Nov 6, 2023
Copy link
Collaborator

@doug-lovett doug-lovett left a comment

Choose a reason for hiding this comment

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

Looks great Cameron, a fair bit of cleanup and refactoring.

@cameron-eyds
Copy link
Collaborator Author

Looks great Cameron, a fair bit of cleanup and refactoring.

Thank you!

Copy link
Collaborator

@dimak1 dimak1 left a comment

Choose a reason for hiding this comment

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

Looks great! Good one 👏🏻

Just curious if it is required to add dashes to the props of the components? Maybe we can update the lint rule. The reason is that it's easier to search for it in files.

@@ -8,6 +8,7 @@ import { getVueRouter } from '@/router'
import { getPiniaStore } from '@/store'
import * as Sentry from '@sentry/vue'
import vuetify from './plugins/vuetify'
import { vMaska } from 'maska'
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍🏻

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Super easy replacement. Defined globally, so we can use in any template, just need to import basically the mask config. That being said, we don't really mask anything but phone numbers but the options there :)

Copy link
Collaborator

@dimak1 dimak1 Nov 7, 2023

Choose a reason for hiding this comment

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

If we use just one mask (for phone) do we even need this package? On the other hand, it is small and has no additional dependencies so maybe we can keep it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I suppose its a nice option for future. The package is pretty small and very easy to implement/maintain.

@@ -10,10 +10,10 @@ export const defaultFlagSet: LDFlagSet = {
'search-registration-number': true,
'search-serial-number': true,
'mhr-ui-enabled': true, // Mhr Search - default true: Should remove from codebase
'mhr-registration-enabled': false, // Enables MHR table tab
'mhr-transfer-enabled': false, // Enables changes to base MHR Home Owners within the MHR Information flow
'mhr-registration-enabled': true, // Enables MHR table tab
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we permanently enabling these now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not permanently, no, just left for ease of development.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, it would make it easier, so I don't have to revert these changes each time I rebase :)

@cameron-eyds
Copy link
Collaborator Author

Looks great! Good one 👏🏻

Just curious if it is required to add dashes to the props of the components? Maybe we can update the lint rule. The reason is that it's easier to search for it in files.

@dimak1 Great point for sure!
It was recommended by the linter as you've already deduced (ie it was the basic community standards) but i totally agree, this might be something we want to override.
Your reason is alone is a great reason to do so.
Will 100% do this as part of the final linting sweep, will include as part of the unit testing ticket scope.

@dimak1
Copy link
Collaborator

dimak1 commented Nov 7, 2023

@cameron-eyds great, yea that would be good if we are in agreement (about overriding the lint rule). So do we need to go back (in final lint sweep) and update the names to remove the dashes?

@cameron-eyds
Copy link
Collaborator Author

@cameron-eyds great, yea that would be good if we are in agreement (about overriding the lint rule). So do we need to go back (in final lint sweep) and update the names to remove the dashes?

I believe (am hopeful) the editor will take care of this, once the rule is overridden.
If not, i will adjust the rules and following the lint issues to fix alongside the other misc lint items.

@cameron-eyds
Copy link
Collaborator Author

@dimak1 Set up some additional linting rules and also helped identify certain vue warnings as errors.
In doing so, it helps the auto linter fix some of said issues.
Reverted all props and @ events to camelCase and put in some lint rules to enforce that.

@dimak1
Copy link
Collaborator

dimak1 commented Nov 8, 2023

@dimak1 Set up some additional linting rules and also helped identify certain vue warnings as errors. In doing so, it helps the auto linter fix some of said issues. Reverted all props and @ events to camelCase and put in some lint rules to enforce that.

@cameron-eyds thank you for doing that!

@dimak1
Copy link
Collaborator

dimak1 commented Nov 8, 2023

@cameron-eyds since we are on linter topic, maybe we could also look into prettier as well, just at the high level. Because I stopped using it a long time ago, since it was causing conflicts between other devs (I know Orel wasn't using it either because of it). Maybe it would be a good opportunity for all of us start using an external prettier config, so we don't have conflicts. By no means I want to increase the scope further, just putting it out here...

@cameron-eyds
Copy link
Collaborator Author

@cameron-eyds since we are on linter topic, maybe we could also look into prettier as well, just at the high level. Because I stopped using it a long time ago, since it was causing conflicts between other devs (I know Orel wasn't using it either because of it). Maybe it would be a good opportunity for all of us start using an external prettier config, so we don't have conflicts. By no means I want to increase the scope further, just putting it out here...

Absolutely, another great point!
Lets make a note to have a closer look at that.

Lots to do :) Just need to find the scope to do so, i think now is a great time to do it though, i'll give it a go in the Unit Test/Clean up Ticket.

@cameron-eyds cameron-eyds merged commit 37365eb into bcgov:Vue3-Upgrade-Feature-Branch Nov 8, 2023
cameron-eyds added a commit to cameron-eyds/ppr that referenced this pull request Nov 8, 2023
* Mhr Registrations Happy Path

* Ongoing Registration Table Improvements

* User access Start, some more table clean up

* User Access Fixes + more table updates

* Cleaned up Tables Sorting

* Further Transfer and Unit Note Adjustments

* Masking fixes and replacements

* Date Pickers and misc styling adjustments

* Lint Sweeps and camelCase enforcement

* Reg Table Fix and command revert

* Further DatePicker Updates
cameron-eyds added a commit to cameron-eyds/ppr that referenced this pull request Nov 8, 2023
* Mhr Registrations Happy Path

* Ongoing Registration Table Improvements

* User access Start, some more table clean up

* User Access Fixes + more table updates

* Cleaned up Tables Sorting

* Further Transfer and Unit Note Adjustments

* Masking fixes and replacements

* Date Pickers and misc styling adjustments

* Lint Sweeps and camelCase enforcement

* Reg Table Fix and command revert

* Further DatePicker Updates
cameron-eyds added a commit to cameron-eyds/ppr that referenced this pull request Nov 20, 2023
* Mhr Registrations Happy Path

* Ongoing Registration Table Improvements

* User access Start, some more table clean up

* User Access Fixes + more table updates

* Cleaned up Tables Sorting

* Further Transfer and Unit Note Adjustments

* Masking fixes and replacements

* Date Pickers and misc styling adjustments

* Lint Sweeps and camelCase enforcement

* Reg Table Fix and command revert

* Further DatePicker Updates
cameron-eyds added a commit to cameron-eyds/ppr that referenced this pull request Nov 20, 2023
* Mhr Registrations Happy Path

* Ongoing Registration Table Improvements

* User access Start, some more table clean up

* User Access Fixes + more table updates

* Cleaned up Tables Sorting

* Further Transfer and Unit Note Adjustments

* Masking fixes and replacements

* Date Pickers and misc styling adjustments

* Lint Sweeps and camelCase enforcement

* Reg Table Fix and command revert

* Further DatePicker Updates
cameron-eyds added a commit that referenced this pull request Nov 20, 2023
* Vue3 Build (#1594)

* Vue3/Vuetify3/Vite-Build

* wip: Up to Searches

* wip: Search Features

* Wip: PPR Search Done - Onto Mhr Search Results

* Refactors generally completed on PPR/MHR Searches and history

* CI Updates

* update dockerfil

* revert docker file udpates

* docker change reverse

* Docker update

* docker node version update

* last attempt at ci build

* vue-affix removal

* Lint Fixes

* lint config updates

* Modernized Linting for Vue and Typescript -- Applied non functional fixes

* Updated vue declaration

* Vuetify and component updates - PRR (#1609)

* base dialog and Staff Payment instances updated

* ongoing PPR Table work

* Ongoin PPR Registrations/Amendment updates

* Ongoing PPR Reg - Includes stepper, footers, Bus Search, Base Address

* Ppr Registrations Happy Path

* Chips and other misc fixes for Amendments

* Vuetify Fixes for MHR and Misc Features (#1615)

* Mhr Registrations Happy Path

* Ongoing Registration Table Improvements

* User access Start, some more table clean up

* User Access Fixes + more table updates

* Cleaned up Tables Sorting

* Further Transfer and Unit Note Adjustments

* Masking fixes and replacements

* Date Pickers and misc styling adjustments

* Lint Sweeps and camelCase enforcement

* Reg Table Fix and command revert

* Further DatePicker Updates

* ViTest: Unit Testing Setup/Config/Utils and Ongoing Refactoring (#1623)

* Ongoing Unit Test fixes

* Ongoing PPR Test fixes - Includes base setup - solves most complexity - now test fixes

* more test config updates and unit test fixes

* button-footer rework

* Further Testing updates - Up to Debtors

* continued testing updates DischargeReg

* Tests up to EditTrust and more cleanup

* PR CleanUP

* Few more tests - up to FeeSummary

* FeeSummary test

* Lint update

* fee summary file clean up

* Sync Clean Up

* Ongoing test work

* Delete .idea directory
cameron-eyds added a commit to cameron-eyds/ppr that referenced this pull request Dec 4, 2023
* Vue3 Build (bcgov#1594)

* Vue3/Vuetify3/Vite-Build

* wip: Up to Searches

* wip: Search Features

* Wip: PPR Search Done - Onto Mhr Search Results

* Refactors generally completed on PPR/MHR Searches and history

* CI Updates

* update dockerfil

* revert docker file udpates

* docker change reverse

* Docker update

* docker node version update

* last attempt at ci build

* vue-affix removal

* Lint Fixes

* lint config updates

* Modernized Linting for Vue and Typescript -- Applied non functional fixes

* Updated vue declaration

* Vuetify and component updates - PRR (bcgov#1609)

* base dialog and Staff Payment instances updated

* ongoing PPR Table work

* Ongoin PPR Registrations/Amendment updates

* Ongoing PPR Reg - Includes stepper, footers, Bus Search, Base Address

* Ppr Registrations Happy Path

* Chips and other misc fixes for Amendments

* Vuetify Fixes for MHR and Misc Features (bcgov#1615)

* Mhr Registrations Happy Path

* Ongoing Registration Table Improvements

* User access Start, some more table clean up

* User Access Fixes + more table updates

* Cleaned up Tables Sorting

* Further Transfer and Unit Note Adjustments

* Masking fixes and replacements

* Date Pickers and misc styling adjustments

* Lint Sweeps and camelCase enforcement

* Reg Table Fix and command revert

* Further DatePicker Updates

* ViTest: Unit Testing Setup/Config/Utils and Ongoing Refactoring (bcgov#1623)

* Ongoing Unit Test fixes

* Ongoing PPR Test fixes - Includes base setup - solves most complexity - now test fixes

* more test config updates and unit test fixes

* button-footer rework

* Further Testing updates - Up to Debtors

* continued testing updates DischargeReg

* Tests up to EditTrust and more cleanup

* PR CleanUP

* Few more tests - up to FeeSummary

* FeeSummary test

* Lint update

* fee summary file clean up

* Sync Clean Up

* Ongoing test work

* Delete .idea directory
cameron-eyds added a commit that referenced this pull request Dec 8, 2023
* Ongoing PPR Unit testing (#1626)

* Vue3 Build (#1594)

* Vue3/Vuetify3/Vite-Build

* wip: Up to Searches

* wip: Search Features

* Wip: PPR Search Done - Onto Mhr Search Results

* Refactors generally completed on PPR/MHR Searches and history

* CI Updates

* update dockerfil

* revert docker file udpates

* docker change reverse

* Docker update

* docker node version update

* last attempt at ci build

* vue-affix removal

* Lint Fixes

* lint config updates

* Modernized Linting for Vue and Typescript -- Applied non functional fixes

* Updated vue declaration

* Vuetify and component updates - PRR (#1609)

* base dialog and Staff Payment instances updated

* ongoing PPR Table work

* Ongoin PPR Registrations/Amendment updates

* Ongoing PPR Reg - Includes stepper, footers, Bus Search, Base Address

* Ppr Registrations Happy Path

* Chips and other misc fixes for Amendments

* Vuetify Fixes for MHR and Misc Features (#1615)

* Mhr Registrations Happy Path

* Ongoing Registration Table Improvements

* User access Start, some more table clean up

* User Access Fixes + more table updates

* Cleaned up Tables Sorting

* Further Transfer and Unit Note Adjustments

* Masking fixes and replacements

* Date Pickers and misc styling adjustments

* Lint Sweeps and camelCase enforcement

* Reg Table Fix and command revert

* Further DatePicker Updates

* ViTest: Unit Testing Setup/Config/Utils and Ongoing Refactoring (#1623)

* Ongoing Unit Test fixes

* Ongoing PPR Test fixes - Includes base setup - solves most complexity - now test fixes

* more test config updates and unit test fixes

* button-footer rework

* Further Testing updates - Up to Debtors

* continued testing updates DischargeReg

* Tests up to EditTrust and more cleanup

* PR CleanUP

* Few more tests - up to FeeSummary

* FeeSummary test

* Lint update

* fee summary file clean up

* Sync Clean Up

* Ongoing test work

* Delete .idea directory

* PPR Unit Testing Part 3 (#1631)

* Ongoing tests: nearly complete

* Only Table row and reg wrapper to complete

* setup adjustments

* Reg Wrapper and Fetching updates

* ppr testing finalized

* jest clean up and terminal clean up

* Update MHR unit tests - Part 1 (#1630)

Update unit tests

* Vue Fold in Prep: Linting Fixes  (#1633)

* ongoing Linting

* Lint Fixes

* no gutters update

* MakeModel Test Fix

* MHR Test Fixes, Misc UI fixes (#1636)

* Test Updates, Misc UI fixes

* ts config clean up

* Update Unit Tests - Part 2 (#1635)

* Further updated to unit tests

* More unit test updates

* Further unit test updates

* More unit test updates

* Fix errors in Dashboard test by mocking api calls

* Fix Signout test from error

* Fix some of Typescript errors

* 17701 Misc MHR Clean Up (#1638)

* Misc Ui clean up

* remove dev code

* remove more dev code

* Fixes after Rebase

* Fix unit tests, small cleanup (#1640)

* Delay app mount to allow for auth data (#1641)

* Delay app mount to allow for auth data

* spacing fix

* optional chain doc for testing env

* linting fixes

* test fix and spelling correction

* Console cleanup

* Fix Lien Alert message for QS (#1643)

* Fix Lien Alert message for QS

* Version update

* SbcCC Version Updates + Lien/Locked Updates (#1645)

* Authentication Flow updates

* minor syntax fix and error handling

* Remove extra console

* RL Collateral Selector fix

* Axios version and interceptor upgrades (#1646)

* sbc-cc updates (for axios V) and axios interceptor updates

* Version bump

* Fix Lien Alert msg (#1648)

* Home Owners styling and Transfer Bugs (#1649)

* Home Owners Styling and Bug fixes

* Pr Updates

---------

Co-authored-by: Dima K <dima1086@hotmail.com>
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