 
|
00f0c68478
|
fix: Display year for releases from previous years on website (#13276) (#13291)
### 🐛 Bug Fix
**Fixes #13276 - Website does not show year of releases**
### 📝 Description
Fixed the Twenty website to properly display release years for previous
year releases and standardized date formatting.
**Key Changes:**
- Show year for releases from previous years
- Abbreviate month names for consistent layout (e.g., "April" → "Apr")
- Added fallback to prevent runtime errors when no releases exist
### 🔧 Files Changed
- **`formatDisplayDate.ts` (new)** - Utility function for consistent
date formatting
- **`Release.tsx`** - Use utility function and improve CSS layout
- **`page.tsx`** - Add fallback for undefined `latestGithubRelease`
### 🧪 Example Output
| Before | After |
|--------|-------|
| `April 25th 2024` (missing year) | `Apr 25th 2024` |
| `April 25th 2025` | `Apr 25th` |
| Runtime error | Graceful fallback |
### � Screenshots
**Before & After:**
<img width="1055" height="778" alt="image"
src="https://github.com/user-attachments/assets/68f227ec-2b1f-486b-89a6-8c3d8058ba36"
/>
<img width="1055" height="778" alt="image"
src="https://github.com/user-attachments/assets/74ed84b3-3a65-4090-b371-a48c25740bbd"
/>
---
**Related Issue:** Closes #13276
---------
Co-authored-by: Félix Malfait <felix@twenty.com>
|
2025-07-29 18:58:49 +02:00 |
|