Skip to content

refactor: reduce payload size for homepage request#303

Open
7eliassen wants to merge 2 commits into
mainfrom
refactor/opmimize-notes-request
Open

refactor: reduce payload size for homepage request#303
7eliassen wants to merge 2 commits into
mainfrom
refactor/opmimize-notes-request

Conversation

@7eliassen

Copy link
Copy Markdown
Contributor

Problem

Currently, when the homepage loads, the frontend receives the full data for all notes — including their content. This content is not used at all, yet it increase the transferred payload to several megabytes. As a result, the user experiences a noticeable delay before the note list appears, since the UI waits for the entire response to be received.

Solution

Limit the transmitted data to only the necessary fields. The content field now contains only the note header (first block) instead of the full body, significantly reducing response size and improving load time.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 85.8% (🎯 80%)
⬆️ +0.03%
9303 / 10842
🔵 Statements 85.8% (🎯 80%)
⬆️ +0.03%
9303 / 10842
🔵 Functions 79.6% (🎯 80%)
⬆️ +0.05%
285 / 358
🔵 Branches 84.81% (🎯 80%)
⬆️ +0.03%
469 / 553
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/domain/entities/notePublic.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/presentation/http/router/noteList.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
Generated in workflow #926 for commit 085c7a2 by the Vitest Coverage Report Action

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