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

Add popup/tooltip over FTL types (and maybe other things) to show a quick view of the content #2673

Closed
wesbillman opened this issue Sep 13, 2024 · 0 comments · Fixed by #2706
Assignees
Labels
console Web console dx

Comments

@wesbillman
Copy link
Member

When hovering over a data decl in FTL it would be cool to see a little quick view popup of the structure of that data so the user doesn't have to navigate all the way to the data's dedicated page.

Some components that might be useful here:
https://headlessui.com/react/popover
https://tailwindui.com/components/marketing/elements/flyout-menus

For example, when hovering over something like this
Screenshot 2024-09-13 at 9 54 38 AM

We could show a window similar to this:
Screenshot 2024-09-13 at 9 55 41 AM

@wesbillman wesbillman added console Web console dx labels Sep 13, 2024
@github-actions github-actions bot added the triage Issue needs triaging label Sep 13, 2024
This was referenced Sep 13, 2024
@wesbillman wesbillman removed the triage Issue needs triaging label Sep 13, 2024
@deniseli deniseli self-assigned this Sep 17, 2024
deniseli added a commit that referenced this issue Sep 17, 2024
Fixes #2673

This only adds the snippet implementations for data, enum, and
typealias, since those are the types that currently would actually come
up as a link in a decl panel.

This also changes the static decl panel bodies for enum + data to follow
the actual FTL schema format.

<img width="563" alt="Screenshot 2024-09-17 at 3 32 26 PM"
src="https://github.com/user-attachments/assets/e3763141-081f-4d6f-8d28-775f5b2fbc57">
<img width="393" alt="Screenshot 2024-09-17 at 3 33 01 PM"
src="https://github.com/user-attachments/assets/f21029e2-91a0-4b03-b9d9-97bd43c230b3">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
console Web console dx
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants