mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-08 22:52:02 -05:00
[PR #245] [MERGED] Allow Re-Ordering of Sources in a Column #235
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/feeddeck/feeddeck/pull/245
Author: @ricoberger
Created: 4/19/2025
Status: ✅ Merged
Merged: 4/19/2025
Merged by: @ricoberger
Base:
main← Head:allow-re-ordering-of-sources-in-a-column📝 Commits (1)
4c68292Allow Re-Ordering of Sources in a Column📊 Changes
4 files changed (+187 additions, -131 deletions)
View changed files
📝
app/lib/repositories/app_repository.dart(+97 -76)📝
app/lib/widgets/column/header/column_layout_header_settings_sources.dart(+53 -19)📝
app/lib/widgets/source/source_list_item.dart(+31 -36)➕
supabase/migrations/20250419122600_add_postion_field_to_sources.sql(+6 -0)📄 Description
It is now possible to re-order sources in a column by dragging them into
a new position. To achieve this a new
positionfield was added to thesourcescolumn, which contains the index of the source in the column.We also added a new
updateSourcePositionsfunction, which is used tosort the sources locally and update
positionfield in the databaseafterwards. The dragging is handled via a
ReorderableListViewwidget.Last but not least the selection of sources from the database was
changed, so order them by the
positioncolumn and if the column isnullby thecreatedAtdata as it was before.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.