feat(releases): sortable inbox columns and split observed/released dates#29
Merged
Conversation
Deploying codex with
|
| Latest commit: |
bf8c06f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8c8d5fc9.codex-asm.pages.dev |
| Branch Preview URL: | https://release-ledger-sort.codex-asm.pages.dev |
Add clickable column sorting to the releases inbox (Series, Observed, Released), with the choice persisted per-user in a Zustand store backed by localStorage. Sorting is applied server-side before pagination so it orders the whole result set, not just the current page. Split the overloaded `observed_at` timestamp into two distinct fields: - `observed_at` now means when Codex detected the release (set by the plugin to poll time). - `released_at` is a new nullable column holding the upstream publish date (the feed's pubDate), shown as a dedicated, sortable column and rendered as a dash when the source provides no date. The MangaUpdates and Nyaa plugins now emit `observedAt` and `releasedAt` separately; the dedup key (externalReleaseId) is unchanged so re-polls still collapse onto existing rows. The plugin contract addition is backward compatible: `releasedAt` is optional and absent values persist as NULL. A migration adds the nullable `released_at` column, backfills existing rows (released_at = old observed_at, observed_at = created_at), and adds a partial index for release-date sorting. The Released sort orders NULL dates last in both directions with a stable id tiebreaker, and the default Series ordering is preserved. Narrow the Series cell and allow it to wrap so the date columns stay on a single line. Regenerate the OpenAPI spec and TypeScript types. Add backend and frontend tests for sorting, the new field, and the preferences store.
fd00254 to
bf8c06f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add clickable column sorting to the releases inbox (Series, Observed, Released), with the choice persisted per-user in a Zustand store backed by localStorage. Sorting is applied server-side before pagination so it orders the whole result set, not just the current page.
Split the overloaded
observed_attimestamp into two distinct fields:observed_atnow means when Codex detected the release (set by the plugin to poll time).released_atis a new nullable column holding the upstream publish date (the feed's pubDate), shown as a dedicated, sortable column and rendered as a dash when the source provides no date.The MangaUpdates and Nyaa plugins now emit
observedAtandreleasedAtseparately; the dedup key (externalReleaseId) is unchanged so re-polls still collapse onto existing rows. The plugin contract addition is backward compatible:releasedAtis optional and absent values persist as NULL.A migration adds the nullable
released_atcolumn, backfills existing rows (released_at = old observed_at, observed_at = created_at), and adds a partial index for release-date sorting.The Released sort orders NULL dates last in both directions with a stable id tiebreaker, and the default Series ordering is preserved. Narrow the Series cell and allow it to wrap so the date columns stay on a single line.
Regenerate the OpenAPI spec and TypeScript types. Add backend and frontend tests for sorting, the new field, and the preferences store.