Skip to content

Commit 1c5287d

Browse files
Strehkclaude
andauthored
Add conference seats dashboard link (#394)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent f40fdc6 commit 1c5287d

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

messages/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,7 @@
12041204
"searchForUser": "UserID oder E-Mail",
12051205
"seat": "Platz",
12061206
"seats": "Plätze",
1207+
"seatsLinkDescription": "Gremien, Themen, vertretene Staaten und nichtstaatliche Akteure ansehen",
12071208
"seatsOccupied": "von {seats} Plätzen belegt",
12081209
"seedConference": "Konferenz anlegen",
12091210
"selectADate": "Datum auswählen",

messages/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,7 @@
12041204
"searchForUser": "UserID or Email",
12051205
"seat": "Seat",
12061206
"seats": "Seats",
1207+
"seatsLinkDescription": "View committees, topics, represented states, and non-state actors",
12071208
"seatsOccupied": "of {seats} seats occupied",
12081209
"seedConference": "Create Conference",
12091210
"selectADate": "Select Date",

src/lib/config/dashboardLinks.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,20 @@ export const dashboardLinks: DashboardLink[] = [
134134
showFor: ['delegation', 'singleParticipant'],
135135
isVisible: (ctx) => !!ctx.linkToPaperInbox && !!ctx.user,
136136
isDisabled: () => false
137+
},
138+
{
139+
id: 'seats',
140+
icon: 'person-seat',
141+
getTitle: () => m.conferenceSeats(),
142+
getDescription: () => m.seatsLinkDescription(),
143+
getHref: (ctx) => `/seats/${ctx.conferenceId}`,
144+
external: true,
145+
showFor: ['delegation', 'singleParticipant', 'supervisor'],
146+
isVisible: (ctx) =>
147+
ctx.conferenceState === 'PREPARATION' ||
148+
ctx.conferenceState === 'ACTIVE' ||
149+
ctx.conferenceState === 'POST',
150+
isDisabled: () => false
137151
}
138152
];
139153

src/lib/config/teamDashboardLinks.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ export const teamDashboardLinks: TeamDashboardLink[] = [
7979
external: true,
8080
isVisible: (ctx) => !!ctx.linkToPreparationGuide
8181
},
82+
{
83+
id: 'seats',
84+
icon: 'person-seat',
85+
getTitle: () => m.conferenceSeats(),
86+
getDescription: () => m.seatsLinkDescription(),
87+
getHref: (ctx) => `/seats/${ctx.conferenceId}`,
88+
external: true,
89+
isVisible: () => true
90+
},
8291
{
8392
id: 'appDocs',
8493
icon: 'circle-question',

0 commit comments

Comments
 (0)