appuio / cloud-portal

APPUiO Cloud Portal (Web Frontend)
Apache License 2.0
5 stars 0 forks source link

Create Invitations #512

Closed ccremer closed 1 year ago

ccremer commented 1 year ago

Summary

Part of #460

This PR adds a new form under /invitations/create, in which the user can invite another user to one or more entities as described in https://kb.vshn.ch/appuio-cloud/references/architecture/control-api-invitation.html.

Permissions Some Kubernetes permissions are required: create on Invitation, list on either billingentity or organization. Additionally, it will show an error if no billing entity and no organization could be retrieved, as that would be useless since you can't invite to entities you aren't yourself part of. If one list is empty but not the other, the mask will be shown, but the user can only select entities from the list which have at least one element.

Note: Currently, the control-api user role doesn't yet have create permissions, so this feature is only available for VSHNeers.

Checklist

ccremer commented 1 year ago

Current UI mockup image

ccremer commented 1 year ago

The maskis updated, now also contains logic image

github-actions[bot] commented 1 year ago

🚀 Preview deployment active

App URL https://portal-pr-512-appuio-control-api-preview.apps.cloudscale-lpg-2.appuio.cloud
Revision a94ed7c8abf355733a0cc2ed2b2d9602d497137e
Helm release appuio-control-api-preview/portal-pr-512
Cluster https://api.cloudscale-lpg-2.appuio.cloud:6443

To uninstall this deployment, close or merge this PR.

github-actions[bot] commented 1 year ago

🚀 Preview deployment active

App URL https://portal-pr-512-appuio-control-api-preview.apps.cloudscale-lpg-2.appuio.cloud
Revision ad0822d2c013741d863d62ef9d313aaa2e19beab
Helm release appuio-control-api-preview/portal-pr-512
Cluster https://api.cloudscale-lpg-2.appuio.cloud:6443

To uninstall this deployment, close or merge this PR.

github-actions[bot] commented 1 year ago

🚀 Preview deployment active

App URL https://portal-pr-512-appuio-control-api-preview.apps.cloudscale-lpg-2.appuio.cloud
Revision 361f5cb730d3bf24f07099f15fc996906e94ae42
Helm release appuio-control-api-preview/portal-pr-512
Cluster https://api.cloudscale-lpg-2.appuio.cloud:6443

To uninstall this deployment, close or merge this PR.

github-actions[bot] commented 1 year ago

🚀 Preview deployment active

App URL https://portal-pr-512-appuio-control-api-preview.apps.cloudscale-lpg-2.appuio.cloud
Revision 168b68ed3ebfc4903aa04b00de118b55ca0aa56c
Helm release appuio-control-api-preview/portal-pr-512
Cluster https://api.cloudscale-lpg-2.appuio.cloud:6443

To uninstall this deployment, close or merge this PR.

steffinchen commented 1 year ago

image

Irgendwie stört es mich hier ein bisschen, dass die Viewer / Admin Checkboxes beim Billing andere Spacings als bei der Organization haben 😅 Vielleicht dieselben Abstände wie oben, und den 'X' Button nachrutschen lassen?

ccremer commented 1 year ago

Irgendwie stört es mich hier ein bisschen, dass die Viewer / Admin Checkboxes beim Billing andere Spacings als bei der Organization haben sweat_smile Vielleicht dieselben Abstände wie oben, und den 'X' Button nachrutschen lassen?

This is an older screenshot ;) the latest iteration is more aligned like this: image

ccremer commented 1 year ago

@corvus-ch I've added a warning if BE could not be loaded (graceful degradation) image

Please let me know if this was something you had in mind.

github-actions[bot] commented 1 year ago

🚀 Preview deployment active

App URL https://portal-pr-512-appuio-control-api-preview.apps.cloudscale-lpg-2.appuio.cloud
Revision 005debd474af226f3ecfe02dbb7b8f5cd78574f2
Helm release appuio-control-api-preview/portal-pr-512
Cluster https://api.cloudscale-lpg-2.appuio.cloud:6443

To uninstall this deployment, close or merge this PR.

github-actions[bot] commented 1 year ago

🚀 Preview deployment active

App URL https://portal-pr-512-appuio-control-api-preview.apps.cloudscale-lpg-2.appuio.cloud
Revision 3b6a71abe59d998f6cdab5bdd23e8974aab665db
Helm release appuio-control-api-preview/portal-pr-512
Cluster https://api.cloudscale-lpg-2.appuio.cloud:6443

To uninstall this deployment, close or merge this PR.

github-actions[bot] commented 1 year ago

🚀 Preview deployment active

App URL https://portal-pr-512-appuio-control-api-preview.apps.cloudscale-lpg-2.appuio.cloud
Revision e1b21a9e737ee19da269bf53428bb309e7d02e86
Helm release appuio-control-api-preview/portal-pr-512
Cluster https://api.cloudscale-lpg-2.appuio.cloud:6443

To uninstall this deployment, close or merge this PR.

github-actions[bot] commented 1 year ago

✔️ Preview deployment uninstalled

Helm release appuio-control-api-preview/portal-pr-512
Cluster https://api.cloudscale-lpg-2.appuio.cloud:6443