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

hosts drafts #442

Merged
merged 6 commits into from
Jan 9, 2025
Merged

hosts drafts #442

merged 6 commits into from
Jan 9, 2025

Conversation

kialj876
Copy link
Collaborator

@kialj876 kialj876 commented Jan 8, 2025

Issue:

Description of changes:

  • just waiting on delete draft endpoint All set

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the BC Registry and Digital Services BSD 3-Clause License

Signed-off-by: Kial Jinnah <[email protected]>
@kialj876 kialj876 requested a review from deetz99 January 8, 2025 20:33
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

with 3 extra buttons I needed to update the styling for smaller screens

example:
Screenshot 2025-01-08 at 3 36 05 PM
Screenshot 2025-01-08 at 3 35 44 PM

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-442-q6k9hp9k.web.app

:icon="button.icon"
@click="button.action()"
/>
<div>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wrapped the button in a div to prevent it growing with the width of the row

Copy link
Collaborator Author

@kialj876 kialj876 Jan 8, 2025

Choose a reason for hiding this comment

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

examples of new buttons / styling on big + small screens:
big screen
Screenshot 2025-01-08 at 3 39 35 PM
drop down
Screenshot 2025-01-08 at 3 44 12 PM
smaller screen
Screenshot 2025-01-08 at 3 40 24 PM

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-442-oal1esie.web.app

@use '@vuepic/vue-datepicker/dist/main.css' as *;
@use 'tailwindcss/base' as *;
@use 'tailwindcss/components' as *;
@use 'tailwindcss/utilities' as *;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@import depreciated

} else {
selectedCountry.value = {
callingCode: countryCallingCode.value,
label: `+${countryCallingCode.value}`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

when loading from a draft we need this because the api doesn't save the iso2 for the phone number. Was resulting in weird functionality when re-editing an existing person with a phone number

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

alternatively we could just have these in a util like before. I like this a bit more because I think it's clearer where the 'buttonControl' functionality lives

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved to composable

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

was able to remove this and build successfully (there was some weird issue before where we needed this component defined in each layer otherwise it would give a build error)

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-442-oal1esie.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-platform-dev--pr-442-4zrdrl5t.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-strata-hotel-dev--pr-442-727uskx8.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-442-q6k9hp9k.web.app

Signed-off-by: Kial Jinnah <[email protected]>
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-442-oal1esie.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-strata-hotel-dev--pr-442-727uskx8.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-442-q6k9hp9k.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-platform-dev--pr-442-4zrdrl5t.web.app

Signed-off-by: Kial Jinnah <[email protected]>
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-strata-hotel-dev--pr-442-727uskx8.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-442-oal1esie.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-platform-dev--pr-442-4zrdrl5t.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-442-q6k9hp9k.web.app

@kialj876 kialj876 marked this pull request as ready for review January 9, 2025 17:11
async function deleteDraft (row: any) {
try {
deleting.value = true
row.class = 'bg-red-50 animate-pulse'
Copy link
Collaborator

Choose a reason for hiding this comment

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

slick

? row.address.unitNumber + '-'
: ''}${row.address.streetNumber} ${row.address.streetName}, ${row.address.city}`
: '',
number: row.applicationNumber
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not seeing number as a prop in the locale string?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

Copy link
Collaborator

@deetz99 deetz99 left a comment

Choose a reason for hiding this comment

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

Looks pretty good!

Only concern is on that aria label still. Maybe something like
btn.resumeDraftAria: 'Resume Draft for {number}'. ?

Also need to bump version for all apps.

Great work 👍

@kialj876
Copy link
Collaborator Author

kialj876 commented Jan 9, 2025

Looks pretty good!

Only concern is on that aria label still. Maybe something like btn.resumeDraftAria: 'Resume Draft for {number}'. ?

Also need to bump version for all apps.

Great work 👍

Oh oops yeah good catch

Signed-off-by: Kial Jinnah <[email protected]>
Copy link
Collaborator

@deetz99 deetz99 left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-strata-hotel-dev--pr-442-727uskx8.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-442-oal1esie.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-platform-dev--pr-442-4zrdrl5t.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-442-q6k9hp9k.web.app

Signed-off-by: Kial Jinnah <[email protected]>
Copy link

sonarqubecloud bot commented Jan 9, 2025

@kialj876 kialj876 merged commit d37eb5b into bcgov:main Jan 9, 2025
43 checks passed
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-examiner-dev--pr-442-oal1esie.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-platform-dev--pr-442-4zrdrl5t.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-strata-hotel-dev--pr-442-727uskx8.web.app

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-442-q6k9hp9k.web.app

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