Feature: WarningFailedChecksComponent && update EditorMenu
Fix #3625 ,
Still not complete due to the inability to reflect the changes locally in a browser.
I did try to restart the docker container, the dist/translate.js updated appropriately though on reloading the browser window, no changes reflected.
taking a look into it.
Current Solution
https://github.com/user-attachments/assets/e93b8d0c-1588-4e1d-bf7b-7e0a42421b23
Sorry this took too long 🤝
Hey @mathjazz ,
yeah it works !
Adding the FailedChecks there triggers the component, immediately the Editor is opened
https://github.com/user-attachments/assets/ee736286-f840-4fed-892c-d774b29dd8fd
--EDIT--
I'm open to ideas, if there is an alternative approach that I missed.
OK, that's great news! Please make sure however that there's only once that we reference the FailedChecks component in the editor - right now it's where you added it, and also in the EditorMenu component. We should be able to remove one of these.
Hey @mathjazz ,
That's true, we can remove one of the FailedChecks, though I have encountered some issues if we introduce this feature (not sure if they are bugs.)
This feature merely shows the previous Failed Checks on the previous submission. Though
What if a user chooses to submit another translation before removing the popup ?
1) Having the two FailedChecks
With the two FailedChecks we have the following output for the issue above:
https://github.com/user-attachments/assets/cfa6d48a-6b97-40ab-a619-42f6fc5c3956
it might not be visible though I'm pressing
Enterto submit a translation.
2) Having one FailedChecks
https://github.com/user-attachments/assets/25a2dd99-439f-4a6c-841b-781122259402
it might not be visible though I'm pressing
Enterto submit a translation.
- You can notice on
# 2we do not get the Warning before submission,
What do you suggest to be the best course of action ?
We could temp disable the shortcut when, FailedChecks component is on display
As soon as you start typing, the failed checks popup should disappear (same as with the unsaved changes popup).
In any case, there's no reason for two FailedChecks component. There should only be one and it should be fixed to show up always when needed and only when needed.
awesome, lemme do that :handshake:
Hi @RafaelJohn9, thanks again for your work on this! Are you still planning to finish the PR? If you’ve run into any issues or need guidance, we’d be happy to help you wrap it up.
hey @mathjazz ,
I apologize for holding up this PR for so long. I’ve been quite busy lately and may not be able to complete it soon, so I’ll close it to give someone else the chance to continue the work.