Repository navigation
fix(webui): page past the first 200 memories on About you - #7303
github-actions[bot] wants to merge 1 commit into
Conversation
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
|
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 |
|
Superseded by #7312; this PR's 'an add keeps the open pages' test moved there. |
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 runinsrc/gaia/apps/webuipasses (3486 tests), including two new paging testsnpx tsc --noEmitpassesnpm run test:rtl, then check the new "Showing N of M · Show more" footer in English and Arabic🔍 Technical details
MemoryDashboardAboutYou.tsx: the fetch now pages withoffset(the server already accepts it, capslimitat 200 and returns a filteredtotal).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 existinggenerationguard, so a late page can't bring back an item the user just forgot. Forgetting an item lowers both the loaded count andtotal, which keeps the next offset aligned with the server.mem.about.showing,mem.about.showMoreandmem.about.moreFailedare in EN and AR. A failed Show more raises a toast instead of failing silently.util/lint.py --allshows the same Bandit, import-validation and tool-description failures asmainon this runner, and pytest isn't installed here.