It is now possible to re-order sources in a column by dragging them into
a new position. To achieve this a new position field was added to the sources column, which contains the index of the source in the column.
We also added a new updateSourcePositions function, which is used to
sort the sources locally and update position field in the database
afterwards. The dragging is handled via a ReorderableListView widget.
Last but not least the selection of sources from the database was
changed, so order them by the position column and if the column is null by the createdAt data as it was before.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/feeddeck/feeddeck/pull/245
**Author:** [@ricoberger](https://github.com/ricoberger)
**Created:** 4/19/2025
**Status:** ✅ Merged
**Merged:** 4/19/2025
**Merged by:** [@ricoberger](https://github.com/ricoberger)
**Base:** `main` ← **Head:** `allow-re-ordering-of-sources-in-a-column`
---
### 📝 Commits (1)
- [`4c68292`](https://github.com/feeddeck/feeddeck/commit/4c68292448c9c4843c1e0bf6b2d9deaa01a92211) Allow Re-Ordering of Sources in a Column
### 📊 Changes
**4 files changed** (+187 additions, -131 deletions)
<details>
<summary>View changed files</summary>
📝 `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)
</details>
### 📄 Description
It is now possible to re-order sources in a column by dragging them into
a new position. To achieve this a new `position` field was added to the
`sources` column, which contains the index of the source in the column.
We also added a new `updateSourcePositions` function, which is used to
sort the sources locally and update `position` field in the database
afterwards. The dragging is handled via a `ReorderableListView` widget.
Last but not least the selection of sources from the database was
changed, so order them by the `position` column and if the column is
`null` by the `createdAt` data as it was before.
<!--
Keep PR title verbose enough and add prefix telling about what source it touches e.g "[rss] Add feature xyz" or if the
the PR is not realated to a source use "[core]", e.g. "[core] Fix xyz".
If you add a breaking change within your PR you should add ":warning:" to the title,
e.g. ":warning: [core] My breaking change"
-->
<!--
Description of what have been changed. Please also reference an issue, when available.
-->
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.