Skip to content

Commit e0fdf99

Browse files
committed
wrapping up changes for 2026 until CSC ends
1 parent 0fd08de commit e0fdf99

4 files changed

Lines changed: 12 additions & 41 deletions

File tree

client/src/conf/videoRelease.ts

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { useEffect, useState } from "react";
21
import agendaData from "../pages/conf/agenda.json";
32

43
// Videos become clickable on 2026-04-28 1:30 PM PDT (PDT = UTC-7 → 20:30 UTC).
@@ -55,43 +54,15 @@ export const getVideoUrlForSpeaker = (slug: string): string | undefined => {
5554
};
5655

5756
/**
58-
* Returns true once the shared release time has passed. The value is `false`
59-
* during SSR/initial render to avoid hydration mismatch, then flips to `true`
60-
* on the client if applicable. Re-checked every minute.
61-
*
62-
* Supports `?releaseNow` or `?streamNow` (case-insensitive, value optional;
63-
* `0`/`false` opts out) to force-release for testing/previewing.
57+
* Post-event: time-based gating is suspended. Both hooks now always return
58+
* `true` so the site is permanently in its post-event state (videos clickable,
59+
* stream section shows the thank-you / recording card, no countdown, no
60+
* "We're live" indicator). The timestamp constants and `hasPreviewParam`
61+
* helper are kept in case time-gating needs to be re-enabled for a future
62+
* event.
6463
*/
65-
export const useVideoReleased = (): boolean => {
66-
const [released, setReleased] = useState(false);
67-
useEffect(() => {
68-
const forceReleased = hasPreviewParam(["releaseNow", "streamNow"]);
69-
const check = () =>
70-
setReleased(forceReleased || Date.now() >= VIDEO_RELEASE_TIMESTAMP);
71-
check();
72-
const interval = window.setInterval(check, 60_000);
73-
return () => window.clearInterval(interval);
74-
}, []);
75-
return released;
76-
};
77-
78-
/**
79-
* Returns true once the live stream release time has passed. SSR-safe.
80-
* Supports `?streamNow` or `?releaseNow` (case-insensitive, value optional;
81-
* `0`/`false` opts out) for preview.
82-
*/
83-
export const useStreamReleased = (): boolean => {
84-
const [released, setReleased] = useState(false);
85-
useEffect(() => {
86-
const forceReleased = hasPreviewParam(["streamNow", "releaseNow"]);
87-
const check = () =>
88-
setReleased(forceReleased || Date.now() >= STREAM_RELEASE_TIMESTAMP);
89-
check();
90-
const interval = window.setInterval(check, 60_000);
91-
return () => window.clearInterval(interval);
92-
}, []);
93-
return released;
94-
};
64+
export const useVideoReleased = (): boolean => true;
65+
export const useStreamReleased = (): boolean => true;
9566

9667
/**
9768
* Convert a youtu.be or youtube.com URL into a youtube.com/embed/<id> URL.

client/src/pages/conf/faqs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"question": "Where can I watch the Azure Cosmos DB Conf stream?",
4-
"content": "Watch the live stream right here on <a class='blue' href='#stream'>this page</a> on April 28, 2026, or on the <a class='blue' href='https://youtube.com/live/OdPFriVuKtU' target='_blank' rel='noopener noreferrer'>Microsoft Developer YouTube Channel</a>. All sessions will be available on-demand afterward."
4+
"content": "Azure Cosmos DB Conf 2026 streamed live on April 28, 2026. Every session is now available on demand right here on <a class='blue' href='#stream'>this page</a> and on the <a class='blue' href='https://aka.ms/CosmosConf26Playlist' target='_blank' rel='noopener noreferrer'>Microsoft Developer YouTube Channel</a>."
55
},
66
{
77
"question": "Is there a code of conduct for Azure Cosmos DB Conf 2026?",

client/src/pages/conf/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ const ConfPage = () => {
273273
from Microsoft and community experts.
274274
</p>
275275
<p className={styles.introCopySecondary}>
276-
Tune in for our engaging 5-hour live show on <strong>{CONF_DATE_LONG}</strong>, and
277-
explore additional sessions on-demand. This is an event you won&apos;t want to miss!
276+
Our 5-hour live show streamed on <strong>{CONF_DATE_LONG}</strong>. Every session
277+
— keynote, breakouts, and community talks — is now available on demand.
278278
</p>
279279
</div>
280280
</div>

client/src/pages/conf/sections/AgendaSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const AgendaSection = ({ confYear }: AgendaSectionProps) => {
8787
Event agenda
8888
</h2>
8989
<p className={styles.newsDescription}>
90-
Join us live on April 28, 2026 from 9:00 AM to 2:00 PM PDT. All times shown in Pacific Daylight Time. Session recordings will be available on demand after the event.
90+
Azure Cosmos DB Conf 2026 streamed live on April 28, 2026 from 9:00 AM to 2:00 PM PDT. All times shown in Pacific Daylight Time. Every session is now available on demand.
9191
</p>
9292
</div>
9393

0 commit comments

Comments
 (0)