-
Answers on all things AI safety
+
Your guide to AI safety
diff --git a/app/routes/questions.$questionId.$.tsx b/app/routes/questions.$questionId.$.tsx
index 6b8fe542..754657d8 100644
--- a/app/routes/questions.$questionId.$.tsx
+++ b/app/routes/questions.$questionId.$.tsx
@@ -96,6 +96,13 @@ export default function RenderArticle() {
setShowNav(false)
}, [location.key])
+ useEffect(() => {
+ data.then((val) => {
+ const question = val as Question
+ if (question.title) document.title = question.title
+ })
+ }, [data])
+
return (
diff --git a/app/routes/questions.toc.ts b/app/routes/questions.toc.ts
index bf10cbc7..79c79f56 100644
--- a/app/routes/questions.toc.ts
+++ b/app/routes/questions.toc.ts
@@ -60,7 +60,10 @@ export const loadToC = async (request: any): Promise => {
[k: string]: Question
}
const canBeShown = ({status}: Question) =>
- status && [QuestionStatus.LIVE_ON_SITE, QuestionStatus.NOT_STARTED].includes(status)
+ status &&
+ [QuestionStatus.LIVE_ON_SITE, QuestionStatus.NOT_STARTED, QuestionStatus.SUBSECTION].includes(
+ status
+ )
data
.filter(canBeShown)
diff --git a/app/server-utils/stampy.ts b/app/server-utils/stampy.ts
index a3d8834e..437fa45b 100644
--- a/app/server-utils/stampy.ts
+++ b/app/server-utils/stampy.ts
@@ -36,6 +36,7 @@ export enum QuestionStatus {
IN_PROGRESS = 'In progress',
IN_REVIEW = 'In review',
LIVE_ON_SITE = 'Live on site',
+ SUBSECTION = 'Subsection',
UNKNOWN = 'Unknown',
}
export type Banner = {