Skip to content

feat(home): add Recent Uploads panel - #880

Merged
danieltruong merged 4 commits into
reactfrom
feat-recent-uploads
Sep 11, 2026
Merged

feat(home): add Recent Uploads panel#880
danieltruong merged 4 commits into
reactfrom
feat-recent-uploads

Conversation

@danieltruong

Copy link
Copy Markdown
Collaborator

Homepage panel for PUBLIC-152: the five projects with the newest document uploads, each listing its newest documents.

  • Data from demi-api GET /documents/recent-uploads?limit=5 (feat(api): add GET /documents/recent-uploads digitalspace/eagle-demi#387; the panel renders nothing until that route is live).
  • Document links open the file through DocumentLink; project name and "All documents" open /p/{id}/documents?sortBy=-datePosted.
  • Panel shares the news feed surface: .home-feed-panel now carries the slab, heading and footer rules both sections use.
  • Document-tab term tables extracted to utils/document-tabs.ts; createProjectTabModifiers and the documents page read one copy.
  • Tracking: Recent Upload Clicked with target project | document | all-documents.

Tests: home.spec.tsx (14 cases), document-link.spec.tsx (+1). Checked at 1440 and 375 px, no horizontal scroll.

Lists the five projects with the newest document uploads, each with
its newest documents. Document links open the file; project and
"All documents" links open the project documents list sorted newest
first. Panel shares the news feed surface via .home-feed-panel.
Document-tab term tables move to utils/document-tabs.ts so the
documents page and createProjectTabModifiers read one copy.

Refs PUBLIC-152
Resolve conflict with the Management Plan pill (#879) by moving it
into the shared DOCUMENT_TABS table.
Projects with no Eagle id render unlinked, since no route resolves a
DEMI id. The feed query no longer retries, so an absent endpoint hides
the panel at once instead of holding a spinner for several seconds.
@danieltruong
danieltruong merged commit fddc6a0 into react Sep 11, 2026
8 checks passed
@danieltruong
danieltruong deleted the feat-recent-uploads branch September 11, 2026 22:50
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