supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
478 stars 120 forks source link

feat: Enhance actions based on current view #183

Open Artyom22 opened 1 year ago

Artyom22 commented 1 year ago

This commit enhances the capability to perform additional actions based on the current view. It allows for customized actions, such as displaying messages, logging events, and hiding/displaying components, depending on the view. This improvement provides greater flexibility and customization options for different page states.

What kind of change does this PR introduce?

This PR introduces a new feature.

What is the current behavior?

Currently, when on the "Sign in" page and clicking on "Forgot your password?", there is no indication or way to know that the user has been navigated to another display. (https://github.com/orgs/supabase/discussions/14646)

What is the new behavior?

This PR enhances the capability to perform additional actions based on the current view. It introduces the ability to do additional actions, such as displaying additional messages or components on the page depending on the view, adding logging functionality, and selectively hiding or displaying components. This change allows for better user feedback and customization based on the current view.

Additional context

This enhancement provides more flexibility and customization options for different page states, improving the overall user experience.

zmzimpl commented 8 months ago

This is a very useful feature, please consider merging it. @MichalBunkowski @justin-gurtz @easyfisher