Closed Soare-Robert-Daniel closed 2 months ago
Plugin build for 6b982de9c4d964df2d2e6cb7b99fdfd20dfaa7d1 is ready :bellhop_bell:!
@Soare-Robert-Daniel,
I don't think "Skip" button makes sense here, the purpose of the feature request is to Cancel the creation of the chart if you don't want it to be created (changed your mind). I see the behavior that is now added with this PR is that both "Skip" and "Create chart" buttons do the same - they create a chart.
That's why I mentioned it should be "Cancel" button so you just close the popup and chart doesn't get created (same behavior as clicking outside the popup that is not intuitive).
@vytisbulkevicius
I think we need to rename also the Crate Chart to Finish
In the chart creation flow, after you press Next, the chart is already created.
That is why I put Skip button instead of Cancel.
Should we still put Cancel and a delete chart mechanism to delete the created chart or just rename Create Chart to something else and keep a minimal change?
@Soare-Robert-Daniel,
Chart doesn't get created on Next, if I click outside the popup as stated above the popup is closed and chart is not in the library, screencast: https://vertis.d.pr/v/dPMUuS
So we don't need any mechanism, only to have "Cancel" button that closes the popup.
@vytisbulkevicius, what I said is true, but I completely forgot that the skipped charts are not shown in the library by default.
When you select a chart, the database creates an entry with the status auto-draft
. When you press Create Chart
, the status changes to publish
.
Technically, the first step should have Cancel
and Create Chart
, and the second step should have Skip
and Finish
to better reflect the real workflow.
Looking closely at some parts of the code, it seems when you create a new chart, at the same, it deletes all the previous charts in auto-draft,
which conflicts with the idea of Skip
and Finish
since the draft will always be deleted.
[!NOTE] This was an overview of how things work. I will make a quick change to switch the label to
Cancel
.
Summary
Add the possibility to close the second step and the Chart Creation workflow
Will affect visual aspect of the product
YES
Screenshots
Test instructions
Check before Pull Request is ready:
Closes https://github.com/Codeinwp/visualizer-pro/issues/457