Closed seanh closed 3 weeks ago
I've added the type of the existing group to the js-config
on the group-edit page so the frontend can know which radio box should be selected initially: https://github.com/hypothesis/h/pull/8911
Also added the number of shared annotations and replies in the group, which'll be needed for the warning dialog: https://github.com/hypothesis/h/pull/8939
Requires feature flag.
Implement the frontend (user interface and API call) to enable users to create restricted and open groups and to change the types of existing groups between private, restricted and open.
Part of ERD: Creating Restricted and Open Groups.
Depends on the backend API: https://github.com/hypothesis/h/issues/8896
Create group page
Here's the desired new design for the create-group page:
Changes:
<title>
element in the HTML<head>
) should be changed to Create a new groupEdit group page
Here's the desired new design for the edit-group page:
Changes:
API call
Warning when changing the type of an existing group
When an existing private group is changed to open/restricted or vice-versa this changes the visibility of any pre-existing shared annotations in the group: annotations that were previously only visible to members of the group will now be publicly visible or vice-versa. We want to show the user a warning before letting them do this.
Design for the warning dialog (note: not the final wording):
Final wording (see Slack thread):
Alternative text when changing an open or restricted group to private: