feat: add sort and status filter to dashboard article list#109
Merged
kingRayhan merged 3 commits intomainfrom Apr 4, 2026
Merged
feat: add sort and status filter to dashboard article list#109kingRayhan merged 3 commits intomainfrom
kingRayhan merged 3 commits intomainfrom
Conversation
- Add sort_by (title/created_at/published_at), sort_order (asc/desc), and status (all/published/draft) to myArticleInput schema - Update myArticles action to apply dynamic sorting and status filtering via sqlkit asc/isNull/isNotNull - Add sorter toolbar to DashboardArticleList with status filter tabs, sort field dropdown, and sort order toggle button Agent-Logs-Url: https://github.com/techdiary-dev/techdiary.dev/sessions/a0bc19b6-228e-48b9-8d7b-e5422cb0c559 Co-authored-by: kingRayhan <7611746+kingRayhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/techdiary-dev/techdiary.dev/sessions/a0bc19b6-228e-48b9-8d7b-e5422cb0c559 Co-authored-by: kingRayhan <7611746+kingRayhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add sorter for articles by title, status, and published date
feat: add sort and status filter to dashboard article list
Apr 4, 2026
Member
The feature is working fine #109, thanks @copilot |
kingRayhan
approved these changes
Apr 4, 2026
kingRayhan
approved these changes
Apr 4, 2026
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.

Dashboard article list had no sorting or filtering — all articles were returned newest-first with no way to filter by publish status.
Changes
Backend
myArticleInputschema — addssort_by(created_at|title|published_at, defaultcreated_at),sort_order(asc|desc, defaultdesc), andstatus(all|published|draft, defaultall)myArticlesaction — applies dynamicorderByvia sqlkitasc/descand status filter viaisNull/isNotNullonpublished_at; addsasc,isNull,isNotNullto sqlkit importsFrontend (
DashboardArticleList)useStateforsortBy,sortOrder,status; all three are included in the TanStack QueryqueryKeyso the list refetches on changecancelQueriesin both optimistic-update mutations updated to use the full query keyWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh gh issue list(http block)/usr/bin/gh gh issue list --state open(http block)Implemented a sorter/filter toolbar in the dashboard article list as requested in #108.
What Changed
Backend (
src/backend/services/inputs/article.input.ts)myArticleInputZod schema with three new optional fields (all w` (http block)