kgabryje opened a new pull request, #20129:
URL: https://github.com/apache/superset/pull/20129

   ### SUMMARY
   When user enters chart creation flow starting from a dashboard (e.g. with 
"Create chart" button in empty state or charts list in dashboard edit mode), 
the chart's save modal should have that dashboard's name prefilled. To achieve 
that, we pass `dashboard_id` as a url param to `/chart/add` page and from there 
to `explore`.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   
   
https://user-images.githubusercontent.com/15073128/169276098-5a2578a0-7ed4-4029-aa40-2f112e3af13a.mov
   
   
   
   ### TESTING INSTRUCTIONS
   1. Open a dashboard -> edit mode -> charts tab -> click "Create new chart" 
OR Open a dashboard and create a new chart using the plus icon button in top 
right corner.
   2. Create a chart and click save
   3. Verify that dashboard's name is prefilled
   4. Create a new dashboard and click "Create new chart" button in empty 
state. Create a chart and verify that dashboard's name is prefilled in save 
modal
   5. Create a chart from any other view (for example from Welcome page). 
Verify that save modal is not prefilled
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   CC @kasiazjc 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to