Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions src/data/volunteers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,102 @@ export interface Volunteer {
}

export const volunteers: Volunteer[] = [
{
name: '丁文昊',
nickname: '止戈',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '丁欣',
nickname: '小丁',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '刘天栋',
nickname: 'Ted',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '刘智杰',
nickname: '小符',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '廖敬仪',
nickname: '',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '李佳欣',
nickname: '',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '李思颖',
nickname: 'Mable',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '李楠',
nickname: '楠楠',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '段延星',
nickname: '',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '王勇杰',
nickname: '大黄',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '臧鹏',
nickname: '大鹏',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
{
name: '赵文涵',
nickname: '文涵',
avatar: '/img//cblecker.png',
awardDate: '2025-12-06',
recommendation:
'年度优秀志愿者'
},
Comment on lines +13 to +105
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

All new volunteer entries have double slashes in the avatar path '/img//cblecker.png'. This should be '/img/cblecker.png' with a single slash to match the pattern used in existing volunteer entries.

Copilot uses AI. Check for mistakes.
{
name: '王玥敏',
nickname: '月饼',
Expand Down
3 changes: 2 additions & 1 deletion src/pages/community/cooperation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,14 @@ const cooperationStars2021 = [
]

const yearlyStars = [
{ year: '2023', stars: cooperationStars2025 },
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

There are now two entries in the yearlyStars array with year '2023'. Line 108 should have year '2025' to avoid duplicate year entries. This will cause issues with year selection logic since uniqueYears will contain duplicate '2023' entries and year '2025' will not be selectable despite having data.

Suggested change
{ year: '2023', stars: cooperationStars2025 },
{ year: '2025', stars: cooperationStars2025 },

Copilot uses AI. Check for mistakes.
{ year: '2023', stars: cooperationStars2023 },
{ year: '2022', stars: cooperationStars2022 },
{ year: '2021', stars: cooperationStars2021 }
]

export default function CooperationPage() {
const [selectedYear, setSelectedYear] = useState('2023')
const [selectedYear, setSelectedYear] = useState('2025')
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The selectedYear is initialized to '2025', but due to the bug in line 108 where year '2025' data is incorrectly labeled as '2023', this year won't exist in uniqueYears and the selectedStars fallback logic will incorrectly default to cooperationStars2023 instead of showing the 2025 data. This needs to be coordinated with fixing line 108.

Copilot uses AI. Check for mistakes.

const uniqueYears = useMemo(() => {
return yearlyStars.map(item => item.year).sort((a, b) => parseInt(b) - parseInt(a))
Expand Down
2 changes: 1 addition & 1 deletion src/pages/community/coscon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { yearlyStars, getStarsByYear } from '@/data/awards'
import styles from './index.module.css'

export default function COSConStarPage() {
const [selectedYear, setSelectedYear] = useState('2023')
const [selectedYear, setSelectedYear] = useState('2025')

const uniqueYears = useMemo(() => {
return yearlyStars.map(item => item.year).sort((a, b) => parseInt(b) - parseInt(a))
Expand Down
Loading