Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort rules #5457

Merged
merged 17 commits into from
Feb 11, 2025
Merged

Sort rules #5457

merged 17 commits into from
Feb 11, 2025

Conversation

ssddanbrown
Copy link
Member

@ssddanbrown ssddanbrown commented Jan 30, 2025

Allows centrally managed (admin) sets of sort rules which can be applied to books.

Related to #2065, touches upon #1777

Todo

  • Book level control UI
    • However done, consider how this is reflected in book sort UI
  • Consider what to do on sort set change (reapply to all assigned books)?
  • Better delete UX? (control/visibility of assigned books)
  • Show assigned books?
  • CLI to mass apply to books?
  • Consider effect of timestamp touching.
  • Testing
    • Test sort set settings screens/actions
    • Test actual sort events (page creation, chapter update etc..).

Doc Updates

  • Update organising content page with guidance on sort rules, and maybe details of sort options.
  • Upgrade notice: Basic sort changes will no longer touch the update date of chapters/pages.
  • Commands: Document bookstack:assign-sort-rule

@ssddanbrown ssddanbrown added this to the Next Feature Release milestone Jan 30, 2025
@ssddanbrown ssddanbrown self-assigned this Jan 30, 2025
Extracted much code to be shared with the shelf books management UI
- Changes to a sort set will now auto-apply to assinged books (basic
  chunck through all on save).
- Added book count indicator to sort set list items.
- Deletion now has confirmation and auto-handling of assigned
  books/settings.
Includes indicator on books added to sort operation.
Just for test view, actual functionality of autosort on change still
needs to be tested.
Renamed based on feedback from Tim and Script on Discord.
Also fixed flaky test
- Renamed AssignSortSetCommand to AssignSortRuleCommand, updated
  contents and testing.
- Updated sorting operations to not update timestamps if only priority
  is changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant