supermemory/apps/web/components
abhay-codes07 34b0b3db59
fix(web): keep highlights card active index in range on refresh
The Daily Brief refreshes on its own every few hours, replacing the items
array, and the paging controls also let the user sit on a later index. When a
refresh returns fewer highlights than before, activeIndex was left pointing
past the end of the new list, so currentItem became undefined and the card
rendered the "Add some documents" empty state even though highlights existed,
with no pagination shown to recover from it.

Clamp activeIndex back into range whenever items changes, alongside the
existing reply/expansion reset. Also drops a now-unnecessary
useExhaustiveDependencies suppression, since the effect body now reads
items.length so items is a real dependency.
2026-07-22 16:56:55 +05:30
..
add-document feat(web): company brain onboarding redesign + connector entitlement (#1178) 2026-06-30 22:01:20 +00:00
brain-home feat(web): revamp Company Brain configure page (#1306) 2026-07-18 18:45:03 +00:00
chat fix(web): use backend URL fallback for direct fetches (#1212) 2026-07-10 20:02:24 -07:00
document-cards Support HTML file uploads in Nova (#1076) 2026-06-10 06:09:20 +00:00
document-modal fix(web): match YouTube URLs by hostname instead of substring (#1182) 2026-07-10 16:20:18 -07:00
integrations docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
mcp-modal docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
memory-graph memory graph loader (#1072) 2026-06-09 17:39:35 +00:00
nova fix(web): org plan badges via org-summaries and refresh Nova chat empty state (#968) 2026-05-18 23:44:09 +00:00
onboarding add responsivness in share graph, bookmark section, navigation controls (#940) 2026-05-15 08:37:01 -07:00
onboarding-brain feat(brain): add /brain Slack-first onboarding entry (#1310) 2026-07-21 21:19:54 +00:00
settings docs(brain): note trial attach after Slack OAuth (#1313) 2026-07-21 21:34:25 +00:00
text-editor Improve quick note editor interactions & fix filter chips responsiveness (#989) 2026-05-23 11:54:17 -07:00
add-space-modal.tsx feat(spaces): per-space entity context + edit-space modal (#1078) 2026-06-12 20:51:37 +00:00
animated-gradient-background.tsx feat: major iteration on the app (#896) 2026-05-02 23:58:58 +00:00
app-experience.tsx feat(brain): add /brain Slack-first onboarding entry (#1310) 2026-07-21 21:19:54 +00:00
bottom-nav.tsx feat(settings): settings modal overhaul (#1069) 2026-06-09 12:07:47 +05:30
brain-connector-icons.tsx feat(web): brain connections board + MCP connect from web (#1181) 2026-07-02 16:24:50 +00:00
company-brain-header.tsx feat(web): revamp Company Brain configure page (#1306) 2026-07-18 18:45:03 +00:00
configure-view.tsx feat(web): configure Company Brain reasoning effort (#1307) 2026-07-18 19:12:45 +00:00
connect-ai-modal.tsx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
dashboard-view.tsx review suggestions option for inferred memories (#1138) 2026-07-04 20:57:33 +00:00
digests-view.tsx add weekly digests, log, and opt out options (#1107) 2026-06-18 01:06:40 +00:00
document-icon.tsx fix(web): match YouTube URLs by hostname instead of substring (#1182) 2026-07-10 16:20:18 -07:00
documents-command-palette.tsx feat(settings): settings modal overhaul (#1069) 2026-06-09 12:07:47 +05:30
edit-space-modal.tsx feat(spaces): per-space entity context + edit-space modal (#1078) 2026-06-12 20:51:37 +00:00
ensure-workspace.tsx feat(brain): add /brain Slack-first onboarding entry (#1310) 2026-07-21 21:19:54 +00:00
error-boundary.tsx error boundaries 2026-02-12 16:41:12 -08:00
feedback-modal.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
fullscreen-note-modal.tsx Revert "Improve quick note editor interactions & fix filter chips responsiveness" (#987) 2026-05-21 22:42:01 +05:30
granola-connect-modal.tsx feat/granola connector (#1007) 2026-06-03 15:19:49 +00:00
graph-layout-view.tsx Improve memory graph (#973) 2026-06-05 15:48:41 -07:00
header.tsx feat(web): company brain onboarding research UI (#1197) 2026-07-05 00:06:02 +00:00
highlights-card.tsx fix(web): keep highlights card active index in range on refresh 2026-07-22 16:56:55 +05:30
initial-header.tsx fix(web): restore Nova onboarding analytics events (#1023) 2026-05-29 19:54:13 +00:00
integration-icons.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
integrations-view.tsx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
login-tools-panel.tsx Show the orbit animation on the login panel (#1168) 2026-06-27 10:55:37 -07:00
memories-grid.tsx feat(extension): Add support across gemini & claude, live tool tip, auto complete support (#971) 2026-07-21 13:12:20 -07:00
orbit-memory.tsx Show the orbit animation on the login panel (#1168) 2026-06-27 10:55:37 -07:00
org-plan-badge.tsx feat(billing): add Max plan to nova with cancel/resume flow (#1024) 2026-05-31 19:10:17 +00:00
pwa-install-prompt.tsx feat(web): pwa prompt 'Add to Home Screen' opens share menu (#963) 2026-05-18 05:32:04 +00:00
query-client.tsx chore: remove the new folder and fix imports (#740) 2026-02-16 14:30:29 -07:00
quick-note-card.tsx Improve quick note editor interactions & fix filter chips responsiveness (#989) 2026-05-23 11:54:17 -07:00
remove-connection-dialog.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
review-memories-card.tsx review suggestions option for inferred memories (#1138) 2026-07-04 20:57:33 +00:00
review-memories-modal.tsx review suggestions option for inferred memories (#1138) 2026-07-04 20:57:33 +00:00
select-spaces-modal.tsx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
share-modal.tsx add responsivness in share graph, bookmark section, navigation controls (#940) 2026-05-15 08:37:01 -07:00
slack-connect-card.tsx feat(web): add Slack connect card to home + space selector polish (#1137) 2026-06-22 18:20:09 +00:00
space-folder-icon.tsx feat(web): mobile UX for dashboard, nav, and spaces (#1000) 2026-05-25 16:09:34 +05:30
space-glyph.tsx feat(web): mobile UX for dashboard, nav, and spaces (#1000) 2026-05-25 16:09:34 +05:30
space-profile-modal.tsx add org level context and space level profile (#1002) 2026-05-26 10:17:56 -07:00
space-profile-panel.tsx feat(spaces): per-space entity context + edit-space modal (#1078) 2026-06-12 20:51:37 +00:00
space-selector.tsx feat(web): add Slack connect card to home + space selector polish (#1137) 2026-06-22 18:20:09 +00:00
spinner.tsx feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
superloader.tsx Grok 4.3, web sources UX, and mobile polish (#1064) 2026-06-08 12:34:15 +05:30
timeline-view.tsx fix(web): match YouTube URLs by hostname instead of substring (#1182) 2026-07-10 16:20:18 -07:00
user-profile-menu.tsx feat(web): revamp Company Brain configure page (#1306) 2026-07-18 18:45:03 +00:00
utils.ts fix(web): match YouTube URLs by hostname instead of substring (#1182) 2026-07-10 16:20:18 -07:00