Skip to content

feat/projects-actions-tools-reorganize - #897

Merged
jakeaturner merged 2 commits into
stagingfrom
feat/projects-actions-tools-reorganize
Aug 10, 2026
Merged

feat/projects-actions-tools-reorganize#897
jakeaturner merged 2 commits into
stagingfrom
feat/projects-actions-tools-reorganize

Conversation

@ethanaturner

Copy link
Copy Markdown
Member
  • Reorganize Important Actions in Project view
  • Reorganize Important Tools into Co-Authoring Tools in Project view
  • Fix hasCommonsBook flag returned from server

@ethanaturner
ethanaturner changed the base branch from master to staging August 8, 2026 18:45
Comment thread client/src/components/projects/ProjectCoAuthoringToolsButtons.tsx
@jakeaturner
jakeaturner force-pushed the feat/projects-actions-tools-reorganize branch from 5c496d8 to 9bc7064 Compare August 10, 2026 21:58
@jakeaturner
jakeaturner requested a lite review from Copilot August 10, 2026 22:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 of hasBookData).
  • Refactor the Project view to split actions into ProjectLinkButtons and a new ProjectCoAuthoringToolsButtons component.
  • 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 thread client/src/components/projects/ProjectCoAuthoringToolsButtons.tsx Outdated
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
jakeaturner merged commit c899aab into staging Aug 10, 2026
5 checks passed
@jakeaturner
jakeaturner deleted the feat/projects-actions-tools-reorganize branch August 10, 2026 22:22
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.

3 participants