serge-web / serge

Serious Gaming, Evolved - web interface
https://sites.google.com/deepbluec.com/serge/
Apache License 2.0
14 stars 4 forks source link

2963_Send_new_message_without_input #2974

Closed lilitkarapetyan closed 1 month ago

lilitkarapetyan commented 1 month ago

Fixes #2963

🧰 Issue

πŸš€ Overview:

πŸ”— Link to preview

πŸ€” Reason:

πŸ”¨Work carried out:

πŸ–₯️ Screenshot

Confirmations

πŸ“ Developer Notes:

Tristina1788 commented 1 month ago

@IanMayo @lilitkarapetyan Now I can't send message without input values from the second time. But it's enable to send on the first time (After login user role on play game). => It should the same for all times.

https://github.com/serge-web/serge/assets/107697044/c42c99d1-da48-4658-b025-717cef982d4d

Tristina1788 commented 1 month ago

@IanMayo @lilitkarapetyan Now I can't send message without input values from the second time. But it's enable to send on the first time (After login user role on play game). => It should the same for all times.

cannot-send-empty-message-on-second-time.mp4

@lilitkarapetyan I still get same issue as before.

lilitkarapetyan commented 1 month ago

@IanMayo @lilitkarapetyan Now I can't send message without input values from the second time. But it's enable to send on the first time (After login user role on play game). => It should the same for all times. cannot-send-empty-message-on-second-time.mp4

@lilitkarapetyan I still get same issue as before.

Should we be able to send a message without input values ?

Tristina1788 commented 1 month ago

@IanMayo @lilitkarapetyan Now I can't send message without input values from the second time. But it's enable to send on the first time (After login user role on play game). => It should the same for all times. cannot-send-empty-message-on-second-time.mp4

@lilitkarapetyan I still get same issue as before.

Should we be able to send a message without input values ?

Yes, I think so. It depends on the input field is optional or not. And if we can't send message without input, it should be the same for all time. Currently, after login to game play, I can send message without input, but the second, I can't ( As above video) .

IanMayo commented 1 month ago

Ok. I don't have a strong feeling about whether we allow empty messages or not. I'm happy with the easiest solution. But, we should have consistent behaviour across whether the user has just opened the channel, or if they have already sent messages.

lilitkarapetyan commented 1 month ago

@IanMayo @lilitkarapetyan Now I can't send message without input values from the second time. But it's enable to send on the first time (After login user role on play game). => It should the same for all times. cannot-send-empty-message-on-second-time.mp4

@lilitkarapetyan I still get same issue as before.

Should we be able to send a message without input values ?

Yes, I think so. It depends on the input field is optional or not. And if we can't send message without input, it should be the same for all time. Currently, after login to game play, I can send message without input, but the second, I can't ( As above video) .

I Think after my last commit, it doesn't let me send a message without typing. I will investigate it now.

Tristina1788 commented 1 month ago

@IanMayo @lilitkarapetyan Now I can't send message without input values from the second time. But it's enable to send on the first time (After login user role on play game). => It should the same for all times. cannot-send-empty-message-on-second-time.mp4

@lilitkarapetyan I still get same issue as before.

Should we be able to send a message without input values ?

Yes, I think so. It depends on the input field is optional or not. And if we can't send message without input, it should be the same for all time. Currently, after login to game play, I can send message without input, but the second, I can't ( As above video) .

I Think after my last commit, it doesn't let me send a message without typing. I will investigate it now.

Yes, This is the screencast for latest code. I can send message at first time after login.

https://github.com/serge-web/serge/assets/107697044/e4c5699b-d1e7-4f24-8639-9ce956a2ee0d

lilitkarapetyan commented 1 month ago

@IanMayo I think To solve this problem, we need to retrieve the value of jsonEditor every time it is accessed. but the ways to do this will be different depending on whether we are in the develop branch or 2892_Edit_templates_in_admin_pages.

We should utilize the value of jsonEditorupon its initial call, ensuring that the formMessage value is updated to match the content of our form.

in wich branch should I make the change ?

IanMayo commented 1 month ago

@IanMayo I think To solve this problem, we need to retrieve the value of jsonEditor every time it is accessed. but the ways to do this will be different depending on whether we are in the develop branch or 2892_Edit_templates_in_admin_pages.

We should utilize the value of jsonEditorupon its initial call, ensuring that the formMessage value is updated to match the content of our form.

Sure, ok. I don't think it's worth fixing this particular part of the issue in develop. So, @lilitkarapetyan - how about merging edit templates branch into this, and fixing it relative to that branch?

lilitkarapetyan commented 1 month ago

@IanMayo I think To solve this problem, we need to retrieve the value of jsonEditor every time it is accessed. but the ways to do this will be different depending on whether we are in the develop branch or 2892_Edit_templates_in_admin_pages. We should utilize the value of jsonEditorupon its initial call, ensuring that the formMessage value is updated to match the content of our form.

Sure, ok. I don't think it's worth fixing this particular part of the issue in develop. So, @lilitkarapetyan - how about merging edit templates branch into this, and fixing it relative to that branch?

I think so. but I thnk we could also fix the issues in the 2892_Edit_templates_in_admin_pages branch

Tristina1788 commented 1 month ago

@lilitkarapetyan @IanMayo It shows as the error 'must match format "Time"' although the default value is correct format.

image

https://github.com/serge-web/serge/assets/107697044/28c1a754-97b8-4ff6-b87b-d8a400983f0b

Tristina1788 commented 1 month ago

@lilitkarapetyan @IanMayo

Now I can send message without error about time format and send new message without input, it will not get the same content which the last message => It works as expected.

https://github.com/serge-web/serge/assets/107697044/b11bf4dc-9f07-4af0-8a02-c03670b8afa4

@IanMayo The fixing for ticket is works fine now. But we merge this fixing, it will merge all changes from 2892_Edit_templates_in_admin_pages . And that branch is still not done. Just remind if you forget that.

lilitkarapetyan commented 1 month ago

fixes #2963