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

feat(widget-builder): Add widget dropdown for templates #83426

Merged
merged 9 commits into from
Jan 15, 2025

Conversation

nikkikapadia
Copy link
Member

I got rid of the hacky local storage way of accessing templates and put it right into the add widget button. I've turned the button into a dropdown on both preview and edit dashboard views. Now you can select which type of widget you want to add. I had to make additions to all Add Widget buttons (i think) but let me know if i've missed any of them.

The flow is working! here's a look:

Screen.Recording.2025-01-14.at.2.28.35.PM.mov

After this there is a few more fixes I want to implement before calling this 'done'

  1. Edit the panel width for templates (make it smaller)
  2. Make sure the initial preview state for the templates isn't an error

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 14, 2025
@nikkikapadia nikkikapadia marked this pull request as ready for review January 14, 2025 19:45
@nikkikapadia nikkikapadia requested a review from a team as a code owner January 14, 2025 19:46
Copy link
Member

@narsaynorath narsaynorath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@nikkikapadia nikkikapadia changed the title Nikki/feat/widget builder templates add dropdown feat(widget-builder): Add widget dropdown for templates Jan 14, 2025
@nikkikapadia nikkikapadia merged commit e11c2e7 into master Jan 15, 2025
44 checks passed
@nikkikapadia nikkikapadia deleted the nikki/feat/widget-builder-templates-add-dropdown branch January 15, 2025 14:31
andrewshie-sentry pushed a commit that referenced this pull request Jan 22, 2025
I got rid of the hacky local storage way of accessing templates and put
it right into the add widget button. I've turned the button into a
dropdown on both preview and edit dashboard views. Now you can select
which type of widget you want to add. I had to make additions to all
`Add Widget` buttons (i think) but let me know if i've missed any of
them.

The flow is working! here's a look:


https://github.com/user-attachments/assets/3339e39b-62cf-40c2-8a61-2ed9d2b470fc

After this there is a few more fixes I want to implement before calling
this 'done'
1. Edit the panel width for templates (make it smaller)
2. Make sure the initial preview state for the templates isn't an error
Copy link

sentry-io bot commented Jan 27, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ ReferenceError: WidgetType is not defined useTimeRangeWarning(index.tsx) View Issue
  • ‼️ TestingLibraryElementError: Unable to find an element with the text: Custom Widget. This could be because the text is broken ... Object.?(detail.spec.tsx) View Issue
  • ‼️ Error: �[2mexpect(�[22m�[31melement�[39m�[2m).not.toBeInTheDocument()�[22m ?(detail.spec.tsx) View Issue

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot locked and limited conversation to collaborators Feb 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants