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

Implement UI to edit existing funnels #4369

Merged
merged 17 commits into from
Jul 17, 2024
Merged

Implement UI to edit existing funnels #4369

merged 17 commits into from
Jul 17, 2024

Conversation

aerosol
Copy link
Member

@aerosol aerosol commented Jul 17, 2024

Changes

This PR adds the option to edit exiting funnels and btw fixes the UI CSS quirks as a result of improper tailwind build configuration. The modal now displays nicer.

Tests

  • Automated tests have been added
  • This PR does not require tests

Changelog

  • Entry has been added to changelog
  • This PR does not make a user-facing change

Documentation

  • Docs have been updated
  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode
  • This PR does not change the UI

Copy link

Preview environment👷🏼‍♀️🏗️
PR-4369

@aerosol aerosol requested a review from a team July 17, 2024 12:31
Copy link
Contributor

@apata apata left a comment

Choose a reason for hiding this comment

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

Great job! I really appreciate the tests here.

I have it checked out locally, and I'm able to edit funnels and in the edit modal add steps to a funnel.
Screenshot 2024-07-17 at 15 57 43

However, in the preview environment at https://pr-4369.review.plausible.io/pr4340.plausible.io/settings/funnels, in the modal, I'm not able add extra goals to the funnel.
Screenshot 2024-07-17 at 15 49 21

Which is the expected behaviour? Am I reading it correctly that the tests don't cover adding a goal?

@aerosol
Copy link
Member Author

aerosol commented Jul 17, 2024

@apata definitely unexpected, can you tell me how to reproduce?

@apata
Copy link
Contributor

apata commented Jul 17, 2024

@apata definitely unexpected, can you tell me how to reproduce?

Log in to a company in the https://pr-4369.review.plausible.io/ environment. Accept the invite to my site https://pr-4369.review.plausible.io/pr4340.plausible.io. Then try to edit the existing funnel.

@apata
Copy link
Contributor

apata commented Jul 17, 2024

@apata definitely unexpected, can you tell me how to reproduce?

Ah, figured it out. My bad!

I only had two goals in total and two steps in the funnel. As soon as I added a third goal, the Edit funnel modal offered me the choice to add another step to the existing funnel.

@aerosol
Copy link
Member Author

aerosol commented Jul 17, 2024

Thanks for looking @apata, appreciate it!

@apata
Copy link
Contributor

apata commented Jul 17, 2024

Anytime!

Actually, I played around some more, and in trying to reorder my three step funnel, I was quickly able to reach an unexpected UI state.
Screenshot 2024-07-17 at 16 25 14

I've got two revenue goals and one non-revenue goal yay (USD), yay two (USD), yay three but it seems as if the UI sometimes treats the revenue goal without the revenue appendix yay two as a separate valid option.

It's not a big deal because it's still possible to reach a valid reordered funnel. That's the basis of my approval: massive improvement over not being able to edit at all.

@aerosol
Copy link
Member Author

aerosol commented Jul 17, 2024

I've got two revenue goals and one non-revenue goal yay (USD), yay two (USD), yay three but it seems as if the UI sometimes treats the revenue goal without the revenue appendix yay two as a separate valid option.

Not sure what you mean @apata, would you mind rephrasing this? What's a "revenue goal without the revenue appendix"? If you mean a Custom Event, then it's a separate goal.

@aerosol
Copy link
Member Author

aerosol commented Jul 17, 2024

Hmm I think I see what you mean, when adding a goal it appears as an option, without the currency.

@aerosol
Copy link
Member Author

aerosol commented Jul 17, 2024

Should be fixed by 8090687

@apata
Copy link
Contributor

apata commented Jul 17, 2024

Hehe, so fast! Well done, that was exactly it. From my side, the approval intensifies.

@aerosol aerosol merged commit 1488683 into master Jul 17, 2024
10 checks passed
@aerosol aerosol deleted the edit-funnels branch July 17, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants