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

enhancement/add copyright year component #970

Merged
merged 4 commits into from
Jan 3, 2025

Conversation

adriangohjw
Copy link
Contributor

Problem

Currently the year is generated on build time

But ideally, we want it to be generated on runtime since we don't know when will agencies trigger a new build + it's easier than having to remember to trigger a new build for all sites every new year

Solution

Breaking Changes

  • Yes - this PR contains breaking changes
    • Details ...
  • No - this PR is backwards compatible

Improvements:

  • use client for the copyright and year

@adriangohjw adriangohjw added the enhancement New feature or request label Jan 2, 2025
@adriangohjw adriangohjw self-assigned this Jan 2, 2025
@adriangohjw adriangohjw requested a review from a team as a code owner January 2, 2025 03:32
@datadog-opengovsg
Copy link

datadog-opengovsg bot commented Jan 2, 2025

Datadog Report

Branch report: enhancement-add-copyright-year-component
Commit report: 289b96e
Test service: isomer-studio

✅ 0 Failed, 245 Passed, 36 Skipped, 53.16s Total Time
➡️ Test Sessions change in coverage: 1 no change

"use client"

export const ClientCopyrightYear = () => {
return <>&copy; {new Date().getFullYear()} </>
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I think the space should be part of Footer.tsx rather than here? At first glance it wasn't clear why there was an additional space here.

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 for catching this! changed it in 077edc1

@adriangohjw adriangohjw enabled auto-merge (squash) January 3, 2025 06:13
@adriangohjw adriangohjw merged commit aec2237 into main Jan 3, 2025
16 of 18 checks passed
@adriangohjw adriangohjw deleted the enhancement-add-copyright-year-component branch January 3, 2025 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants