From 2eefad74cf5ed231af8bb52bc7233d1fe6a95915 Mon Sep 17 00:00:00 2001 From: hanabi Date: Sun, 20 Nov 2022 15:35:23 -0500 Subject: [PATCH 1/2] chore: gitignore redis' dump.rdb --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 20a948a..ae27ec4 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ node_modules .output .env dist +dump.rdb From 8a9e84290159fc56650ade064963b2c5bbd9b1a1 Mon Sep 17 00:00:00 2001 From: hanabi Date: Sun, 20 Nov 2022 16:05:51 -0500 Subject: [PATCH 2/2] feat: u/[user] members list --- frontend/pages/u/[user]/index.tsx | 49 ++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 7 deletions(-) diff --git a/frontend/pages/u/[user]/index.tsx b/frontend/pages/u/[user]/index.tsx index ef8ce0c..422a631 100644 --- a/frontend/pages/u/[user]/index.tsx +++ b/frontend/pages/u/[user]/index.tsx @@ -1,7 +1,7 @@ import { GetServerSideProps } from "next"; import Head from "next/head"; import fetchAPI from "../../../lib/fetch"; -import { Field, Name, Pronoun, User, WordStatus } from "../../../lib/types"; +import { Field, Name, PartialMember, Pronoun, User, WordStatus } from "../../../lib/types"; import ReactMarkdown from "react-markdown"; import { userState } from "../../../lib/state"; import { useRecoilValue } from "recoil"; @@ -19,16 +19,17 @@ import Card from "../../../components/Card"; interface Props { user: User; + partialMembers: PartialMember[]; } -export default function Index({ user }: Props) { +export default function Index({ user, partialMembers }: Props) { return ( <> {`@${user.username} - pronouns.cc`} -
+
+ + {partialMember.display_name ?? partialMember.name} + + + )} + +
+ ); +} + function UserAvatar({ user }: { user: User }) { return ( user.avatar_urls && user.avatar_urls.length !== 0 ? (