feat/projects-actions-tools-reorganize - #897
Merged
Merged
Conversation
…fix hasCommonsBook flag missing
jakeaturner
force-pushed
the
feat/projects-actions-tools-reorganize
branch
from
August 10, 2026 21:58
5c496d8 to
9bc7064
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Project view UI by reorganizing “Important Actions” and moving key authoring-related utilities into a new “Co-Authoring Tools” section, while also correcting the server-side hasCommonsBook flag exposed to the client.
Changes:
- Fix the server aggregation output to return
hasCommonsBook(instead ofhasBookData). - Refactor the Project view to split actions into
ProjectLinkButtonsand a newProjectCoAuthoringToolsButtonscomponent. - Extend the background project sync projection to include
thumbnail.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| server/api/projects.js | Renames the computed field to hasCommonsBook; includes thumbnail in background sync projection. |
| client/src/components/projects/ProjectView.jsx | Wires updated props into ProjectLinkButtons and adds ProjectCoAuthoringToolsButtons to the layout. |
| client/src/components/projects/ProjectLinkButtons.tsx | Reorganizes “Important Actions” buttons and adds ADAPT/publish actions into the component. |
| client/src/components/projects/ProjectCoAuthoringToolsButtons.tsx | New component encapsulating co-authoring utilities (Remixer, Restacker, Glossary, Reader Resources). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+26
to
+30
| const validBook = libreCoverID && libreLibrary; | ||
| if (projectClassification === ProjectClassification.MINI_REPO) return null; | ||
| if (!validBook && !hasCommonsBook) return null; | ||
| if (!isProjectMemberOrAdmin) return null; | ||
|
|
Comment on lines
+10
to
+13
| libreCoverID?: string; | ||
| libreLibrary?: string; | ||
| projectClassification?: string; | ||
| projectID?: string; |
| /> | ||
| </> | ||
| )} | ||
| {projectVisibility === "public" && ( |
| <Icon name="external alternate" className="!ml-2" /> | ||
| </Button> | ||
| )} | ||
| {isProjectMemberOrAdmin && !hasCommonsBook && didCreateWorkbench && ( |
Comment on lines
+28
to
+33
| libreCoverID?: string; | ||
| libreLibrary?: string; | ||
| project: object; | ||
| projectClassification?: string; | ||
| projectID?: string; | ||
| projectLink?: string; |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
jakeaturner
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hasCommonsBookflag returned from server