-
Notifications
You must be signed in to change notification settings - Fork 27
Add support for filtering on commented_by current user #4348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -546,6 +546,7 @@ | |||||
| "includeBotsInAggregatesExplanation": "When enabled, bot forecasts will be included in aggregate calculations for this question and will affect scoring. Otherwise, they will affect neither.", | ||||||
| "authored": "Authored", | ||||||
| "upvoted": "Upvoted", | ||||||
| "commented": "Commented", | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid duplicate “commented” key collisions. 🔧 Suggested fix- "commented": "Commented",
+ "commentedFilter": "Commented",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "moderating": "Moderating", | ||||||
| "moderatedBy": "Moderated by", | ||||||
| "visibility": "Visibility", | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -398,6 +398,7 @@ | |
| "includeBotsTooltip": "Para esta pregunta, los pronósticos de los bots contribuyen a la predicción de la comunidad. <link>Obtenga más información sobre la evaluación comparativa de IA</link>", | ||
| "authored": "Autoría", | ||
| "upvoted": "Votado positivamente", | ||
| "commented": "Comentado", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: fd -e json . front_end/messages/ | head -20Repository: Metaculus/metaculus Length of output: 260 🏁 Script executed: grep -n '"commented"' front_end/messages/es.jsonRepository: Metaculus/metaculus Length of output: 126 🏁 Script executed: sed -n '110,120p' front_end/messages/es.jsonRepository: Metaculus/metaculus Length of output: 574 🏁 Script executed: sed -n '398,405p' front_end/messages/es.jsonRepository: Metaculus/metaculus Length of output: 454 🏁 Script executed: grep -E '"search.*?": "' front_end/messages/es.json | head -10Repository: Metaculus/metaculus Length of output: 472 🏁 Script executed: sed -n '395,410p' front_end/messages/es.jsonRepository: Metaculus/metaculus Length of output: 927 🏁 Script executed: grep -n '"authored"\|"upvoted"\|"moderating"' front_end/messages/es.jsonRepository: Metaculus/metaculus Length of output: 165 🏁 Script executed: sed -n '110,125p' front_end/messages/es.json | cat -nRepository: Metaculus/metaculus Length of output: 915 🏁 Script executed: # Check if "commented" key is used elsewhere in the codebase
rg '"commented"' front_end/ --type json --type js --type ts -cRepository: Metaculus/metaculus Length of output: 397 🏁 Script executed: # Verify the exact structure - is this really a JSON object with duplicate keys?
head -5 front_end/messages/es.json && echo "..." && tail -5 front_end/messages/es.jsonRepository: Metaculus/metaculus Length of output: 414 🏁 Script executed: # Check how "commented" is used in the codebase
rg -B2 -A2 '"commented"' front_end/src/components/tournament_filters.tsxRepository: Metaculus/metaculus Length of output: 240 🏁 Script executed: rg -B2 -A2 '"commented"' front_end/src/components/comment_feed/comment.tsxRepository: Metaculus/metaculus Length of output: 254 🏁 Script executed: rg -B2 -A2 '"commented"' front_end/src/app/\(main\)/questions/helpers/filters.tsRepository: Metaculus/metaculus Length of output: 230 🏁 Script executed: # Check the structure of line 401-402 context more clearly with broader range
sed -n '395,415p' front_end/messages/es.json | nl -v 395Repository: Metaculus/metaculus Length of output: 105 🏁 Script executed: sed -n '395,415p' front_end/messages/es.jsonRepository: Metaculus/metaculus Length of output: 1275 🏁 Script executed: # Check all locale files for duplicate "commented" key
for f in front_end/messages/*.json; do
count=$(grep -c '"commented"' "$f")
echo "$(basename $f): $count occurrences"
grep -n '"commented"' "$f"
echo
doneRepository: Metaculus/metaculus Length of output: 600 Duplicate JSON key Both line 114 and line 401 define the same key
Line 114's lowercase values ( Use a distinct key for the filter option, following the naming convention: 🤖 Prompt for AI Agents |
||
| "moderating": "Moderando", | ||
| "visibility": "Visibilidad", | ||
| "public": "Público", | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -423,6 +423,7 @@ | |||||
| "includeBotsTooltip": "Para esta pergunta, previsões de bots contribuem para a Previsão da Comunidade. <link>Saiba mais sobre Benchmarking de IA</link>", | ||||||
| "authored": "Criado", | ||||||
| "upvoted": "Curtido", | ||||||
| "commented": "Comentado", | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate This file already defines 🔧 Suggested key rename- "commented": "Comentado",
+ "searchOptionCommented": "Comentado",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "moderating": "Moderando", | ||||||
| "moderatedBy": "Moderado por", | ||||||
| "visibility": "Visibilidade", | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -451,6 +451,7 @@ | |
| "includeBotsTooltip": "對於此問題,機器人預測構成社區預測的一部分。<link>瞭解更多關於 AI 基準測試</link>", | ||
| "authored": "著作", | ||
| "upvoted": "點贊", | ||
| "commented": "已評論", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate “commented” key overrides existing translation. 🔧 Suggested fix- "commented": "已評論",
+ "commentedFilter": "已評論",🤖 Prompt for AI Agents |
||
| "moderating": "管理中", | ||
| "moderatedBy": "由...管理", | ||
| "visibility": "可見性", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -395,6 +395,7 @@ | |
| "includeBots": "包括機器人", | ||
| "includeBotsTooltip": "對於這個問題,機器人預測有助於社群預測。<link>了解更多有關 AI 基準測試的資訊</link>", | ||
| "upvoted": "點贊", | ||
| "commented": "已評論", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate “commented” key overrides existing translation. 🔧 Suggested fix- "commented": "已評論",
+ "commentedFilter": "已評論",🤖 Prompt for AI Agents |
||
| "moderating": "管理中", | ||
| "visibility": "可見性", | ||
| "public": "公開", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate
"commented"key overwrites the earlier translation.Line 394 introduces a second
"commented"entry (the file already defines"commented": "komentovali"around Line 114). JSON will keep the last value, which can silently change other UI strings. Please use a distinct key for the filter label (e.g.,searchOptionCommented) and update the UI to reference it.🔧 Suggested key rename
📝 Committable suggestion
🤖 Prompt for AI Agents