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

22416 - Update Staff Review Table (Staff Dashboard) #2962

Merged
merged 6 commits into from
Aug 15, 2024

Conversation

ArwenQin
Copy link
Contributor

Issue #:
bcgov/entity#22416

Description of changes:

  • Add a date picker to the Staff Reviews section (ie, the Continuation Review table)
  • Change the date filter URL parameters to "yyyy-mm-dd" format, and change the name to "startDate" and "endDate"
  • Change status selection display when there are multiple selections (display "Multiple Selected")
  • Set the default state for the 'Status' column to the first 3 options (Awaiting Review, Change Requested, and Resubmitted) selected.

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

@ArwenQin
Copy link
Contributor Author

ArwenQin commented Aug 14, 2024

Updated the date picker's position:
image

@severinbeauvais
Copy link
Collaborator

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-2962-1c75zaxm.web.app

left: 200%;
z-index: 1000;
width: 700px;
max-width: none;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this what other uses of the date picker do?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I added these position styles to make the date picker show in the proper position

Copy link
Collaborator

Choose a reason for hiding this comment

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

Have another look at how the DatePicker is used elsewhere, for example in the TransactionsDataTable. (You'll have to remove the v-if in StaffDashboardView.vue, line 167.) Here's how theirs looks with apparently no special styling:

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

There may be some CSS for the above in Transactions.vue (borders and labels).

I think the big difference is that the DatePicker above is outside the data table (so it's anchored differently).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I will update it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

How about removing the huge top margin?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean move it up a little and above the search field?
image

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's what I was wondering about. I think the Transactions section does that. It would prevent the date picker from overlapping the next section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this look better? I will check with Janis too.
image

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Collaborator

@severinbeauvais severinbeauvais left a comment

Choose a reason for hiding this comment

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

Is there a way to display the date range in the header, instead of "Custom"?

image

@ArwenQin
Copy link
Contributor Author

Is there a way to display the date range in the header, instead of "Custom"?

Yes, but may seems too long:
image

I saw other uses of the date picker shows "Custom". What do you think?


// The date picker position
.date-picker {
left: 40%;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move the date picker to the right

Copy link
Collaborator

Choose a reason for hiding this comment

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

If you don't do this, is is centered? Ask Janis if centered is ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it's centered, I will confirm with Janis
image

@severinbeauvais
Copy link
Collaborator

Is there a way to display the date range in the header, instead of "Custom"?
I saw other uses of the date picker shows "Custom". What do you think?

Ask Janis.

@severinbeauvais
Copy link
Collaborator

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-2962-1c75zaxm.web.app

Copy link
Collaborator

@severinbeauvais severinbeauvais left a comment

Choose a reason for hiding this comment

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

LGTM and remember to update the app version.

Copy link

@severinbeauvais
Copy link
Collaborator

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-2962-1c75zaxm.web.app

@severinbeauvais severinbeauvais merged commit 1ae31d1 into bcgov:main Aug 15, 2024
6 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.

4 participants