Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team Management UI #4997

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open

Team Management UI #4997

wants to merge 34 commits into from

Conversation

aerosol
Copy link
Member

@aerosol aerosol commented Jan 21, 2025

Changes

This PR:

  • introduces Team.Management.Layout abstraction to handle Teams.Invitations states, combined with Teams.Memberships - allowing free arrangement of them, in such way so that changes can be applied in a single transaction
  • exposes the UI utilizing the above in "Team Settings / General"
  • switches "team/setup" view to use it as well
  • fixes minor visual bugs
  • disables PromEx.Plugins.Oban during tests, due to connection ownership clashes

Team setup allows enqueuing batched operations before the changes are submitted, while team settings section updates team layout immediately in-place.

The UI is mostly ready for handling multiple owners, although requires a merger with work that's parallel. Billing role will happily crash Live Views, since it's not implemented at all and not even enumerated properly in schemas and such. This is expected and proper regression indicators were planted.

The views are feature-flagged before we implement team role based access enforcement.

team/setup route is normally accessible just once (given the setup completes), but you can revisit it temporarily by adding ?dev=true to the URL. Reseeding before first try is recommended.

image

image

image

Tests

  • Automated tests have been added
  • This PR does not require tests

Changelog

  • Entry has been added to changelog
  • This PR does not make a user-facing change

Documentation

  • Docs have been updated
  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode
  • This PR does not change the UI

@aerosol aerosol force-pushed the team-people-settings branch from e8872ac to fab8583 Compare January 28, 2025 14:20
@aerosol aerosol changed the title Team management wip Team Management UI Jan 28, 2025
@aerosol aerosol force-pushed the team-people-settings branch from c6d12bd to 0e5d9ec Compare February 5, 2025 07:26
@aerosol aerosol force-pushed the team-people-settings branch from 2d92d34 to 5a78106 Compare February 5, 2025 09:20
@aerosol aerosol requested review from zoldar and ukutaht and removed request for zoldar February 5, 2025 09:33
@aerosol aerosol marked this pull request as ready for review February 5, 2025 09:33
@aerosol aerosol requested a review from zoldar February 5, 2025 09:34
@zoldar zoldar added the preview label Feb 5, 2025
Copy link

github-actions bot commented Feb 5, 2025

Preview environment👷🏼‍♀️🏗️
PR-4997

lib/plausible/teams/management/layout.ex Outdated Show resolved Hide resolved
lib/plausible/teams/management/layout.ex Outdated Show resolved Hide resolved
lib/plausible_web/live/components/team.ex Outdated Show resolved Hide resolved
lib/plausible_web/live/components/team.ex Outdated Show resolved Hide resolved
lib/plausible_web/live/components/team.ex Outdated Show resolved Hide resolved
lib/plausible_web/live/components/team.ex Show resolved Hide resolved
lib/plausible_web/live/components/team.ex Outdated Show resolved Hide resolved
lib/plausible_web/live/team_management.ex Show resolved Hide resolved
lib/plausible_web/live/team_management.ex Outdated Show resolved Hide resolved
lib/plausible_web/live/team_management.ex Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants