Skip to content

Commit 76ea93c

Browse files
authored
Merge branch 'ep2025' into ep2025-room-change
2 parents dc65d41 + 7917897 commit 76ea93c

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

src/components/sessions/filter.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import { Select } from "../form/select";
1212

1313
<form class="mb-12 filter-sessions">
1414
<div class="w-full mb-6">
15-
<Label htmlFor="search">Search</Label>
15+
<Label htmlFor="sessionSearch">Search</Label>
1616
<input
1717
type="text"
18-
id="search"
18+
id="sessionSearch"
1919
name="search"
2020
class="block w-full bg-transparent text-lg h-16 py-2 pr-16 pl-4 border-[3px] border-primary appearance-none focus:outline-none focus:border-black focus-visible:bg-white"
2121
placeholder="Search sessions..."
@@ -101,7 +101,7 @@ import { Select } from "../form/select";
101101
const trackSelect = form.querySelector<HTMLSelectElement>("#track");
102102
const typeSelect = form.querySelector<HTMLSelectElement>("#type");
103103
const levelSelect = form.querySelector<HTMLSelectElement>("#level");
104-
const searchInput = form.querySelector<HTMLInputElement>("#search");
104+
const searchInput = form.querySelector<HTMLInputElement>("#sessionSearch");
105105

106106
if (trackSelect) trackSelect.value = track;
107107
if (typeSelect) typeSelect.value = type;
@@ -130,7 +130,7 @@ import { Select } from "../form/select";
130130
const trackSelect = form.querySelector<HTMLSelectElement>("#track");
131131
const typeSelect = form.querySelector<HTMLSelectElement>("#type");
132132
const levelSelect = form.querySelector<HTMLSelectElement>("#level");
133-
const searchInput = form.querySelector<HTMLInputElement>("#search");
133+
const searchInput = form.querySelector<HTMLInputElement>("#sessionSearch");
134134

135135
const track = trackSelect?.value || "";
136136
const type = typeSelect?.value || "";
@@ -190,7 +190,7 @@ import { Select } from "../form/select";
190190
select.addEventListener("change", filterSessions);
191191
});
192192

193-
const searchInput = form.querySelector<HTMLInputElement>("#search");
193+
const searchInput = form.querySelector<HTMLInputElement>("#sessionSearch");
194194
if (searchInput) {
195195
searchInput.addEventListener("input", filterSessions);
196196
}

src/pages/session/[slug].astro

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const speakers = await getEntries(entry.data.speakers);
2525
2626
// Resolve session codes to session data
2727
const resolveSessions = (codes: string[]) =>
28-
codes.map((code) => sessions.find((s) => s?.data?.code === code));
28+
codes.map(code => sessions.find(s => s.data.code === code)!);
2929
3030
// Filter out sessions with room "Exhibit Hall"
3131
const filteredSessions = sessions.filter(
@@ -74,7 +74,7 @@ const nextSessionsOrdered = sameRoomNextSession
7474
<dd class="capitalize">{entry.data.session_type}</dd>
7575
<dt class="font-bold">Level:</dt>
7676
<dd class="capitalize">{entry.data.level}</dd>
77-
<!-- {
77+
{
7878
entry.data.room && (
7979
<>
8080
<dt class="font-bold">Room:</dt>
@@ -95,7 +95,7 @@ const nextSessionsOrdered = sameRoomNextSession
9595
</dd>
9696
</>
9797
)
98-
} -->
98+
}
9999
<dt class="font-bold">Duration:</dt>
100100
<dd>{entry.data.duration} minutes</dd>
101101
</dl>
@@ -148,8 +148,8 @@ const nextSessionsOrdered = sameRoomNextSession
148148
The speaker{speakers.length > 1 ? "s" : ""}
149149
</h2>
150150
{speakers.map((speaker) => (
151-
<div class="md:grid grid-cols-[260px_1fr] md:gap-6">
152-
{speaker.data.avatar ? (
151+
<div class={speaker.data.avatar ? "md:grid grid-cols-[260px_1fr] md:gap-6" : ""}>
152+
{speaker.data.avatar && (
153153
<div class="flex items-start">
154154
<div class="border-4 border-white rounded-lg shadow-lg inline-block mb-10">
155155
<Picture
@@ -161,10 +161,6 @@ const nextSessionsOrdered = sameRoomNextSession
161161
/>
162162
</div>
163163
</div>
164-
) : (
165-
<div class="flex items-start mb-4 invisible">
166-
<img src="" alt="" class="w-full max-w-sm mb-12" />
167-
</div>
168164
)}
169165
<div>
170166
<p class="mb-4">
@@ -185,7 +181,7 @@ const nextSessionsOrdered = sameRoomNextSession
185181
)
186182
}
187183

188-
<!-- {
184+
{
189185
(parallelSessions?.length ?? 0) > 0 ||
190186
(nextSessionsInAllRooms?.length ?? 0) > 0 ? (
191187
<>
@@ -232,7 +228,7 @@ const nextSessionsOrdered = sameRoomNextSession
232228
</div>
233229
</>
234230
) : null
235-
} -->
231+
}
236232
</footer>
237233
</article>
238234
</Layout>

0 commit comments

Comments
 (0)