[PR #245] [MERGED] Allow Re-Ordering of Sources in a Column #235

Closed
opened 2025-10-31 17:00:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: mainHead: allow-re-ordering-of-sources-in-a-column


📝 Commits (1)

  • 4c68292 Allow 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 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>
GiteaMirror added the pull-request label 2025-10-31 17:00:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/feeddeck#235