Skip to content

Allow Re-Ordering of Sources in a Column#245

Merged
ricoberger merged 1 commit intomainfrom
allow-re-ordering-of-sources-in-a-column
Apr 19, 2025
Merged

Allow Re-Ordering of Sources in a Column#245
ricoberger merged 1 commit intomainfrom
allow-re-ordering-of-sources-in-a-column

Conversation

@ricoberger
Copy link
Member

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.

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.
@ricoberger ricoberger self-assigned this Apr 19, 2025
@ricoberger ricoberger added the changelog: added A new feature was added label Apr 19, 2025
@ricoberger ricoberger moved this to In Progress in FeedDeck Apr 19, 2025
@ricoberger ricoberger added this to the v1.5.0 milestone Apr 19, 2025
@ricoberger ricoberger merged commit bf95846 into main Apr 19, 2025
11 checks passed
@ricoberger ricoberger deleted the allow-re-ordering-of-sources-in-a-column branch April 19, 2025 13:08
@github-project-automation github-project-automation bot moved this from In Progress to Done in FeedDeck Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: added A new feature was added

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant