-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Revoke Navigation Bar UI #996
Conversation
Thanks for the new PR. However, the usual practice is that you simply push your changes to the same PR, rather than closing one that has errors and then opening a new one. No problem this time, but if changes are needed to this PR, simply push them to this one. Many thanks. |
PS I'll test and review when I get a chance. It's passing automated tests. |
Ok |
Thank you very much for this PR. It's a good start, and you have an interesting concept for the kebab menu! Some suggestions:
I noticed some rough edges:
I think the kebab should only show at very narrow screen widths. Mostly, there is enough space at normal mobile screen widths. And perhaps you can consider always showing the Config icon (as well as the search icon), so that only the Random and About buttons get hidden in the kebab? That might not work on the narrowest screens, I guess, but it's worth experimenting. NB I haven't reviewed the code. |
Ok I will Fix this fix Push It. |
I Update The Pull Request Yet. And Change The Code And Fix Issue you Pointed Above
You can Check the Fix and Test that it will help or not. But I am not understanding this :
|
I Have One Idea That In Kiwix-Js We Remove The Text Version and Replace it To Kiwix Icon so We can not easily view the current version of kiwix now. yes it will be on another place in app. but i think when we hover on the top-icon we show the current version of kiwix-js there. |
I think hovering over the icon to view the version is OK, but remember it won't work on mobile.. So we should have a text version somewhere. See where I put it on the PWA (pwa.kiwix.org). This could be a separate issue/PR, as you wish. |
When I click on the kebab and then on one of the buttons that it show, nothing happens. But I'll test that again with your new commits and let you know if it still persists. |
Yes it will fix in this commit |
Yes |
I am really sorry Understand that it was formated by my editor. That's why it look like this |
There's no need to apologize! I hope it's not too complicated to fix. You should find the setting in your editor and make sure you prettify (if you want to) only the sections of code that you have written, or that you are currently working on. You can usually just select the code you want to prettify, taking care to select only code you've written, or code that needs to be changed to accommodate what you've written. |
Yes i take care of it .
And I Will Revert All the Changes Ok.
…On Sun, 7 May 2023, 9:00 pm Jaifroid, ***@***.***> wrote:
I am really sorry Understand that it was formated by my editor. That's why
it look like this I revert many files from them and there are only 5 files
that I changed so revert back all unnecessary changes
There's no need to apologize! I hope it's not too complicated to fix. You
should find the setting in your editor and make sure you prettify (if you
want to) only the sections of code that you have written, or that you are
currently working on. You can usually just select the code you want to
prettify, taking care to select only code you've written, or code that
needs to be changed to accommodate what you've written.
—
Reply to this email directly, view it on GitHub
<#996 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZRVEQQ7SF7OR25DL3OFVEDXE652ZANCNFSM6AAAAAAXK6L5EM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I Review This Files And Revert Back uneccessary Changes From That
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All changes reverted please check them again and tell is it right or any other changes needed.
@Jaifroid Please Check It Again . |
var btn = document.getElementById("collapbtn"); | ||
var navIcons = document.getElementById("horizontalNavBtn"); | ||
|
||
btn.addEventListener('click', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in CONTRIBUTING.md, we can't use arrow function syntax in this Repo yet, because we are still supporting old browsers and we are not yet using Babel to transpile. Please change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the slow review, I've been completely snowed under with the day job.
Thank you for removing most of the extraneous code. There is still some small stuff to be removed (see comments).
It's good work so far! But I noticed some problems:
- The about button sometimes disappears when resizing but the hamburger menu doesn't always show instead;
- The Home button (Kiwix icon) remains "pressed", and doesn't seem to go back to neutral after a few seconds (you had mentioned this functionality);
- If I click the Config button, I can't then "unclick" it to go back to the currently loaded article.
- If I'm in Configuration and click the Random button, it doesn't then display the article;
- The vertical menu sometimes gets misaligned, which looks quite ugly (see screenshot);
- I wonder if it would be better for the hamburger menu to show a second row of buttons rather than stack them vertically. The vertical layout option is not very standard.
@@ -71,12 +71,13 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys | |||
* WARNING: Only change these paramaeters if you know what you are doing | |||
*/ | |||
// The current version number of this app | |||
params['appVersion'] = '3.8.1'; // **IMPORTANT** Ensure this is the same as the version number in service-worker.js | |||
params['appVersion'] = '3.8.1' ; // **IMPORTANT** Ensure this is the same as the version number in service-worker.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove space, it's not part of this PR.
// The PWA server (currently only for use with the Mozilla extension) | ||
params['PWAServer'] = 'https://moz-extension.kiwix.org/current/'; // Include final slash! | ||
// params['PWAServer'] = 'https://kiwix.github.io/kiwix-js/'; // DEV: Uncomment this line for testing code on GitHub Pages | ||
// params['PWAServer'] = 'http://localhost:8080/'; // DEV: Uncomment this line (and adjust) for local testing | ||
// A parameter to determine the Settings Store API in use | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant extra line.
www/js/lib/require.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be altered in any way, as it's a dependency.
www/js/lib/uiUtil.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be altered in any way, as it is not part of the PR.
Additionally, it's not possible to "unclick" the About button. See the PWA version for what I mean. When you have an article loaded, click on the Config icon, then click on that icon again (this is what I mean by "unclick"). Also do the same with the About button. |
Ok I Understand the unclick problem now I will solved ASAP.
As I Mention that home button is disappear after 3 second but If you can't
see the change then I will check that.
For navhat I will stack them like bootstrap navbar ok.
Thanks for review and suggestions for me.
…On Sat, 20 May 2023, 7:35 pm Jaifroid, ***@***.***> wrote:
Additionally, it's not possible to "unclick" the About button. See the PWA
version <https://pwa.kiwix.org> for what I mean. When you have an article
loaded, click on the Config icon, then click on that icon again (this is
what I mean by "unclick"). Also do the same with the About button.
—
Reply to this email directly, view it on GitHub
<#996 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZRVEQVJEHFLI6NQUXD5BBLXHDFSXANCNFSM6AAAAAAXK6L5EM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I want to rework on this issue |
Changed The UI Of Navigation Bar and Revoke in as per PWA
As Per Our Discussion Here:- https://github.com/kiwix/kiwix-js/issues/523#issuecomment-1510203437 on this issue. I changed the navigation bar UI like PWA and Make a pull request
In this pull request I changed are as follow :
KIwix Icon Chaged
I changed the kiwix text into kiwix icon that used in pwa version of kiwix
Serch Bar
Move the search bar in top navbar session as per pwa version
changed other text into icons
changes all text nav link into icon (about,config,random,search)
re-engine the hamburger
Change the hamburger into Three dots and make it visible in verticle or column view.
If Any Problem or Bug In request I Will Solved ASAP
That changes are made in first pull request and the remain are changed in next pull request.
Kiwix-JS Before Changes
Kiwix-JS After Changes
Hamburger :
Before Changes :
After Changes :