Skip to content

Fix Translate defaults and U.S. state Wikipedia links#134

Merged
konard merged 3 commits into
mainfrom
issue-133-a2575051275f
Jun 5, 2026
Merged

Fix Translate defaults and U.S. state Wikipedia links#134
konard merged 3 commits into
mainfrom
issue-133-a2575051275f

Conversation

@konard
Copy link
Copy Markdown
Contributor

@konard konard commented Jun 4, 2026

Fixes #133

Summary

  • Preserve source-backed semantic lexicon URLs so Q35657 renders as the Russian Wikipedia article, and make Translate default to Wikipedia links across UI, CLI, and server paths.
  • Reorder source defaults to Wikipedia, Wikidata, Wiktionary, virtual overrides; replace the target radio group with an unchecked local-viewer checkbox; add Text/Wikipedia article input modes.
  • Surface broad per-word context chains and keep Rust mirrors in parity with the JS changes.
  • Add an issue-133 case study with CI logs, online research notes, before/after captures, changeset, and screenshots.

Reproduction

Before the fix, the live translation capture showed Q35657 resolving to Wikidata. After the fix, docs/case-studies/issue-133/live-translation-after.json links штат to https://ru.wikipedia.org/wiki/%D0%A8%D1%82%D0%B0%D1%82_%D0%A1%D0%A8%D0%90.

Tests

  • node --test js/tests/integration/issue-133.test.js js/tests/integration/issue-50.test.js
  • node --test js/tests/integration/issue-37.test.js js/tests/integration/issue-126-context-detection.test.js js/tests/integration/issue-126-context-selection.test.js js/tests/integration/issue-128.test.js js/tests/integration/issue-131.test.js js/tests/e2e/issue-16.test.js
  • cargo test
  • npm run check
  • npm test

Screenshots

Translate text mode

Translate article mode

Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: #133
@konard konard self-assigned this Jun 4, 2026
@konard konard changed the title [WIP] Issue on Translate page: Hawaii is a state. and UI/UX improvements Fix Translate defaults and U.S. state Wikipedia links Jun 5, 2026
@konard konard marked this pull request as ready for review June 5, 2026 00:32
@konard
Copy link
Copy Markdown
Contributor Author

konard commented Jun 5, 2026

Working session summary

Implemented, pushed, and marked PR #134 ready for review:

#134

Key results:

  • Fixed Q35657 link resolution so штат uses the Russian Wikipedia article instead of Wikidata.
  • Changed Translate defaults to Wikipedia links across UI/CLI/server.
  • Updated UI source ordering and added Text/Wikipedia article input modes.
  • Added reproducing issue-133 tests, case-study artifacts, before/after captures, screenshots, and a changeset.
  • Synced the Rust mirror changes so JS/Rust parity passes.

Verification:

  • Local npm run check, npm test, and cargo test passed.
  • Fresh GitHub Actions on head 8d1923bd2a42468752cd177c3845f408b4e3e409 all completed successfully: Broken Link Checker, JS Checks and release, and Rust Checks.
  • Working tree is clean, and the PR merge state is CLEAN.

This summary was automatically extracted from the AI working session output.

@konard
Copy link
Copy Markdown
Contributor Author

konard commented Jun 5, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Model: GPT-5.5
  • Provider: OpenAI
  • Public pricing estimate: $31.946617

📊 Context and tokens usage:

  • 1.0M / 1.1M (95%) input tokens, 65.8K / 128K (51%) output tokens

Total: (1.0M + 19.0M cached) input tokens, 65.8K output tokens, $31.946617 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-5.5
  • Model: GPT-5.5 (gpt-5.5)

📎 Log file uploaded as Repository (100181KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard
Copy link
Copy Markdown
Contributor Author

konard commented Jun 5, 2026

✅ Ready to merge

This pull request is now ready to be merged:

  • All CI checks have passed
  • No merge conflicts
  • No pending changes

Monitored by hive-mind with --auto-restart-until-mergeable flag

@konard konard merged commit 787765c into main Jun 5, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue on Translate page: Hawaii is a state. and UI/UX improvements

1 participant