Skip to content

New: Add access widget for _access sharing (fixes #486)#490

Merged
taylortom merged 3 commits into
release/3.2.0from
issue-486
Jul 15, 2026
Merged

New: Add access widget for _access sharing (fixes #486)#490
taylortom merged 3 commits into
release/3.2.0from
issue-486

Conversation

@taylortom

@taylortom taylortom commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Fixes #486

New

  • Add an Access backbone-forms editor (app/modules/scaffold/views/scaffoldAccessView.js) that renders one exclusive-tier sharing control over the flat _access object, replacing the legacy _isShared / _shareWithUsers fields:
    • Only me{ public: false }
    • Specific people{ public: false, users: [...] } (Selectize people picker over GET api/users, reusing the existing scaffoldUsersOption template)
    • Anyone{ public: true } (clear-on-public: the in-memory people list is cleared; nothing is auto-saved)
  • Unknown _access keys are preserved on save.
  • Tier labels added to app/modules/scaffold/lang/en.json (app.scaffold.access.*).
  • Scope is public + share-with-users only — user groups (_access.groups) are intentionally out of scope for this UI.

Update

  • app/modules/scaffold/index.js getType now honours the canonical schema annotation _adapt.inputType (in addition to the legacy _backboneForms) when resolving an editor. The _access field is expected to carry _adapt.inputType: "Access" in its served schema — the UI does not force a _backboneForms type client-side.
  • Legacy _isShared / _shareWithUsers are hidden via ATTRIBUTE_BLACKLIST so they don't render alongside the widget during the cutover (the fields stay in the DB, readable, until the later contract step).
  • Read-side now reads _access instead of the legacy fields: courseModel.isEditable (app/core/models/courseModel.js) and the shared-project delete prompt (app/modules/projects/views/projectView.js).

Testing

Depends on (schema)

  • The served _access schema must annotate the field with _adapt.inputType: "Access" (and ideally a title/description for the section heading and help text). This is the schema-side counterpart to the getType change above and should land with the cutover.

@taylortom
taylortom changed the base branch from master to release/3.2.0 July 9, 2026 00:17
@taylortom
taylortom merged commit dbc07f6 into release/3.2.0 Jul 15, 2026
2 checks passed
@taylortom
taylortom deleted the issue-486 branch July 15, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

New: Access widget for _access.* (legacy UI sharing fields)

1 participant