Skip to content

fix(webui): page past the first 200 memories on About you - #7303

Closed
github-actions[bot] wants to merge 1 commit into
mainfrom
autofix/issue-7287
Closed

github-actions[bot] wants to merge 1 commit into
mainfrom
autofix/issue-7287

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

With more than 200 memories, Memory › About you showed only the 200 most recently updated, with no total and no way to reach the rest. The older ones couldn't be reviewed or forgotten from that page, though GAIA still used them. Now the page says "Showing 200 of 323" and has a Show more button that loads the next page. An edit, add or undo keeps the pages already open, and forgetting an item updates the count.

Closes #7287

Test plan

  • npx vitest run in src/gaia/apps/webui passes (3486 tests), including two new paging tests
  • npx tsc --noEmit passes
  • npm run test:rtl, then check the new "Showing N of M · Show more" footer in English and Arabic
  • With more than 200 memories (e.g. 323), open Memory › About you: the footer reads "Showing 200 of 323"; Show more brings in the rest and the footer disappears
  • Forget an item from the second page, then add a memory: the list stays fully loaded and the count stays right

⚠️ Needs manual validation: the unit tests cover the paging logic, but no one has looked at the new footer yet. A maintainer should run npm run test:rtl and check it in both languages before merging.

🔍 Technical details
  • MemoryDashboardAboutYou.tsx: the fetch now pages with offset (the server already accepts it, caps limit at 200 and returns a filtered total). load() re-reads as many rows as are showing, so a refresh doesn't collapse back to one page. loadMore() appends the next page, removes duplicate ids, and respects the existing generation guard, so a late page can't bring back an item the user just forgot. Forgetting an item lowers both the loaded count and total, which keeps the next offset aligned with the server.
  • New strings mem.about.showing, mem.about.showMore and mem.about.moreFailed are in EN and AR. A failed Show more raises a toast instead of failing silently.
  • Python lint and unit tests weren't affected because the diff has no Python. util/lint.py --all shows the same Bandit, import-validation and tool-description failures as main on this runner, and pytest isn't installed here.

The About you page fetched one page of 200 memories and stopped, so anyone
with more could not see, edit or forget the rest. It now says how many are
showing out of the total and offers Show more; a reload after an edit, add or
undo re-reads every page already open.

Closes #7287
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

This fixes the same gap as #7312, which should be the one to keep: it also de-duplicates rows when a memory is saved between two page reads, documents the paging in the memory guide, and adds an Arabic/English visual state for the new footer. Your add-reload test was a good one and is now carried over to #7312. Suggest closing this draft once #7312 merges.

🔍 Technical details

#7303's initial load() loop has no id de-dup and advances by rows.length, so a write between page reads repeats the boundary row (the case the review bot raised on #7312, fixed and tested there). keeps the extra pages open when a change reloads the list was ported to #7312 as keeps the extra rows in view when an add reloads the list.

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Superseded by #7312; this PR's 'an add keeps the open pages' test moved there.

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.

Memory page shows only the first 200 memories

1 participant