mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-08-22 07:23:49 +00:00
* feat: Recently Viewed section for notebooks and sources Fixes #850 * fix: export RecentlyViewedResponse type from api types The RecentlyViewed component and notebooks API client import RecentlyViewedResponse from @/lib/types/api but the interface was missing, failing the type-check build. Add it to match the backend api/models.py model. * fix: harden recently-viewed read path and index the recency query Three robustness fixes on the recently-viewed feature: - Make the last_viewed_at write-on-read stamping best-effort. _stamp_source_view and _stamp_notebook_view now swallow and log their own errors, so a failed stamp update can no longer turn a successful GET /sources/{id} or GET /notebooks/{id} into a 500. - Stop leaking internal details from GET /recently-viewed: log the full exception server-side and return a generic error message to the client. - Add indexes on last_viewed_at for the notebook and source tables in migration 16 so the ORDER BY last_viewed_at DESC LIMIT recently-viewed query does not degrade into a full table scan as data grows. The down migration removes the indexes before dropping the field. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * feat: register migration 18, add recently-viewed i18n keys and CHANGELOG entry --------- Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Luis Novo <lfnovo@gmail.com> |
||
|---|---|---|
| .. | ||
| 1.surrealql | ||
| 1_down.surrealql | ||
| 2.surrealql | ||
| 2_down.surrealql | ||
| 3.surrealql | ||
| 3_down.surrealql | ||
| 4.surrealql | ||
| 4_down.surrealql | ||
| 5.surrealql | ||
| 5_down.surrealql | ||
| 6.surrealql | ||
| 6_down.surrealql | ||
| 7.surrealql | ||
| 7_down.surrealql | ||
| 8.surrealql | ||
| 8_down.surrealql | ||
| 9.surrealql | ||
| 9_down.surrealql | ||
| 10.surrealql | ||
| 10_down.surrealql | ||
| 11.surrealql | ||
| 11_down.surrealql | ||
| 12.surrealql | ||
| 12_down.surrealql | ||
| 13.surrealql | ||
| 13_down.surrealql | ||
| 14.surrealql | ||
| 14_down.surrealql | ||
| 15.surrealql | ||
| 15_down.surrealql | ||
| 16.surrealql | ||
| 16_down.surrealql | ||
| 17.surrealql | ||
| 17_down.surrealql | ||
| 18.surrealql | ||
| 18_down.surrealql | ||