Skip to content

Use client side rendering for local dates#1014

Merged
humphd merged 1 commit intomainfrom
hydration-bug
Nov 28, 2025
Merged

Use client side rendering for local dates#1014
humphd merged 1 commit intomainfrom
hydration-bug

Conversation

@theoforger
Copy link
Contributor

@theoforger theoforger commented Nov 28, 2025

Description

Currently the rendering of certificate valid dates happens on the server side, which could potentially lead to hydration issue and it might be the cause of #845 and #1009. This pull request move the rendering logic to the client side and attempts to re-enable e2e testing.

Update: There seem to be some Prisma-related problem that's also failing the test in addition to the hydration issue. More investigation needed

@theoforger theoforger force-pushed the hydration-bug branch 3 times, most recently from e0268c1 to 7a77c4f Compare November 28, 2025 04:17
@humphd
Copy link
Contributor

humphd commented Nov 28, 2025

Should we do the date change and separate from the e2e stuff, so we can land that bit?

@theoforger
Copy link
Contributor Author

Should we do the date change and separate from the e2e stuff, so we can land that bit?

@humphd I was thinking the same. The only thing is we won't be able to verify the effectiveness in CI. If you're okay with that I can take out the e2e test for now 👍

@humphd
Copy link
Contributor

humphd commented Nov 28, 2025

Yeah, let's get your research shipped at least. Tests can come later.

@theoforger theoforger marked this pull request as ready for review November 28, 2025 15:07
@theoforger theoforger requested a review from humphd November 28, 2025 15:13
humphd
humphd previously approved these changes Nov 28, 2025
Copy link
Contributor

@humphd humphd 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. A couple of suggestions. Thanks for jumping on this, I appreciate the help maintaining things.

@theoforger
Copy link
Contributor Author

Of course! I enjoyed working on this project. Glad to see it picked back up :)

@theoforger theoforger requested a review from humphd November 28, 2025 15:52
@humphd humphd merged commit 4524040 into main Nov 28, 2025
7 checks passed
@humphd humphd deleted the hydration-bug branch November 28, 2025 16:35
@humphd
Copy link
Contributor

humphd commented Nov 28, 2025

Confirmed fixed on staging:

Screenshot 2025-11-28 at 12 18 07 PM

humphd added a commit that referenced this pull request Jan 28, 2026
* use client side rendering for local dates (#1014)

* Update staging SAML metadata with new SAML signing certificate (#1016)

* Update staging SAML metadata with new SAML signing certificate

* Updated idp-metadata-dev.xml and idp-metadata-production.xml

* Revert idp-metadata-dev.xml back to original

---------

Co-authored-by: Mehrdad Ziaei <mehrdad.ziaei@senecapolytechnic.ca>

---------

Co-authored-by: TheoForger <theoforger@proton.me>
Co-authored-by: mehrdadziaei <53977875+mehrdadziaei@users.noreply.github.com>
Co-authored-by: Mehrdad Ziaei <mehrdad.ziaei@senecapolytechnic.ca>
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.

2 participants