Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ddad77e
wip
cemreinanc Mar 15, 2026
3e4467e
fix: sticky with portals and overlays
cemreinanc Mar 23, 2026
38714f0
filters bar
cemreinanc Mar 23, 2026
9a312eb
bar styles fine fixes
cemreinanc Mar 24, 2026
5c8c65c
add tw indicator
cemreinanc Mar 25, 2026
769bbe7
small fix
cemreinanc Mar 25, 2026
8225f63
add initial masonry layout
cemreinanc Mar 25, 2026
475ab4c
refactor: update layout and styling across feed tile components
cemreinanc Mar 28, 2026
1f9a1a8
review fixes
cemreinanc Mar 28, 2026
0a10882
Merge remote-tracking branch 'origin/main' into feat/new-question-feed
cemreinanc Mar 28, 2026
0bc7fc0
chage default to grid
cemreinanc Mar 28, 2026
6746249
qa fixes
cemreinanc Mar 30, 2026
6366860
collapsible sidebar titles
cemreinanc Mar 30, 2026
dbd93dd
fix: set default values for columns and gap in useMediaValues when me…
cemreinanc Mar 30, 2026
71e21e8
Merge remote-tracking branch 'origin/main' into feat/new-question-feed
cemreinanc Mar 30, 2026
1e6a596
Merge remote-tracking branch 'origin/main' into feat/new-question-feed
cemreinanc Mar 30, 2026
78019f1
Merge remote-tracking branch 'origin/main' into feat/new-question-feed
cemreinanc Mar 31, 2026
964794f
qa fixes
cemreinanc Apr 1, 2026
9408b47
Merge branch 'main' into feat/new-question-feed
cemreinanc Apr 5, 2026
cb220df
Merge branch 'main' into feat/new-question-feed
cemreinanc Apr 29, 2026
50666db
qa fixes
cemreinanc Apr 29, 2026
7146334
feed: sort filter bar updates
cemreinanc Apr 30, 2026
10e9fa5
add footer top border
cemreinanc Apr 30, 2026
e1c7c99
add mobile drawer
cemreinanc May 4, 2026
eeee3af
load all categories in sidebar
cemreinanc May 4, 2026
4f4b930
categories grid
cemreinanc May 4, 2026
1016525
Merge remote-tracking branch 'origin/main' into feat/new-question-feed
cemreinanc May 4, 2026
3686ba9
search tiles
cemreinanc May 5, 2026
9faaf99
increase post per page
cemreinanc May 5, 2026
c9eabb6
Merge remote-tracking branch 'origin/main' into feat/new-question-feed
cemreinanc May 5, 2026
2f7885e
stable feed and masonry updates
cemreinanc May 5, 2026
8b18d2b
fix sidebar scroll
cemreinanc May 5, 2026
ab0eedc
small fix
cemreinanc May 5, 2026
5f8185d
mobile hover state fix
cemreinanc May 5, 2026
0cc9e25
Merge branch 'main' into feat/new-question-feed
cemreinanc May 5, 2026
cc05804
tile cards hover borders
cemreinanc May 6, 2026
ad7a777
Merge branch 'main' into feat/new-question-feed
cemreinanc May 18, 2026
fd808b6
Remove unused translation banner import
cemreinanc May 18, 2026
63a2ae8
integrate react query
cemreinanc May 22, 2026
01b3599
stylistic updates
cemreinanc May 22, 2026
fac3973
consumer filters and conditional rendering
cemreinanc May 22, 2026
53d02df
fix pagination load
cemreinanc May 22, 2026
017fb40
Merge remote-tracking branch 'origin/main' into feat/new-question-feed
cemreinanc May 22, 2026
ca746d4
fan chart paddings
cemreinanc May 22, 2026
b3d4979
Adjust questions page padding
cemreinanc May 22, 2026
5d14e92
Remove extra padding from choice labels
cemreinanc May 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Claude.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This is a Django + Next.js monorepo. Python/Django backend lives in the root dir
- For any frontend content visible to the user, use the translation mechanism used across the whole frontend. `const t = useTranslations()` and then `t("stringKey")` while adding the "stringKey" to all the corresponding language files in `front_end/messages/`: `en.json`, `es.json`, `cs.json`, `pt.json`, `zh.json`, `zh-TW.json`.

# Workflow
- When connected to an IDE, check terminal outputs first. If a dev server is already running, do not run a build. Instead, read the dev server terminal output for any latest errors and use those for feedback.
- When connected to an IDE, or have access to a tmux session running node/uv, check terminal outputs first. If a dev server is already running for the project, do not run a build. Instead, read the dev server terminal output for any latest errors and use those for feedback.
- When done making code changes, run the relevant linters and formatters based on which files you edited:
- Python files: run `uv run ruff format .` and `uv run ruff check .`
- Frontend (JS/TS) files: run `cd ./front_end && bun run lint` and `cd ./front_end && bun run format`, and try to build with `cd ./front_end && bun run build` if there is no running dev server in IDE.
7 changes: 7 additions & 0 deletions front_end/messages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@
"hideCommunityPrediction": "Skrýt predikci komunity",
"viewMetaculusPrediction": "Zobrazit Metaculus predikci",
"questionSearchPlaceholder": "vyhledávat v otázkách...",
"feedSearchResultsFor": "{count} výsledků pro \"<strong>{search}</strong>\"",
"feedSearchResultsForWithoutCount": "Výsledky pro \"<strong>{search}</strong>\"",
"articlesSearchPlaceholder": "hledat články...",
"tagSearchPlaceholder": "hledat značky...",
"searchFilterType": "Typ",
Expand Down Expand Up @@ -383,6 +385,7 @@
"toggleAllTopics": "Přepnout všechna témata",
"toggleNewsAnnotations": "Přepnout anotace zpráv",
"Filter": "Filtr",
"sort": "Řadit",
"Done": "Hotovo",
"Clear": "Vymazat",
"predicted": "Předpovězeno",
Expand Down Expand Up @@ -1045,6 +1048,9 @@
"communitySlugDescription": "Vaše komunita je přístupná přes následující URL:",
"communityDescription": "Popis komunity",
"contentTranslatedHeaderText": "Některý obsah na této stránce je automaticky přeložen a může být nepřesný.",
"translatedBy": "přeloženo pomocí",
"listLayout": "Zobrazení seznamu",
"gridLayout": "Zobrazení mřížky",
"showOriginalContent": "Zobrazit originál",
"translated_by": "přeloženo pomocí",
"nextQuestion": "Další otázka",
Expand Down Expand Up @@ -1960,6 +1966,7 @@
"hostPrivateInstancesDescription": "Objevte poznatky z vaší organizace",
"questionFeed": "Feed otázek",
"feed": "Feed",
"newCommentsSortNote": "Nové komentáře zobrazují jen otázky, které jste už navštívili a mají nepřečtené komentáře.",
"collectiveForecastsForPublicGood": "Kolektivní předpovědi pro veřejné dobro",
"followImportantTopics": "Sledujte důležitá témata",
"followImportantTopicsDescription": "AI, geopolitika, biosekurita a další",
Expand Down
7 changes: 7 additions & 0 deletions front_end/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"hostPrivateInstancesDescription": "Surface insights from within your organization",
"questionFeed": "Question Feed",
"feed": "Feed",
"newCommentsSortNote": "New Comments only shows questions you have viewed before and that have unread comments.",
"collectiveForecastsForPublicGood": "Collective forecasts for the public good",
"followImportantTopics": "Follow important topics",
"followImportantTopicsDescription": "AI, Geopolitics, Biosecurity, and more",
Expand Down Expand Up @@ -327,6 +328,8 @@
"hideCommunityPrediction": "Hide Community Prediction",
"viewMetaculusPrediction": "View Metaculus Prediction",
"questionSearchPlaceholder": "search questions...",
"feedSearchResultsFor": "{count} results for \"<strong>{search}</strong>\"",
"feedSearchResultsForWithoutCount": "Results for \"<strong>{search}</strong>\"",
"articlesSearchPlaceholder": "search articles...",
"tagSearchPlaceholder": "search tags...",
"search": "Search",
Expand Down Expand Up @@ -601,6 +604,7 @@
"toggleAllTopics": "Toggle all topics",
"toggleNewsAnnotations": "Toggle news annotations",
"Filter": "Filter",
"sort": "Sort",
"done": "done",
"clear": "clear",
"predicted": "Predicted",
Expand Down Expand Up @@ -1309,6 +1313,9 @@
"youArePostingAPrivateComment": "You are posting a private comment",
"unread": "unread",
"contentTranslatedHeaderText": "Some content on this page is automatically translated, and may be inaccurate.",
"translatedBy": "translated by",
"listLayout": "List layout",
"gridLayout": "Grid layout",
"showOriginalContent": "Show original",
"translated_by": "translated by",
"nextQuestion": "Next Question",
Expand Down
7 changes: 7 additions & 0 deletions front_end/messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@
"hideCommunityPrediction": "Ocultar Predicción de la Comunidad",
"viewMetaculusPrediction": "Ver Predicción de Metaculus",
"questionSearchPlaceholder": "buscar preguntas...",
"feedSearchResultsFor": "{count} resultados para \"<strong>{search}</strong>\"",
"feedSearchResultsForWithoutCount": "Resultados para \"<strong>{search}</strong>\"",
"articlesSearchPlaceholder": "buscar artículos...",
"tagSearchPlaceholder": "buscar etiquetas...",
"searchFilterType": "Tipo",
Expand Down Expand Up @@ -390,6 +392,7 @@
"toggleAllTopics": "Alternar todos los temas",
"toggleNewsAnnotations": "Alternar anotaciones de noticias",
"Filter": "Filtrar",
"sort": "Ordenar",
"Done": "Hecho",
"Clear": "Limpiar",
"predicted": "Predicho",
Expand Down Expand Up @@ -1044,6 +1047,9 @@
"communitySlugDescription": "Tu comunidad puede ser accedida a través de la siguiente URL:",
"communityDescription": "Descripción de la Comunidad",
"contentTranslatedHeaderText": "Parte del contenido en esta página se traduce automáticamente y puede ser inexacto.",
"translatedBy": "traducido por",
"listLayout": "Vista de lista",
"gridLayout": "Vista de cuadrícula",
"showOriginalContent": "Mostrar original",
"translated_by": "traducido por",
"nextQuestion": "Siguiente Pregunta",
Expand Down Expand Up @@ -1955,6 +1961,7 @@
"hostPrivateInstancesDescription": "Descubre información desde dentro de tu organización",
"questionFeed": "Feed de preguntas",
"feed": "Feed",
"newCommentsSortNote": "Nuevos comentarios solo muestra preguntas que ya has visto y que tienen comentarios sin leer.",
"collectiveForecastsForPublicGood": "Pronósticos colectivos para el bien público",
"followImportantTopics": "Sigue temas importantes",
"followImportantTopicsDescription": "IA, Geopolítica, Bioseguridad y más",
Expand Down
7 changes: 7 additions & 0 deletions front_end/messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@
"hideCommunityPrediction": "Ocultar Previsão da Comunidade",
"viewMetaculusPrediction": "Ver Previsão da Metaculus",
"questionSearchPlaceholder": "pesquisar perguntas...",
"feedSearchResultsFor": "{count} resultados para \"<strong>{search}</strong>\"",
"feedSearchResultsForWithoutCount": "Resultados para \"<strong>{search}</strong>\"",
"articlesSearchPlaceholder": "pesquisar artigos...",
"tagSearchPlaceholder": "pesquisar tags...",
"search": "Pesquisar",
Expand Down Expand Up @@ -416,6 +418,7 @@
"toggleAllTopics": "Alternar todos os tópicos",
"toggleNewsAnnotations": "Alternar anotações de notícias",
"Filter": "Filtro",
"sort": "Ordenar",
"done": "concluído",
"clear": "limpar",
"predicted": "Previsto",
Expand Down Expand Up @@ -998,6 +1001,9 @@
"youArePostingAPrivateComment": "Você está postando um comentário privado",
"unread": "não lido",
"contentTranslatedHeaderText": "Algum conteúdo nesta página foi traduzido automaticamente e pode estar incorreto.",
"translatedBy": "traduzido por",
"listLayout": "Layout de lista",
"gridLayout": "Layout de grade",
"showOriginalContent": "Mostrar original",
"translated_by": "traduzido por",
"discard": "Descartar",
Expand Down Expand Up @@ -1953,6 +1959,7 @@
"hostPrivateInstancesDescription": "Descubra insights de dentro da sua organização",
"questionFeed": "Feed de Perguntas",
"feed": "Feed",
"newCommentsSortNote": "Novos Comentários mostra apenas perguntas que você já visualizou e que têm comentários não lidos.",
"collectiveForecastsForPublicGood": "Previsões coletivas para o bem público",
"followImportantTopics": "Siga tópicos importantes",
"followImportantTopicsDescription": "IA, Geopolítica, Biossegurança e mais",
Expand Down
7 changes: 7 additions & 0 deletions front_end/messages/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@
"hideCommunityPrediction": "隱藏社群預測",
"viewMetaculusPrediction": "查看 Metaculus 預測",
"questionSearchPlaceholder": "搜索問題...",
"feedSearchResultsFor": "{count} 個「<strong>{search}</strong>」的結果",
"feedSearchResultsForWithoutCount": "「<strong>{search}</strong>」的結果",
"articlesSearchPlaceholder": "搜索文章...",
"tagSearchPlaceholder": "搜索標籤...",
"search": "搜索",
Expand Down Expand Up @@ -444,6 +446,7 @@
"toggleAllTopics": "切換所有話題",
"toggleNewsAnnotations": "切換新聞註釋",
"Filter": "篩選",
"sort": "排序",
"done": "完成",
"clear": "清除",
"predicted": "已預測",
Expand Down Expand Up @@ -1071,6 +1074,9 @@
"youArePostingAPrivateComment": "您正在發佈一則私人評論",
"unread": "未讀",
"contentTranslatedHeaderText": "此頁面上的部分內容是自動翻譯的,可能不準確。",
"translatedBy": "翻譯提供",
"listLayout": "列表佈局",
"gridLayout": "網格佈局",
"showOriginalContent": "顯示原文",
"translated_by": "翻譯方",
"nextQuestion": "下一個問題",
Expand Down Expand Up @@ -1949,6 +1955,7 @@
"hostPrivateInstancesDescription": "從您的組織內部發掘見解",
"questionFeed": "問題動態",
"feed": "動態",
"newCommentsSortNote": "「新評論」只會顯示您之前看過且有未讀評論的問題。",
"collectiveForecastsForPublicGood": "為公眾利益的集體預測",
"followImportantTopics": "關注重要話題",
"followImportantTopicsDescription": "AI、地緣政治、生物安全等",
Expand Down
7 changes: 7 additions & 0 deletions front_end/messages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@
"hideCommunityPrediction": "隱藏社區預測",
"viewMetaculusPrediction": "查看 Metaculus 預測",
"questionSearchPlaceholder": "搜索問題...",
"feedSearchResultsFor": "{count} 個「<strong>{search}</strong>」的結果",
"feedSearchResultsForWithoutCount": "「<strong>{search}</strong>」的結果",
"articlesSearchPlaceholder": "搜索文章...",
"tagSearchPlaceholder": "搜索標籤...",
"searchFilterType": "類型",
Expand Down Expand Up @@ -387,6 +389,7 @@
"toggleAllTopics": "切換所有主題",
"toggleNewsAnnotations": "切换新闻注释",
"Filter": "篩選",
"sort": "排序",
"Done": "完成",
"Clear": "清除",
"predicted": "已預測",
Expand Down Expand Up @@ -1046,6 +1049,9 @@
"communitySlugDescription": "您可以通过以下网址访问您的社区:",
"communityDescription": "社区描述",
"contentTranslatedHeaderText": "此页面上的一些内容是自动翻译的,可能不准确。",
"translatedBy": "翻译提供",
"listLayout": "列表布局",
"gridLayout": "网格布局",
"showOriginalContent": "显示原文",
"translated_by": "翻译方",
"nextQuestion": "下一问题",
Expand Down Expand Up @@ -1957,6 +1963,7 @@
"hostPrivateInstancesDescription": "从您的组织内部发掘见解",
"questionFeed": "问题动态",
"feed": "动态",
"newCommentsSortNote": "“新评论”只会显示您之前看过且有未读评论的问题。",
"collectiveForecastsForPublicGood": "为公众利益的集体预测",
"followImportantTopics": "关注重要话题",
"followImportantTopicsDescription": "AI、地缘政治、生物安全等",
Expand Down
6 changes: 3 additions & 3 deletions front_end/src/app/(embed)/questions/embed/[id]/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ body {
.ConditionalSummary {
grid-template-columns: 72px minmax(0, 1fr);

@media screen and (min-width: $embeds-min-width) {
@container (min-width: #{$embeds-min-width}) {
grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
}

@media screen and (min-width: $embeds-max-width) {
@container (min-width: #{$embeds-max-width}) {
grid-template-columns: minmax(0, 1fr) 166px minmax(0, 1fr);
}

@media screen and (min-width: $embeds-min-width) {
@container (min-width: #{$embeds-min-width}) {
height: 100%;
align-items: center;
&-arrows {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
import { SearchParams } from "@/types/navigation";
import { LeaderboardDetails } from "@/types/scoring";

import FutureEvalTabs from "./futureeval-tabs";
import { Section } from "./futureeval-tabs-shell";
import { FutureEvalLeaderboardProvider } from "./leaderboard/futureeval-leaderboard-provider";

type Props = { leaderboard: LeaderboardDetails; current: Section["value"] };
type Props = {
leaderboard: LeaderboardDetails;
current: Section["value"];
searchParams?: SearchParams;
};

const FutureEvalScreen: React.FC<Props> = ({ leaderboard, current }) => {
const FutureEvalScreen: React.FC<Props> = ({
leaderboard,
current,
searchParams,
}) => {
return (
<FutureEvalLeaderboardProvider leaderboard={leaderboard}>
<div className="flex flex-1 flex-col">
<FutureEvalTabs current={current} />
<FutureEvalTabs current={current} searchParams={searchParams} />
</div>
</FutureEvalLeaderboardProvider>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from "react";

import { SearchParams } from "@/types/navigation";

import FutureEvalBenchmarkTab from "./benchmark/futureeval-benchmark-tab";
import FutureEvalMethodologyTab from "./futureeval-methodology-tab";
import FutureEvalParticipateTab from "./futureeval-participate-tab";
Expand All @@ -9,9 +11,10 @@ import FutureEvalNewsTab from "./news/futureeval-news-tab";

type Props = {
current: Section["value"];
searchParams?: SearchParams;
};

const FutureEvalTabs: React.FC<Props> = async ({ current }) => {
const FutureEvalTabs: React.FC<Props> = async ({ current, searchParams }) => {
const sections: Section[] = [
{
value: "benchmark",
Expand Down Expand Up @@ -41,7 +44,7 @@ const FutureEvalTabs: React.FC<Props> = async ({ current }) => {
value: "news",
href: "/futureeval/news",
label: "News",
content: <FutureEvalNewsTab />,
content: <FutureEvalNewsTab searchParams={searchParams} />,
},
];

Expand Down
Loading
Loading