Aiven-Open / Aiven-Open/klaw

refactor(coral): Improve ACL request form

未关闭
#1,142 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Frontend Housekeeping
主要语言
Java
星标
195
派生
77
平均合并
8 天 9 小时
30 天内合并 PR
1

描述

# What is the problem?

Because there are multiple dependencies between the possible fields and field states, he ACL request form is very complex, both for the user and for developers working on it.

Some more UI research is necessary to solve common issues encountered when using the form. This and following comments is an example of the kind of explanations necessary for its use and understanding: https://github.com/aiven/klaw/pull/1119#issuecomment-1538483310

# How could this be improved?

- Reflect on possibly merging fields which have strong tw-ways dependencies, like `Topic name` and `Environment`: instead of each field dynamically rendering different options depending on the value of the other, render one field allowing to pick a topic from an environment in one action.

- Reflect on the appearing/disappearing fields depending on the options chosen (disabling the "Prefix" option and auto selecting "Literal" if the environment is an Aiven cluster, for example)

- Reflect on the organization and hierarchy of fields to reflect the mental model of a user wanting to create a new ACL (possibly having the Producer /Consumer distinction being made earlier in the UI with two buttons / a dropdown button in the Topic overview "Subscribe as a consumer" "Subscribe as a producer")

# New form design

After further research, this is the new ACL form design:
![06-01-00-Request-New-ACL](https://github.com/aiven/klaw/assets/20607294/ce5dede0-480b-4ddf-9347-320c6e8a51e3)
![06-01-00-Request-New-ACL-3](https://github.com/aiven/klaw/assets/20607294/6d4ec9b2-7d83-477b-9d62-90ea04580921)
![06-01-00-Request-New-ACL-2](https://github.com/aiven/klaw/assets/20607294/8c8f95f5-ba4f-40fc-b6a5-188218d1e473)
![06-01-00-Request-New-ACL-1](https://github.com/aiven/klaw/assets/20607294/0c471e81-434a-49b7-acd7-d85ed16b5e67)

# Is this a feature you would work on yourself?

* [ ] I plan to open a pull request for this feature

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。