Skip to content

Turn public dictionary into a learning profile - #154

Merged
pirajoke merged 1 commit into
mainfrom
codex/dictionary-learning-profile-20260917
Sep 17, 2026
Merged

pirajoke merged 1 commit into
mainfrom
codex/dictionary-learning-profile-20260917

Conversation

@pirajoke

Copy link
Copy Markdown
Owner

Summary

  • replace the long public dictionary-first layout with a device-local learning profile
  • add pair-scoped saved/learned/due metrics, browser-wide study activity, streak and seven-day chart
  • show eight results at a time, add native print/PDF snapshot, and collapse export/offline tools
  • preserve privacy: the public page reads only public packs and browser storage, never Telegram learner data

Verification

  • DATABASE_URL=sqlite:////tmp/.../suite.db ALLOW_SQLITE_DEV=true .venv/bin/python -m unittest discover -s tests (1220 passed, 3 skipped)
  • focused profile/offline tests (15 passed)
  • Playwright mobile/desktop dictionary flow
  • Playwright service-worker upgrade flow
  • JS syntax, Python compileall, Impeccable detector, and git diff --check

Closes no issue; contributes to #6.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-17T12:40:05.828947Z 2262a75 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2262a75966

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

$("result-status").textContent=matches.length>50?t("truncated",{shown:50,count:matches.length}):t("results",{count:matches.length});
const shown=matches.slice(0,visibleLimit); $("dictionary-results").replaceChildren(...shown.map(row));
$("result-status").textContent=matches.length>shown.length?t("truncated",{shown:shown.length,count:matches.length}):t("results",{count:matches.length});
$("show-more-results").hidden=shown.length>=matches.length;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Hide pagination while a practice session is open

With the default 100-word pack, this button is visible when the user starts a five-card review because the practice-start handler hides the results but not #show-more-results. The active exercise is therefore followed by an unrelated, clickable “Show more” control; clicking it rerenders background result state and can also reveal the translation panel when a query was present. Hide pagination on practice entry or make its visibility conditional on there being no active session.

Useful? React with 👍 / 👎.

@pirajoke
pirajoke merged commit 264ba0b into main Sep 17, 2026
1 check 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.

1 participant