Skip to content

feat: Add configurable default post sort order#1460

Open
AZAA wants to merge 1 commit intogetfider:mainfrom
AZAA:feat/default-sort
Open

feat: Add configurable default post sort order#1460
AZAA wants to merge 1 commit intogetfider:mainfrom
AZAA:feat/default-sort

Conversation

@AZAA
Copy link

@AZAA AZAA commented Feb 17, 2026

Summary

Adds an admin setting in General Settings to configure the default post sort order (Trending, Most Wanted, Recent, Most Discussed).

Previously the frontend always fell back to "Trending" regardless of any server-side configuration. Now the tenant's defaultSort setting is respected both server-side (in the handler) and client-side (in the PostsContainer component).

Changes

  • New database migration: default_sort column on tenants table (defaults to trending to preserve existing behavior)
  • Backend: entity, command, action, handler, and store updates to persist and read the setting
  • Frontend: Default Sort dropdown in General Settings, fixed PostsContainer/PostsSort fallback

Testing

  • UI tests: 117/117 passing
  • Manual testing: change default sort in admin settings, verify homepage respects it without ?view= param

Add an admin setting in General Settings to configure the default post
sort order (Trending, Most Wanted, Recent, Most Discussed).

Previously the frontend always fell back to "trending" regardless of
any server-side configuration. Now it reads the tenant's defaultSort
setting both server-side (in the handler) and client-side (in the
PostsContainer component).

Includes database migration to add default_sort column to tenants table.
@AZAA AZAA force-pushed the feat/default-sort branch from ac4398f to 0513879 Compare February 17, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant