diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-29 18:17:07 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-29 18:17:07 -0500 |
| commit | 7f3b9cb7bfce8b55e515f6be1bf0cb917d570c4a (patch) | |
| tree | 2f9ddc97ea8a8306b0669410602b6b74e08c4d01 /Omni/Ide | |
| parent | 4ef0658b1eb2943ac14dfa3c447f538289e6f50d (diff) | |
Fix Recent Activity pagination and refresh bugs
Build and tests pass. The implementation is complete:
**Summary of changes to
[Omni/Jr/Web.hs](file:///home/ben/omni/Omni/Jr/W
1. Added `Data.Time.Clock.POSIX` import for `posixSecondsToUTCTime` and
2. Replaced `RecentActivityPartial` with two new types:
- `RecentActivityNewPartial` - for auto-refresh (prepends new items)
- `RecentActivityMorePartial` - for "Load More" pagination
3. Updated API routes:
- `/partials/recent-activity-new?since=<unix-ts>` - returns new
items - `/partials/recent-activity-more?offset=<n>` - returns
paginated old
4. Updated `HomePage` render with proper HTMX attributes:
- Added `#recent-activity` ID and `data-newest-ts` attribute
- Added `#activity-list` ID for the list container - Added
`#activity-load-more` ID for the button - Updated hx-targets and
hx-swap attributes
5. Added `taskToUnixTs` helper function
6. Created two new ToHtml instances with OOB updates for button
replacem
Task-Id: t-169
Diffstat (limited to 'Omni/Ide')
0 files changed, 0 insertions, 0 deletions
