Skip to content

Drag to reorder active tracking categories [superseded by #89]#82

Merged
mapgie merged 4 commits into
mainfrom
claude/goflo-sprint-4b-v2
Jun 2, 2026
Merged

Drag to reorder active tracking categories [superseded by #89]#82
mapgie merged 4 commits into
mainfrom
claude/goflo-sprint-4b-v2

Conversation

@mapgie
Copy link
Copy Markdown
Owner

@mapgie mapgie commented Jun 2, 2026

Replaces #80 — rebased on top of the BOM bump (#81) so animateItem() (stable in Compose 1.7) can be used directly. Clean single commit.

Summary

  • Drag to reorder active categories — long-press the drag handle (≡) on any active tracking category to pick it up and drag it to a new position. Items animate smoothly as you drag. The new order is written to displayOrder on release and persists across app restarts.
  • Works alongside existing swipe-to-archive (left) and swipe-to-delete (right) gestures — the long-press requirement prevents accidental activation.
  • System categories (Flow, Symptoms) are also reorderable.
  • Archived categories have no drag handle.

Merge order

Merge #81 first, then this PR.

Test plan

  • Long-press drag handle on a category and drag up/down — items swap smoothly
  • Release drag — order persists after navigating away and back
  • Swipe left/right — archive/delete still work normally
  • App restart — categories appear in the new order
  • Archived section unaffected

https://claude.ai/code/session_01AGmvoYfqqkLA9SUWV6myXW


Generated by Claude Code

claude added 3 commits June 2, 2026 07:12
Bumps composeBom from 2024.06.00 to 2024.12.01, bringing Compose UI 1.7.6
and Material3 1.3.1. No user-visible changes. Unblocks use of stable
Compose 1.7 APIs (e.g. animateItem() instead of animateItemPlacement()).

https://claude.ai/code/session_01AGmvoYfqqkLA9SUWV6myXW
androidx.compose.ui:ui-graphics and ui-tooling-preview are both
implementation deps (shipped in the release APK) but were absent
from the Open Source Licences screen.

https://claude.ai/code/session_01AGmvoYfqqkLA9SUWV6myXW
Long-press the drag handle on any active tracking category to pick it
up and drag it to a new position. Items animate into place as you drag.
The new order is written to displayOrder on release and persists across
app restarts. Works alongside the existing swipe-to-archive / delete
gestures.

https://claude.ai/code/session_01AGmvoYfqqkLA9SUWV6myXW
@mapgie mapgie merged commit 5890d49 into main Jun 2, 2026
4 checks passed
@mapgie mapgie deleted the claude/goflo-sprint-4b-v2 branch June 2, 2026 08:13
@mapgie mapgie changed the title Drag to reorder tracking categories (v0.22.0-beta.1) Drag to reorder active tracking categories [superseded by #89] Jun 2, 2026
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.

2 participants