[PR #1366] [MERGED] Add a 'Create New Book' button on shelf list #5803

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

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/1366
Author: @cnfw
Created: 4/3/2019
Status: Merged
Merged: 4/15/2019
Merged by: @ssddanbrown

Base: masterHead: feature/create-book-button-on-shelves


📝 Commits (4)

  • faa3a8b Add button to add a book directly from a shelf view
  • 50a9c71 Add tests for creating a book and adding directly to a shelf
  • d3cd369 Fix phpcs issues
  • 8441900 Update create new book button on shelves to 2019 design

📊 Changes

6 files changed (+96 additions, -16 deletions)

View changed files

📝 app/Auth/Permissions/PermissionService.php (+1 -1)
📝 app/Http/Controllers/BookController.php (+37 -4)
📝 resources/views/books/create.blade.php (+21 -11)
📝 resources/views/shelves/show.blade.php (+13 -0)
📝 routes/web.php (+2 -0)
📝 tests/Entity/BookShelfTest.php (+22 -0)

📄 Description

A solution for #1260 .
image

Some notes:

  • When a book is added, it is added to the top of the shelf.
  • When a book is added, you get redirected back to the shelf rather than the new book. This works for me, but may not work for the majority.

🔄 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/1366 **Author:** [@cnfw](https://github.com/cnfw) **Created:** 4/3/2019 **Status:** ✅ Merged **Merged:** 4/15/2019 **Merged by:** [@ssddanbrown](https://github.com/ssddanbrown) **Base:** `master` ← **Head:** `feature/create-book-button-on-shelves` --- ### 📝 Commits (4) - [`faa3a8b`](https://github.com/BookStackApp/BookStack/commit/faa3a8b8427a1243a9acec014f789406460d10ba) Add button to add a book directly from a shelf view - [`50a9c71`](https://github.com/BookStackApp/BookStack/commit/50a9c71de092eab835b9b3b6a8ffd34aede2e3a2) Add tests for creating a book and adding directly to a shelf - [`d3cd369`](https://github.com/BookStackApp/BookStack/commit/d3cd369247a4c49e626264e40528174b309d241c) Fix phpcs issues - [`8441900`](https://github.com/BookStackApp/BookStack/commit/84419005e73f9b3bc8a6f4d074c27a11df1439dc) Update create new book button on shelves to 2019 design ### 📊 Changes **6 files changed** (+96 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `app/Auth/Permissions/PermissionService.php` (+1 -1) 📝 `app/Http/Controllers/BookController.php` (+37 -4) 📝 `resources/views/books/create.blade.php` (+21 -11) 📝 `resources/views/shelves/show.blade.php` (+13 -0) 📝 `routes/web.php` (+2 -0) 📝 `tests/Entity/BookShelfTest.php` (+22 -0) </details> ### 📄 Description A solution for #1260 . <img width="452" alt="image" src="https://user-images.githubusercontent.com/1470412/55472847-029a4280-5605-11e9-9c2e-717cd588e5e8.png"> Some notes: - When a book is added, it is added to the top of the shelf. - When a book is added, you get redirected back to the shelf rather than the new book. This works for me, but may not work for the majority. --- <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:17:32 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5803