From cd37e0c6393b63599764ac3ff9619b1caa4ec92b Mon Sep 17 00:00:00 2001 From: Tae Soo Kim Date: Tue, 28 Oct 2025 19:12:16 +0900 Subject: [PATCH] Shuffle authors in frontpage's research themes --- src/app/homepage/ResearchThemesSection.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/homepage/ResearchThemesSection.tsx b/src/app/homepage/ResearchThemesSection.tsx index 165b6ff..e70fef7 100644 --- a/src/app/homepage/ResearchThemesSection.tsx +++ b/src/app/homepage/ResearchThemesSection.tsx @@ -3,7 +3,7 @@ import { Color, FontVariant } from '@/app/theme' import { Member } from '@/data/members' import { PUBLICATIONS, Publication, ResearchTopics, type ResearchTopicType } from '@/data/publications' import styled from '@emotion/styled' -import { uniq } from 'lodash' +import { uniq, shuffle } from 'lodash' import Image from 'next/image' import Link from 'next/link' import { Section, SectionHeader, Text } from './Styles' @@ -60,7 +60,9 @@ const GatherStatsByResearchTopic = () => { ) const filteredAuthors = topicAuthors.filter(entry => entry instanceof Object && entry.isAlumni !== true) as Member[] - statsByResearchTopic[researchTopicKey] = { numPublications, authors: filteredAuthors } + const shuffledAuthors = shuffle(filteredAuthors) + + statsByResearchTopic[researchTopicKey] = { numPublications, authors: shuffledAuthors } }) return statsByResearchTopic }