Skip to content

Fix torch history card date display and placeholder messaging#15886

Closed
minimalsm wants to merge 3 commits into
devfrom
hotfixTorchDates
Closed

Fix torch history card date display and placeholder messaging#15886
minimalsm wants to merge 3 commits into
devfrom
hotfixTorchDates

Conversation

@minimalsm
Copy link
Copy Markdown
Contributor

Fix 1: Redundant date display for current torchbearers

Problem: Currently, torch history cards display "From [date] to [date]" even when the torchbearer still holds the NFT. When someone is the current holder, both dates are identical, creating confusing and redundant text.

Solution: Conditionally render the date text based on isCurrentHolder prop:

Current holders: Show "From [date]" only
Previous holders: Show "From [date] to [date]" range

Fix 2: Generic placeholder messaging

Problem: All future torchbearer placeholders show the same generic "Coming soon!" message, providing no indication of when each person will receive the torch.

Solution: Replace generic messaging with specific dates showing when each torchbearer will receive the torch:

Torchbearer 1: "Coming 20th!"
Torchbearer 2: "Coming 21st!"
Torchbearer 3: "Coming 22nd!"
And so on...

image

@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 20, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 0a7d308
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/687dffc7dfc97a0008ec56ad
😎 Deploy Preview https://deploy-preview-15886--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 54 (no change from production)
Accessibility: 94 (no change from production)
Best Practices: 92 (no change from production)
SEO: 99 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment on lines +26 to +28
if (lastTwoDigits >= 11 && lastTwoDigits <= 13) {
return `${num}th`;
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

will never happen as num will range from 20 to 30

pettinarip
pettinarip previously approved these changes Jul 20, 2025
@pettinarip pettinarip changed the base branch from dev to master July 20, 2025 14:36
@pettinarip pettinarip dismissed their stale review July 20, 2025 14:36

The base branch was changed.

@pettinarip pettinarip changed the base branch from master to dev July 20, 2025 14:37
Comment thread app/[locale]/10years/_components/TorchHistorySwiper/index.tsx Outdated
Comment thread app/[locale]/10years/_components/TorchHistorySwiper/index.tsx Outdated
Co-authored-by: wackerow <54227730+wackerow@users.noreply.github.com>
@minimalsm
Copy link
Copy Markdown
Contributor Author

Closing in favour of #15900

@minimalsm minimalsm closed this Jul 21, 2025
@github-actions github-actions Bot added the abandoned This has been abandoned or will not be implemented label Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

abandoned This has been abandoned or will not be implemented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants