forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/api/__tests__/events/events.test.tsClear filter

2026-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
chore: 🧪 migrate tests from bun:test to vitestBurak Boduroğlu · b0a9db1
chore: 🧪 migrate tests from bun:test to vitest

- replace bun:test imports with vitest in all 3 test files
- add vitest.config.ts with @ alias and test config
- add vitest dev dependency and test/watch npm scripts
- create src/api/__tests__/ directory for future API tests