[PR #3060] [CLOSED] Add Sorting functionality within the chapter #6126

Closed
opened 2026-02-05 10:25:03 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/3060
Author: @Shubhamt04
Created: 11/18/2021
Status: Closed

Base: developmentHead: Chapter-sorting


📝 Commits (8)

  • 368754f Add functionality to sort chapter
  • aede5bf Merge branch 'master' into Chapter-sorting
  • faa6c62 Fix issue with updating sorting pattern
  • b529d6b Merge branch 'master' into Chapter-sorting
  • 5c52033 Update web APIs
  • 7bfc401 Fix permission issue with updating chapter sorting info
  • 4c4294f Format the code
  • 38bbaa1 Update lang entities for chapter sort

📊 Changes

10 files changed (+425 additions, -12 deletions)

View changed files

📝 app/Actions/ActivityType.php (+1 -0)
📝 app/Entities/Tools/BookContents.php (+60 -12)
app/Http/Controllers/ChapterSortController.php (+80 -0)
resources/js/components/chapter-sort.js (+189 -0)
📝 resources/js/components/index.js (+2 -0)
📝 resources/lang/en/entities.php (+9 -0)
resources/views/chapters/parts/sort-box.blade.php (+26 -0)
📝 resources/views/chapters/show.blade.php (+4 -0)
resources/views/chapters/sort.blade.php (+50 -0)
📝 routes/web.php (+4 -0)

📄 Description

Added sorting functionality with the chapter:

  • Able to sort the pages within the chapter based on selected filter.
  • Able to save/update the sorting pattern for sorting.
  • Added Chapter sorting entities for en language.

image

image


🔄 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/BookStackApp/BookStack/pull/3060 **Author:** [@Shubhamt04](https://github.com/Shubhamt04) **Created:** 11/18/2021 **Status:** ❌ Closed **Base:** `development` ← **Head:** `Chapter-sorting` --- ### 📝 Commits (8) - [`368754f`](https://github.com/BookStackApp/BookStack/commit/368754f52bc44d64ff93cc7a6fcdac7fd4b39717) Add functionality to sort chapter - [`aede5bf`](https://github.com/BookStackApp/BookStack/commit/aede5bf76a4c77f821c085be79a18a8bc84e7ac1) Merge branch 'master' into Chapter-sorting - [`faa6c62`](https://github.com/BookStackApp/BookStack/commit/faa6c62084eac1931bf9bddf153ca283cda27ff9) Fix issue with updating sorting pattern - [`b529d6b`](https://github.com/BookStackApp/BookStack/commit/b529d6bb9649e6855113fe1c625590f2c17b0251) Merge branch 'master' into Chapter-sorting - [`5c52033`](https://github.com/BookStackApp/BookStack/commit/5c52033cec1f399c9429507df7ca598496401c6b) Update web APIs - [`7bfc401`](https://github.com/BookStackApp/BookStack/commit/7bfc4015989f6b6e4b7cd86a8d4bd913cf02f965) Fix permission issue with updating chapter sorting info - [`4c4294f`](https://github.com/BookStackApp/BookStack/commit/4c4294fbc0fa544acc52ef74054a9888c8254c2d) Format the code - [`38bbaa1`](https://github.com/BookStackApp/BookStack/commit/38bbaa18ee29235c150bde817f58dd5a43711c6c) Update lang entities for chapter sort ### 📊 Changes **10 files changed** (+425 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `app/Actions/ActivityType.php` (+1 -0) 📝 `app/Entities/Tools/BookContents.php` (+60 -12) ➕ `app/Http/Controllers/ChapterSortController.php` (+80 -0) ➕ `resources/js/components/chapter-sort.js` (+189 -0) 📝 `resources/js/components/index.js` (+2 -0) 📝 `resources/lang/en/entities.php` (+9 -0) ➕ `resources/views/chapters/parts/sort-box.blade.php` (+26 -0) 📝 `resources/views/chapters/show.blade.php` (+4 -0) ➕ `resources/views/chapters/sort.blade.php` (+50 -0) 📝 `routes/web.php` (+4 -0) </details> ### 📄 Description Added sorting functionality with the chapter: - Able to sort the pages within the chapter based on selected filter. - Able to save/update the sorting pattern for sorting. - Added Chapter sorting entities for `en` language. ![image](https://user-images.githubusercontent.com/85024827/143241326-134f71bb-2d01-4a41-b97c-9b0cbab202a5.png) ![image](https://user-images.githubusercontent.com/85024827/143241248-f03809fa-77d1-4ea0-8efe-6706729c50d6.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:25:03 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6126