-
Notifications
You must be signed in to change notification settings - Fork 16
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
[PBNTR-456] Fixed Confirmation Toast - Enable "auto close" for RAILS #4179
[PBNTR-456] Fixed Confirmation Toast - Enable "auto close" for RAILS #4179
Conversation
A change to documentation files was detected in your PR. Please visit this link to preview changes: https://portal-staging.powerapp.cloud/docs?filters[kind]=all&filters[user]=all&filters[namespaceFilter]=pbntr-456-fixed-conf-toast-rails-autoclose |
Hey @ElisaShapiro , code looks good, but when you first navigate to the Rails side of the fixed confirmation toast, the toast for 'I will close in 10s' is already on the page for a second before it disappears. Not sure if this is kit level issue or a doc script tag issue |
🎉 Congratulations on creating an Alpha Version! Your Alpha for Ruby Gems is 14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5673 Your Alpha for NPM is 14.12.0-alpha.PBNTR456fixedconftoastrailsautoclose5673 |
🎉 Congratulations on creating an Alpha Version! Your Alpha for Ruby Gems is 14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5728 Your Alpha for NPM is 14.12.0-alpha.PBNTR456fixedconftoastrailsautoclose5728 |
🎉 Congratulations on creating an Alpha Version! Your Alpha for Ruby Gems is 14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5738 Your Alpha for NPM is 14.12.0-alpha.PBNTR456fixedconftoastrailsautoclose5738 |
🎉 Congratulations on creating an Alpha Version! Your Alpha for Ruby Gems is 14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5754 Your Alpha for NPM is 14.12.0-alpha.PBNTR456fixedconftoastrailsautoclose5754 |
🎉 Congratulations on creating an Alpha Version! Your Alpha for Ruby Gems is 14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5757 Your Alpha for NPM is 14.12.0-alpha.PBNTR456fixedconftoastrailsautoclose5757 |
You merged this pr to master branch: |
What does this PR do? A clear and concise description with your runway ticket url.
PBNTR-456 requested creation of an
auto_close
prop for the Rails Fixed Confirmation Toast; investigation revealed that PBNTR-475 actually created both React and Rails versions of the prop, but only displayed a doc example for the React side. It is already being used in Nitro in a few places see here.This PR adds the rails doc example and updates the PbEnhancedElement file to ensure autoclosing works as expected for standard and closeable (has X to close) toasts. An initial overhaul of the PbEnhancedElement was too much and failed alpha testing (which revealed that the previously only closeable autoclose fixed confirmation toasts worked in nitro at all) - this PR contains a minimally updated version that works for both closeable and default autoclose toasts in rails.
Screenshots: Screenshots to visualize your addition/change
![for PR 3 seconds both work in alpha](https://private-user-images.githubusercontent.com/83474365/408169269-02c73452-54e8-47ce-96cf-8ecdc90ca5d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MjgxNDgsIm5iZiI6MTczODkyNzg0OCwicGF0aCI6Ii84MzQ3NDM2NS80MDgxNjkyNjktMDJjNzM0NTItNTRlOC00N2NlLTk2Y2YtOGVjZGM5MGNhNWQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDExMzA0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkxN2VmZjk5Mzk2YzFjMzRhYzQyNDg5ZDg3NGRiM2I4YTY0MmRhZWU3ZWE1NmNjNmZiMGMwYWIyMGRlZjgzN2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5b5wZtZCx6LEZaBGxfvJYeSbpLj3IMGVuWsbMT3ZfIM)
![for PR 10 seconds both work in alpha](https://private-user-images.githubusercontent.com/83474365/408169290-703aacee-7a85-47fe-aa3e-24744f70b08a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MjgxNDgsIm5iZiI6MTczODkyNzg0OCwicGF0aCI6Ii84MzQ3NDM2NS80MDgxNjkyOTAtNzAzYWFjZWUtN2E4NS00N2ZlLWFhM2UtMjQ3NDRmNzBiMDhhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDExMzA0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY5NGM2N2U5NGIzYjk5ZWMxYzU2NGMyNTNhYWU5MWQ5ZmU3NTJiM2JmN2ViZDczOTI2NzdkMDg1MmUxZGJmYjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.a6PAj2r9c3ciGoPzEdOMwTnhUvtN6AiVoCl6LG7U6lo)
How to test? Steps to confirm the desired behavior:
Checklist:
enhancement
,bug
,improvement
,new kit
,deprecated
, orbreaking
. See Changelog & Labels for details.milano
label to show I'm ready for a review.