Skip to content

feat(workspace): a project page says my role and why a control isn't there (abilityai/trinity-enterprise#1132, part 1) - #4392

Closed
dolho wants to merge 1 commit into
devfrom
feature/ent1132-viewer-explains
Closed

dolho wants to merge 1 commit into
devfrom
feature/ent1132-viewer-explains

Conversation

@dolho

@dolho dolho commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Part 1 of abilityai/trinity-enterprise#1132. It is frontend only: no backend or enterprise change, and no submodule bump. It covers how a person can tell where they stand on a project.

  • Role line under the goal says what the viewer's role lets them do:
    • creator: can change everything;
    • member: tasks, log and files, and who changes the rest;
    • company viewer: why they can see the project, and who can add them;
    • members-only non-member: a neutral line;
    • archived project: nothing changes until the creator restores it;
    • guest: keeps the existing guest note.
  • Withheld controls: for a non-member, one line takes the place of New task, the log entry form and Add from…, and says who can add them. The line is decided from the same canContribute / archived inputs as the control's own v-if, so the button and the line can never both show. Members never get an "ask to be added" line.
  • Verification rule: the Awaiting verification group says who confirms a finished task: a member, or the steward agent by name when it is active on the project (only then can it verify, projects/work.py).

Part 2, Ask to join, waits on the person-request schema ruling (abilityai/trinity-enterprise#1137, latest comment). It is the same request lane ent#1131 PR-B needs.

Changes

  • src/frontend/src/components/portal/projects/projectsUtils.js: roleLine, withheldLine, verificationRule, creatorName (case-insensitive "you")
  • ProjectPage.vue (role line), ProjectTasks.vue, ProjectLog.vue, ProjectMaterial.vue (withheld line, verification rule)
  • tests/unit/workspaceProjectsEnt1132.mount.spec.js: 17 mount tests for creator, member, company viewer and guest
  • docs/user-docs/sharing-and-access/workspace-projects.md

Test Plan

  • npx vitest run tests/unit/workspaceProjectsEnt1132.mount.spec.js: 17 passed
  • All project and steward specs: 18 files, 203 tests passed
  • Pre-PR code review: 9 findings, all addressed. The main ones: the Members dialog repeated its existing notice, so the new line was dropped there; the role line now knows about archived projects; the line now comes from the control's own inputs; and the steward is named only when active.
  • Manual: open a company project as a non-member, a member and the creator, and check the role line and the Tasks, Log and Files tabs

Refs abilityai/trinity-enterprise#1132 (part 1 of 2; the issue stays open for Ask to join).

🤖 Generated with Claude Code

…there (Abilityai/trinity-enterprise#1132, part 1)

- the header states the viewer's role and what it lets them do (creator /
  member / company viewer; archived says nothing changes until restored;
  a guest keeps the guest note)
- where New task, the log form or Add from... is withheld from a non-member,
  one line in its place says who can add them (derived from the same inputs
  the control's v-if uses)
- the Awaiting verification rule names who confirms: a member, or the steward
  agent by name when it is active on the project

Ask to join (part 2) waits on the person-request schema ruling (#1137).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dolho

dolho commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by the combined Projects epic PR #4395 (paired with abilityai/trinity-enterprise#1194), which contains this PR's commits unchanged. Closing so review focuses there.

@dolho dolho closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui PR touches the frontend UI — triggers Playwright e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant