Skip to content

Commit 1616379

Browse files
committed
fix: sync sidebar version with changelog (package.json → 1.2.3, derive version from CHANGELOG[0], fix duplicate 0.31.5 → 0.31.8)
1 parent 609f5d0 commit 1616379

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "monday",
33
"private": true,
4-
"version": "0.31.5",
4+
"version": "1.2.3",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/components/Sidebar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useState, useEffect } from 'react'
22
const LATEST_VERSION_URL = "https://raw.githubusercontent.com/unbug/monday/main/package.json"
33
import { BorderBeam } from 'border-beam'
4+
import { CHANGELOG } from '../lib/changelog'
45
import type { ChatSession } from '../types'
56
import type { Locale } from '../lib/i18n'
67
import { t } from '../lib/i18n'
@@ -115,7 +116,7 @@ export function Sidebar({
115116
const [dateFilter, setDateFilter] = useState<DateFilter>('all')
116117
const [navExpanded, setNavExpanded] = useState(false)
117118

118-
const [latestVersion, setLatestVersion] = useState<string>("0.31.5")
119+
const [latestVersion, setLatestVersion] = useState<string>(CHANGELOG[0]?.version ?? '1.2.3')
119120

120121
useEffect(() => {
121122
fetch(LATEST_VERSION_URL)

src/lib/changelog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export const CHANGELOG: ChangelogEntry[] = [
482482
],
483483
},
484484
{
485-
version: '0.31.5',
485+
version: '0.31.8',
486486
date: '2026-04-28',
487487
title: 'Code Arena — Recording & Video Export',
488488
description:
@@ -497,7 +497,7 @@ export const CHANGELOG: ChangelogEntry[] = [
497497
{ type: 'added', text: 'VP9 codec preference with video/webm fallback — MediaRecorder picks best available codec' },
498498
{ type: 'added', text: 'Recording controls CSS — dark terminal-style controls with pulse animation and disabled state' },
499499
{ type: 'added', text: 'Recording i18n — en/zh translations for record, recording, stop, download, fps, duration strings' },
500-
{ type: 'changed', text: 'Updated version to v0.31.5' },
500+
{ type: 'changed', text: 'Updated version to v0.31.8' },
501501
],
502502
},
503503
{

0 commit comments

Comments
 (0)