Skip to content

feat(team-library): editors publish to the Team Library and see their role - #4472

Merged
datlechin merged 4 commits into
feat/core-account-company-serverfrom
feat/team-editor-role
Nov 24, 2026
Merged

datlechin merged 4 commits into
feat/core-account-company-serverfrom
feat/team-editor-role

Conversation

@datlechin

@datlechin datlechin commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Stacked on #4470, which carries #4471: merge after it. The paired TableProApp/docs PR (docs(team): the editor role) is still to open.

  • macOS: AccountMembership.writesTeamLibrary (owner, admin, editor) is the one place the app lists the writer roles. TeamLibrarySync sets canWrite from it, so an editor publishes and keeps its unpushed edits; a member or an unknown role still only reads.
  • macOS: Settings > Account names the role "Editor" under the key team.role.editor, since the plain "Editor" key already names the code editor. The refusal reads "Only the team's owner, admins and editors publish to its library."
  • Linux: Settings > Account names the role through pgettext("team role", "Editor").
  • Linux: vi.po is re-merged with gettext 1.0 msgmerge against this tree's template: the editor entry, 12 strings left untranslated before (two of them feat(core): sign in to a company server and verify its license #4470's account server errors), obsolete entries dropped, comments rewrapped.
  • The role comes from cloud M27.9. Without it no account is an editor, and nothing here changes.
  • Shipped macOS 0.86 to 0.89.0-beta.1 (/v2) read the library only for an editor; 0.85 and earlier publish over /v1.
  • No core, FFI, Windows or iOS change.
  • Renamed tests: TeamLibrarySyncTests.pullOnlyMemberNeverPushes ("A member pulls and never pushes"), Linux a_team_plan_only_its_owner_can_fix_opens_no_billing_for_an_admin_an_editor_a_member_or_an_unknown_role.
  • The account-local-stack probe seeds a seated editor and checks the server applies its push.

Test plan

  • Fail on feat(core): sign in to a company server and verify its license #4470's head: TeamLibrarySyncTests.writersByRole (editor case), editorPublishes, editorKeepsItsEdits, adminMadeEditorKeepsItsEdits, WelcomeViewModelTeamLibraryTests.editorPublishesConnections, the editor block of AccountSettingsContentTests.teamMembership.
  • Also new: editorMadeMemberDropsItsEdits; demotedWriterDropsItsEdits now goes through the shared storedEdits setup.
  • Linux account_view: an editor row reads "Editor · Holds a seat", role_name("editor"), and an editor gets no billing action.
  • verify.sh on this tree: build, l10n, lint (9 files, 0 violations), and the three suites above (85 passed).
  • po/check-complete.sh against a template built in ubuntu:26.10 as the Translations job builds it: vi 2836 translated, 0 fuzzy, 0 untranslated. msgfmt --check passes.
  • account-local-stack probe against cloud m27/team-editor (migration 34): the editor signs in with its seat key, may publish, its publish is pushed and the server applies it. 47 passed, 3 failed; feat(core): sign in to a company server and verify its license #4470's head fails the same 3 against the same stack (interactive sign-in finds no mail code, and two /v1 cache checks).

Screenshots

Settings > Account > Teams, an editor seated in Acme.

Before After
macOS, light macOS teams before, light macOS teams after, light
macOS, dark macOS teams before, dark macOS teams after, dark
Linux, light Linux teams before, light Linux teams after, light
Linux, dark Linux teams before, dark Linux teams after, dark

@datlechin
datlechin changed the base branch from main to feat/core-account-company-server November 24, 2026 10:12
@datlechin
datlechin force-pushed the feat/team-editor-role branch from ee210a5 to 8409cca Compare November 24, 2026 10:12
@datlechin
datlechin merged commit 0a0f274 into feat/core-account-company-server Nov 24, 2026
56 of 58 checks passed
@datlechin
datlechin deleted the feat/team-editor-role branch November 24, 2026 17:18
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.

1 participant