Discussion with Mentors #5069
Replies: 16 comments 27 replies
-
Sounds good. As mentioned before, you'll find room for improvement all over the place when browsing our JavaScript code. We have nothing against modernizing the code base in general; it just hasn't happened yet. The only exception are JavaScript features that would bump the minimum browser requirement unreasonably high (although we don't have any explicit policy on that). I personally also try to avoid using jQuery at all in new code. We will likely not get rid of that library in the foreseeable future but maybe it makes still sense to move forward using native JavaScript APIs instead of improving jQuery code at this point. (Again, we don't really have a policy on that in the team. That's just my preference.) |
Beta Was this translation helpful? Give feedback.
-
Well, @Martchus and @kalikiana , I will attempt to create a graphical UI for the OpenQA frontend and will share it with you for feedback |
Beta Was this translation helpful? Give feedback.
-
I've just merged your PR. More changes are welcome of course. Please take note of #5068 (comment) before doing so. It is just about the commit messages :-) |
Beta Was this translation helpful? Give feedback.
-
Hello mentors how are you, today I do some research and study that how can I make any web frontend (websites) more accessible. Also, how can we ensure that the color contrast of our website is suitable for visually impaired individuals? 1.Firstly, color and texture are crucial components, and it matters which colors are used for text against the background. For example, black text is appropriate for a yellow background, but white text may not be. On websites such as OpenQA, where the pass/fail stripes are essential, the text may not be as visually prominent. To address this, we can either assign a separate meaning to each color (e.g., red means fail, blue means pass), or we can use other techniques to make the colors distinguishable. 2.When coloring graphs or other elements, using texture and patterns in addition to color can make them more colorblind-friendly. 3.We can also provide manual font size adjustment on our website. 4.It's recommended to avoid using phrases like "click here" and instead provide links more effectively, as colorblind users often use keyboard shortcuts. 5.Lastly, I am currently studying about color combinations and other things to improve website accessibility. |
Beta Was this translation helpful? Give feedback.
-
One more thing here see what I got a calculator through which we can know which text is best on which background :) |
Beta Was this translation helpful? Give feedback.
-
Hello @Martchus @kalikiana , I hope you are enjoying Easter to the fullest! :) 1.Firstly, regarding the issue with the color palette not providing adequate contrast, I would like to ask if you have the option to change the colors of the palette. If yes, that would be great. If not, the alternative would be to work on the given color contrast. I have already made some progress on this and found that the text color contrast should be 4.5:1 against the background. To check this, we can use a reliable tool such as https://colorpalettecombos.netlify.app/, which can test up to 12 colors at once. 2.Secondly, the problem with the dark mode can also be resolved by performing a color contrast test. 3.Thirdly, the issue with the website not being color-blindness friendly can be addressed by using different icons and text alongside colors to indicate what each element means. 4.Lastly, with regards to the fourth point, we can utilize the built-in screen reader called "Voiceover" for iOS and download a free tool called "NVDA" for Windows. Additionally, we need to ensure that our website can be navigated using keyboard shortcuts without a mouse? We should also ensure that we can identify whether the menu button is open or closed? whether a button has been pressed? and where a particular link will take us? ETC |
Beta Was this translation helpful? Give feedback.
-
I suppose keyboard shortcuts would also improve the accessibility/usability for some users. We've recently added a ticket about it. So I suppose this could be worked on as part of openSUSE/mentoring#202 as well. |
Beta Was this translation helpful? Give feedback.
-
Yes @Martchus, keyboard shortcuts play a significant role in website accessibility, as I mentioned earlier and also included in my proposal. and I have started working on it, and I will provide you with the results soon with new PR |
Beta Was this translation helpful? Give feedback.
-
hey @Martchus, I read a lot in the last few days to understand about keyboard accessibility. And as I checked openQA's website, it just has a keyevent and also It seems that there "Filter and Settings" button is not receiving keyboard focus. so we can add tabindex="0" attribute on it to make it keyboard focusable and we will also need to attach |
Beta Was this translation helpful? Give feedback.
-
hey @Martchus Is there any way we can test our code before the deployment, all these 33 testcases like CodeCov, CI/CD, etc. |
Beta Was this translation helpful? Give feedback.
-
Thanks to all finally my WSL linux command is set as my local cmd prompt |
Beta Was this translation helpful? Give feedback.
-
Sir, now my entire local setup is completely done, now I am checking all the code locally by running 'npm run lint' etc. is also being checked, now squashing is also being done very easily. |
Beta Was this translation helpful? Give feedback.
-
For something totally unrelated I've just came across the following test scenarios:
So openSUSE Tumbleweed and Leap 15.4 can definitely be installed via WSL and we test that in an automated way. These tests are kind of a step-by-step instruction for installing them (plus some additional fiddling to open a serial port which a normal user shouldn't need). EDIT: Ok, this test uses an image provided as an openQA asset. So these exact steps are likely not that helpful for end users. Nevertheless I find it interesting :-) |
Beta Was this translation helpful? Give feedback.
-
And sir, I was also thinking that I should write docs of how to set up WSL for Windows users. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your support but I have rejected from GSoC 👍 |
Beta Was this translation helpful? Give feedback.
-
hey @okurz Are you moving this project to LFX? |
Beta Was this translation helpful? Give feedback.
-
hey @Martchus
In {filter_form.js} we should use Cache jQuery selectors for improved performance and Combine if statement and continue statement into one line for improved readability and last we use modern array methods like map() instead of for loops for improved readability and conciseness If you want I can provide changeable code then you review it
Beta Was this translation helpful? Give feedback.
All reactions