Commits
Commits on
c35a83aa3f65a20c8a2fdfd2dfdb3e35878741b5Filtered to src/api/events/getEvents.tsClear filter2026-07-25
feat: 🔭 ask the shell feed for the next rows, not every rowAhmet Kaan Gümüş · 5d93c16
feat: 🔭 ask the shell feed for the next rows, not every row The feed polls events and exams for the upcoming badge and the calendar dot, and until now `limit` truncated the newest-created end — an event scheduled for tomorrow could sit behind a hundred rows created after it. So the feed asked for everything: ~3.37 MB a poll at 5000 rows apiece, re-fetched on every right-nav tab open. The backend now takes `ends_after`, which keeps the rows whose window has not finished and flips the order to soonest-first, so a limit finally cuts the right end. 50 per source is about the next month at a busy school and roughly 15 KB. Both consumers re-filter against the live clock and sort for themselves, so the order flip reaches neither of them.
2026-07-21
refactor: 🗃️ restructure API layer into domain folders and add vitest coverage - move 110+ flat API endpoints into domain-specific subdirectories (e.g., auth, courses, exams, notes, etc.) - add index.ts exports to each domain folder for clean namespace imports - update 70+ components and pages to use the new domain-based API import paths - add comprehensive vitest unit tests (~150 tests) for all API endpoints using fetch mocking - update AGENTS.md rulebook to mandate domain-based folder structure for future API additions - migrate existing bun:test test files in src/lib/ to vitest for consistencyBurak Boduroğlu · 6452b17
refactor: 🗃️ restructure API layer into domain folders and add vitest coverage - move 110+ flat API endpoints into domain-specific subdirectories (e.g., auth, courses, exams, notes, etc.) - add index.ts exports to each domain folder for clean namespace imports - update 70+ components and pages to use the new domain-based API import paths - add comprehensive vitest unit tests (~150 tests) for all API endpoints using fetch mocking - update AGENTS.md rulebook to mandate domain-based folder structure for future API additions - migrate existing bun:test test files in src/lib/ to vitest for consistency