Skip to content

perf(home): una petición por periodo para las entradas importantes del libro - #25

Merged
bpstack merged 1 commit into
claude/compassionate-planck-gh6aoffrom
opencode/fix-home-logbooks
Oct 12, 2026
Merged

bpstack merged 1 commit into
claude/compassionate-planck-gh6aoffrom
opencode/fix-home-logbooks

Conversation

@bpstack

@bpstack bpstack commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Cambios

  • El panel de inicio carga las entradas importantes con una sola petición paginada a /api/logbooks/all en vez de una por día (31 en el periodo mes).

Por qué

Cada periodo lanzaba decenas de peticiones para mostrar lo mismo.

…eriod

- Add logbooksApi.getLogbooksInRange, which reads /api/logbooks/all for a
  date range, 500 entries per page.
- Use it in the home panel instead of one /day request per date, sorting
  the dates first (the week comes newest first).

With the month period the panel sent up to 31 requests in parallel; /all
filters by the same entry day, so the result is the same with one.
@bpstack
bpstack merged commit dac5d76 into claude/compassionate-planck-gh6aof Oct 12, 2026
4 checks passed
@vercel

vercel Bot commented Oct 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
four-points Ready Ready Preview Oct 12, 2026 6:53pm UTC

@bpstack
bpstack deleted the opencode/fix-home-logbooks branch October 12, 2026 19:02

This branch was successfully deployed

1 active deployment
Preview — 3c187411 Deployed Oct 12, 2026 by vercel[bot]
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