This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/src/components
Ken Sternberg 026e80bd10
web: replace 'description-list' with list of descriptions (#7392)
* web: break circular dependency between AKElement & Interface.

This commit changes the way the root node of the web application shell is
discovered by child components, such that the base class shared by both
no longer results in a circular dependency between the two models.

I've run this in isolation and have seen no failures of discovery; the identity
token exists as soon as the Interface is constructed and is found by every item
on the page.

* web: fix broken typescript references

This built... and then it didn't?  Anyway, the current fix is to
provide type information the AkInterface for the data that consumers
require.

* web: description lists as functions

One thing I hate is clutter.  Just tell me what you're going to do.  "Description Lists" in our code are
renderings of Patternfly's DescriptionList; we use only four of
their idioms: horizontal, compact, 2col, and 3col.  With that in mind, I've stripped out the DescriptionList
rendering code from UserViewPage and replaced it with a list of "Here's what to render" and a function call
to render them.  The calling code is still responsible for having the right styles available, as this is
not a component or an attempt at isolation; it is *just* a function (at this point).

* web: fix issue that prevented the classMap from being rendered properly

* web: added comments to the description list.

* web: analyze & prettier had opinions

* web: Fix description-list demo

This commit re-instals the demo for the "description list" of user fields.

* web: prettier had opinions.

* any -> unknown

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens Langhammer <jens@goauthentik.io>
2023-12-13 16:16:57 +01:00
..
ak-hint web: Application wizard v2 with tests (#7004) 2023-10-18 12:43:37 -07:00
ak-wizard-main web: fix bad comment that was confusing lit-analyze (#7234) 2023-10-20 11:17:24 +02:00
events web: detangle components from applications (#6891) 2023-09-14 14:51:42 -07:00
stories web/admin: revise wizard form handling (#7331) 2023-12-06 13:28:19 +02:00
ak-app-icon.ts web: package up horizontal elements into their own components (#7053) 2023-10-04 13:07:52 -07:00
ak-event-info.ts web: detangle components from applications (#6891) 2023-09-14 14:51:42 -07:00
ak-file-input.ts web: package up horizontal elements into their own components (#7053) 2023-10-04 13:07:52 -07:00
ak-multi-select.ts web/admin: revise wizard form handling (#7331) 2023-12-06 13:28:19 +02:00
ak-number-input.ts web/admin: revise wizard form handling (#7331) 2023-12-06 13:28:19 +02:00
ak-radio-input.ts web/admin: revise wizard form handling (#7331) 2023-12-06 13:28:19 +02:00
ak-slug-input.ts web/admin: revise wizard form handling (#7331) 2023-12-06 13:28:19 +02:00
ak-status-label.ts web: refactor status label to separate component (#7407) 2023-11-20 11:24:48 -08:00
ak-switch-input.ts web: package up horizontal elements into their own components (#7053) 2023-10-04 13:07:52 -07:00
ak-text-input.ts web/admin: revise wizard form handling (#7331) 2023-12-06 13:28:19 +02:00
ak-textarea-input.ts web/admin: revise wizard form handling (#7331) 2023-12-06 13:28:19 +02:00
ak-toggle-group.ts web/admin: fix ak-toggle-group for policy and blueprint uses (#6687) 2023-08-30 12:46:58 +02:00
DescriptionList.ts web: replace 'description-list' with list of descriptions (#7392) 2023-12-13 16:16:57 +01:00
HorizontalLightComponent.ts web/admin: revise wizard form handling (#7331) 2023-12-06 13:28:19 +02:00