Skip to content

Let clients reorder the pins - #81

Merged
markusressel merged 1 commit into
masterfrom
pin-order
Nov 7, 2026
Merged

markusressel merged 1 commit into
masterfrom
pin-order

Conversation

@markusressel

Copy link
Copy Markdown
Member

Requested by web, so pinned pages can be reordered on the dashboard. Specified in docs/dashboard.md ("Order").

  • PUT /pins/family/order/ (editors, admins) and PUT /pins/personal/order/ (every account), body {"documentIds": [...]}. The answer is the GET /pins/ body.
  • The listed documents come first, in that order. Unknown or unpinned ids are ignored, and the pins that are not listed follow in their order.
  • pins-changed is sent as for pin and unpin, only when the order changed.
  • server-info features gain pin-order.

Behavior change: GET /pins/ returns the stored order, and new pins go to the end instead of the top. A migration keeps existing pins in the newest-first order they were listed in. Pins keep their place when their document moves.

Tests: reorder rules, the migration of an old database, and the API with roles, events and a bad body.

🤖 Generated with Claude Code

PUT /pins/{family,personal}/order/ with the document ids in the new order,
with the rights of pinning in that list. New pins go to the end, pins from
before keep their newest-first order. Feature "pin-order".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@markusressel
markusressel merged commit e8297fb into master Nov 7, 2026
13 checks passed
@markusressel
markusressel deleted the pin-order branch November 7, 2026 13:21
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.

1 participant