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

TFC: Reflect nesting levels (module / resource type / instance) #1638

Open
2 tasks
Tracked by #1590
radeksimko opened this issue Nov 20, 2023 · 0 comments
Open
2 tasks
Tracked by #1590

TFC: Reflect nesting levels (module / resource type / instance) #1638

radeksimko opened this issue Nov 20, 2023 · 0 comments
Labels
enhancement New feature or request terraform-cloud Features or bugs related to TFC integration in the editor

Comments

@radeksimko
Copy link
Member

Background

In #1590 we introduced a panel which displays structured plan log in the form of a tree. For example:

Screenshot 2023-11-20 at 15 00 32

As shown in the screenshot ^, such a tree can be difficult to navigate if there are many resources in the plan.

Proposal

  • Consider folding resources under their respective module (e.g. anything like module.workspaces.* under module.workspaces per above example)
  • Consider folding resource instances under their respective resource types (e.g. anything like *.tfe_workspace.config_a[*] under tfe_workspace.config_a)

Implementation Notes

The big hurdle and main reason this was omitted from #1590 initially is because the nesting introduces a new problem of mixed actions. For example, one resource instance under the same module or type can be created, another modified and yet another deleted. It is unclear how to best represent such a scenario in the tree view and whether we should be showing a particular icon or avoid attaching any icons at all.

TL;DR The UX implications here is the hard part.

@radeksimko radeksimko added enhancement New feature or request terraform-cloud Features or bugs related to TFC integration in the editor labels Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request terraform-cloud Features or bugs related to TFC integration in the editor
Projects
None yet
Development

No branches or pull requests

1 participant