Skip to content

Commit c89646e

Browse files
authored
feat: Agenda proposed badge (ietf-tools#8164)
1 parent b65a37b commit c89646e

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

client/agenda/AgendaScheduleList.vue

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@
8383
template(#trigger)
8484
span.badge.is-bof BoF
8585
span #[a(href='https://www.ietf.org/how/bofs/', target='_blank') Birds of a Feather] sessions (BoFs) are initial discussions about a particular topic of interest to the IETF community.
86+
n-popover(
87+
v-if='item.isProposed'
88+
trigger='hover'
89+
:width='250'
90+
)
91+
template(#trigger)
92+
span.badge.is-proposed Proposed
93+
span #[a(href='https://www.ietf.org/process/wgs/', target='_blank') Proposed WGs] are groups in the process of being chartered. If the charter is not approved by the IESG before the IETF meeting, the session may be canceled.
8694
.agenda-table-note(v-if='item.note')
8795
i.bi.bi-arrow-return-right.me-1
8896
span {{item.note}}
@@ -468,6 +476,7 @@ const meetingEvents = computed(() => {
468476
// groupParentName: item.groupParent?.name,
469477
icon,
470478
isBoF: item.isBoF,
479+
isProposed: item.isProposed,
471480
isSessionEvent: item.type === 'regular',
472481
links,
473482
location: item.location,
@@ -1012,10 +1021,25 @@ onBeforeUnmount(() => {
10121021
word-wrap: break-word;
10131022
}
10141023
1015-
.badge.is-bof {
1016-
background-color: $teal-500;
1024+
.badge {
10171025
margin: 0 8px;
10181026
1027+
&.is-bof {
1028+
background-color: $teal-500;
1029+
1030+
@at-root .theme-dark & {
1031+
background-color: $teal-700;
1032+
}
1033+
}
1034+
1035+
&.is-proposed {
1036+
background-color: $gray-500;
1037+
1038+
@at-root .theme-dark & {
1039+
background-color: $gray-700;
1040+
}
1041+
}
1042+
10191043
@media screen and (max-width: $bs5-break-md) {
10201044
width: 30px;
10211045
display: block;

ietf/meeting/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,7 @@ def agenda_extract_schedule (item):
17861786
"type": item.session.type.slug,
17871787
"purpose": item.session.purpose.slug,
17881788
"isBoF": item.session.group_at_the_time().state_id == "bof",
1789+
"isProposed": item.session.group_at_the_time().state_id == "proposed",
17891790
"filterKeywords": item.filter_keywords,
17901791
"groupAcronym": item.session.group_at_the_time().acronym,
17911792
"groupName": item.session.group_at_the_time().name,

0 commit comments

Comments
 (0)