Skip to content

Compact the Mini App word library - #149

Merged
pirajoke merged 1 commit into
mainfrom
codex/miniapp-word-library-20260916
Sep 16, 2026
Merged

pirajoke merged 1 commit into
mainfrom
codex/miniapp-word-library-20260916

Conversation

@pirajoke

Copy link
Copy Markdown
Owner

Summary

  • combine personal and lesson words into one accessible two-tab library
  • show at most six words per page with localized previous/next controls
  • preserve custom-word actions, dictionary access, empty states, RTL, and keyboard navigation

Verification

  • python -m unittest discover -s tests -p "test_*.py" — 1195 passed, 3 skipped
  • focused Mini App contracts — 36 passed
  • Mini App JavaScript syntax check
  • swipe browser-controller tests — 10 passed plus deterministic UI contract
  • python -m compileall -q mydictionary
  • git diff --check

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 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-16T11:51:53.357482Z 392efe6 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: 392efe6ee3

ℹ️ 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".

<div id="empty-words" class="state-card dashboard-state empty" data-ui-state="empty" role="status" hidden><p data-i18n="empty_words"></p><button class="dashboard-action" type="button" data-action="continue" data-i18n="start_lesson"></button></div>
<section class="word-library" data-i18n-aria-label="word_library_title">
<div class="word-library-tabs" role="tablist" data-i18n-aria-label="word_library_title">
<button id="word-library-custom-tab" class="word-library-tab" type="button" role="tab" aria-selected="true" aria-controls="word-library-custom-panel" tabindex="0" data-word-library-tab="custom">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Scope primary-tab listeners away from library tabs

When either new library tab is clicked, it also matches the existing global document.querySelectorAll('[role="tab"]') in miniapp.js and receives the primary activateTab handler. Because these buttons have no data-tab, that handler hides every [data-panel], including the containing Words panel; the later library-specific handler cannot reveal it. Normal bottom-nav activation also clears the nested tabs' selected state. Restrict the primary selector/listeners to the five data-tab buttons so the two tab groups operate independently.

Useful? React with 👍 / 👎.

@pirajoke
pirajoke merged commit edf7f4c into main Sep 16, 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