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

[Bug] View Errors aren't working on any Modals when Field is Required and it closes the Modal Instantly #43

Open
4 tasks
Nabhag8848 opened this issue Jan 21, 2024 · 13 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Nabhag8848
Copy link
Collaborator

Nabhag8848 commented Jan 21, 2024

What happened?

  • On Various Feature Modals, We Support ViewErrors if the Field is Required, but currently it doesn's show view Errors on UI and modal is getting closed.
  • Note that it happens on all Features supporting View Errors.

Steps to reproduce

For Eg:

  • Run /notion create
  • Do not input any Required Field.
  • Submit is closing Modal Instead of Showing ViewError in Search Page or Database Field.
  • ViewErrors Should Work on All Modals and Contextual Bar supporting for merging criteria.

Relevant ScreenShots

For eg:
Similar to Following we support in this app:
ViewErrors

Screen.Recording.2024-01-21.at.10.56.10.mov

Version

v6.5.3

What browsers are you seeing the problem on?

Chrome

@Nabhag8848 Nabhag8848 added the bug Something isn't working label Jan 21, 2024
@umangutkarsh
Copy link

umangutkarsh commented Jan 27, 2024

Hey @Nabhag8848 . Would like to take this up. Thanks

@Nabhag8848
Copy link
Collaborator Author

Awesome @umangutkarsh go ahead. 🚀

@anjy7
Copy link

anjy7 commented Jan 31, 2024

Hi @umangutkarsh, are you still working on this? If not then I would love to take a try on this :)

@umangutkarsh
Copy link

Hi @umangutkarsh, are you still working on this? If not then I would love to take a try on this :)

Hi @anjy7 , Will let you know, if I face any issues, we can both work on the same.

@anjy7
Copy link

anjy7 commented Jan 31, 2024

Sure, any update on the current progress? @umangutkarsh

@Nabhag8848
Copy link
Collaborator Author

@Spiral-Memory I could find this on how ViewErrors Works. Watch out this GIF Carefully.

When comment button is pressed it shows validation. Currently Everything is working fine on our end.

  • Validation doesn't show up in UI. + In case of Modals, Modals get closed and doesn't show Validation UI in Elements.
    CommentOnPage

@Spiral-Memory
Copy link
Contributor

@Spiral-Memory I could find this on how ViewErrors Works. Watch out this GIF Carefully.

When comment button is pressed it shows validation. Currently Everything is working fine on our end.

  • Validation doesn't show up in UI. + In case of Modals, Modals get closed and doesn't show Validation UI in Elements.
    CommentOnPage

Thanks for the info and your time finding this GIF. Sure, will see why this error appears and if i figure out something, i will mention that. 🚀

@Nabhag8848
Copy link
Collaborator Author

Nabhag8848 commented Feb 29, 2024

@Spiral-Memory I could find this on how ViewErrors Works. Watch out this GIF Carefully.
When comment button is pressed it shows validation. Currently Everything is working fine on our end.

  • Validation doesn't show up in UI. + In case of Modals, Modals get closed and doesn't show Validation UI in Elements.
    CommentOnPage

        [
          
        
            ![CommentOnPage](https://private-user-images.githubusercontent.com/65061890/309036815-626949f8-4fef-4735-bce4-83627fd0ac0e.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDkyMzI1OTksIm5iZiI6MTcwOTIzMjI5OSwicGF0aCI6Ii82NTA2MTg5MC8zMDkwMzY4MTUtNjI2OTQ5ZjgtNGZlZi00NzM1LWJjZTQtODM2MjdmZDBhYzBlLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjI5VDE4NDQ1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYzZTkyZjc4MWQ0NTIxMjVkMTNmYmE2OTRiYWIxMTA4YTc1ZDExNWU2YTYyZDQyNDI0NTAwYzczNDAxZjg4ZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hdPI7anu1-ZQcBJ3s6b3kvtxRt3bQUU9X5BhF0dcBpg)
          ](https://private-user-images.githubusercontent.com/65061890/309036815-626949f8-4fef-4735-bce4-83627fd0ac0e.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDkyMzI1OTksIm5iZiI6MTcwOTIzMjI5OSwicGF0aCI6Ii82NTA2MTg5MC8zMDkwMzY4MTUtNjI2OTQ5ZjgtNGZlZi00NzM1LWJjZTQtODM2MjdmZDBhYzBlLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjI5VDE4NDQ1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYzZTkyZjc4MWQ0NTIxMjVkMTNmYmE2OTRiYWIxMTA4YTc1ZDExNWU2YTYyZDQyNDI0NTAwYzczNDAxZjg4ZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hdPI7anu1-ZQcBJ3s6b3kvtxRt3bQUU9X5BhF0dcBpg)
        
        
          
            
              
            
            
              
              
            
          
          [
            
              
            
          ](https://private-user-images.githubusercontent.com/65061890/309036815-626949f8-4fef-4735-bce4-83627fd0ac0e.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDkyMzI1OTksIm5iZiI6MTcwOTIzMjI5OSwicGF0aCI6Ii82NTA2MTg5MC8zMDkwMzY4MTUtNjI2OTQ5ZjgtNGZlZi00NzM1LWJjZTQtODM2MjdmZDBhYzBlLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjI5VDE4NDQ1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYzZTkyZjc4MWQ0NTIxMjVkMTNmYmE2OTRiYWIxMTA4YTc1ZDExNWU2YTYyZDQyNDI0NTAwYzczNDAxZjg4ZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hdPI7anu1-ZQcBJ3s6b3kvtxRt3bQUU9X5BhF0dcBpg)
    

Thanks for the info and your time finding this GIF. Sure, will see why this error appears and if i figure out something, i will mention that. 🚀

@Spiral-Memory before that try this in CURRENT_LATEST_VERSIONof RocketChat Server + Check if this issue has been resolved or anyone has already found issue and workin on it. Confirm with Devanshu once.

PS: LOL We found a Bug in Github. 😂

@Spiral-Memory
Copy link
Contributor

Spiral-Memory commented Feb 29, 2024

Sure @Nabhag8848

For that, i have to create a similar modal with the latest version right ? With View Error code in it.

GitHub bug : Yes it's unable to parse the reply properly 😂😂

@Nabhag8848
Copy link
Collaborator Author

For that, i have to create a similar modal with the latest version right ? With View Error code in it.

@Spiral-Memory No, Just have a Latest version of RocketChat Server Up and Running, deploy and Test this notion app - Apps running on which version of Apps Engine doesn't matter. cause problem lies in Main Repo not Apps Engine Framework.

@Spiral-Memory
Copy link
Contributor

The problem still exists @Nabhag8848 , I just tested it on the latest develop branch of RC app.

Well how are we sure that the problem lies in the main repo and not the engine ?

@Nabhag8848
Copy link
Collaborator Author

Nabhag8848 commented Feb 29, 2024

@Spiral-Memory Check the Apps Engine Repo, You won't find any .tsx file cause. Cause We have bridge and convertor in Main Repo. In simple terms we have two system convertor lets us convert one data type to another so main core can understand and bridge allows two systems to talk to each other. all the implemetation is in Core - Packages.

For more:
https://github.com/RocketChat/Rocket.Chat/tree/develop/apps/meteor/app/apps

@Spiral-Memory
Copy link
Contributor

Spiral-Memory commented Feb 29, 2024

So ig mainly, i have to focus on the UiKit implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Development

No branches or pull requests

4 participants