Show a warning when changing an existing group from a private type to a public type and vice-versa.
A caveat with the current implementation is that once a change is confirmed, it becomes the new "current type" that is used when deciding whether to show the warning in future, even though the type isn't actually changed until "Save changes" is clicked. This made the implementation simpler.
Edit the new group and click the "Open" or "Restricted" group types. You should see a warning. Canceling should abort the change, confirming should perform the change.
Click "Save changes"
Change the group back to "Private". You should see a different warning. Canceling / confirming should work as before.
Show a warning when changing an existing group from a private type to a public type and vice-versa.
A caveat with the current implementation is that once a change is confirmed, it becomes the new "current type" that is used when deciding whether to show the warning in future, even though the type isn't actually changed until "Save changes" is clicked. This made the implementation simpler.
See https://github.com/hypothesis/h/issues/8898.
Warning when making annotations private:
Warning when making annotations public:
Testing:
group_type
feature flag