Skip to content

Comments

feat: CE-2095+2145 refresh of datepicker UX and support null/empty times in date picker#1422

Open
jon-funk wants to merge 21 commits intorelease/2.18from
CE-2095
Open

feat: CE-2095+2145 refresh of datepicker UX and support null/empty times in date picker#1422
jon-funk wants to merge 21 commits intorelease/2.18from
CE-2095

Conversation

@jon-funk
Copy link
Collaborator

@jon-funk jon-funk commented Feb 11, 2026

Description

Contains both changes for the date picker refresh (CE-2095) and allowing null/empty times on certain fields (CE-2145)

Code smell note: https://github.com/bcgov/nr-compliance-enforcement/pull/1422/changes#diff-9f73758bb48ae9ab1535796f060a02352736ceddf7e2ec02ad4e7c48dc17148cR4 has an omit extends as a shim workaround otherwise we'd need to release a new version of https://github.com/bcgov/nr-compliance-enforcement-common/ and impact all dev envs at once OR hand-release and tag a package version dedicated to this PR but we have no release process for that.

The large diff migration-complaint/test-only-migrations/R__data_complaints.sql is from the ordering & splitting change on the complaints table, this required the test-only mig be updated, otherwise fresh dev environments would not succeed with their test data migrations.

Fixes # (issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Further comments


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

jon-funk and others added 13 commits February 9, 2026 14:39
Co-authored-by: Alec Wilcox <alecwilcox@gmail.com>
Co-authored-by: team-wolverine-nrm-repo-updater[bot] <203337993+team-wolverine-nrm-repo-updater[bot]@users.noreply.github.com>
Co-authored-by: jon-funk <johnthomasfunk@gmail.com>
Co-authored-by: Dmitri <108112696+dk-bcps@users.noreply.github.com>
Co-authored-by: Mike Vesprini <mike@button.is>
Co-authored-by: Ryan Rondeau <nayr974@users.noreply.github.com>
Co-authored-by: team-wolverine-nrm-repo-updater[bot] <203337993+team-wolverine-nrm-repo-updater[bot]@users.noreply.github.com>
Co-authored-by: jon-funk <johnthomasfunk@gmail.com>
Co-authored-by: Ryan Rondeau <ryan_rondeau@live.ca>
Co-authored-by: Dmitri <108112696+dk-bcps@users.noreply.github.com>
Co-authored-by: Ryan Rondeau <nayr974@users.noreply.github.com>
Co-authored-by: Alec Wilcox <alecwilcox@gmail.com>
Co-authored-by: team-wolverine-nrm-repo-updater[bot] <203337993+team-wolverine-nrm-repo-updater[bot]@users.noreply.github.com>
Co-authored-by: jon-funk <johnthomasfunk@gmail.com>
Co-authored-by: Ryan Rondeau <ryan_rondeau@live.ca>
Co-authored-by: Dmitri <108112696+dk-bcps@users.noreply.github.com>
@jon-funk jon-funk changed the title feat: refresh of datepicker UX and support null/empty times in date picker feat: CE-2095 refresh of datepicker UX and support null/empty times in date picker Feb 12, 2026
@jon-funk jon-funk changed the title feat: CE-2095 refresh of datepicker UX and support null/empty times in date picker feat: CE-2095+2145 refresh of datepicker UX and support null/empty times in date picker Feb 13, 2026
const dateKey = startOfDay(report.actionedTimestamp).toISOString();
if (!acc[dateKey]) acc[dateKey] = { date: report.actionedTimestamp, reports: [] };
acc[dateKey].reports.push(report);
const actionedDateTime = (() => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's a lot of bespoke date time handling in each individual component, can this be moved into a couple utility functions for splitting and combining date parts with logic that can be shared across the app?

@afwilcox afwilcox changed the base branch from release/2.17 to release/2.18 February 19, 2026 20:13
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
12.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@nayr974
Copy link
Collaborator

nayr974 commented Feb 21, 2026

I fixed the build issue, am good with the code, and did some testing that all looked good but I'm now wondering if we need to make changes to handle the WebEOC logic that creates complaints.

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