-
Notifications
You must be signed in to change notification settings - Fork 35
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
Sunder gutka toolbar #532
Sunder gutka toolbar #532
Conversation
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 add .DS_Store
to gitignore
Looks really good!
|
For the Nitmem section, please have: -- Japjee Sahib For popular, please use: -- Asa Kee Vaar @tsingh777 responses to some of your notes:
Thank you for the comments! |
Fixed everything except DB related bugs or new features. 🙏 I wasn't able to reproduce locking up of UI @tsingh777 can you let me know which bani caused that to happen? Also, what do you suggest as a solution for increasing performance? Should we not load the whole bani at once (and use pagination) @maneetpaul ? Using translit I get these spellings, do we want to go ahead with these spellings? I have added and commented the code. |
I say. 👍 +1 to adding bookmarks. I think we have them in database too. 🙏 |
I am not a fan of the current English list. Some of the spellings look really strange and we need to make each bani fit on one line so it looks cleaner. Let's release 5.0 with Gurmukhi only for now, and we'll add the English names for each Bani to the DB properly. We'll add a toggle in a future update to switch between the two. Regarding pagination, I am against requiring the user needing to do anything extra in order to go through the entire bani (they should be able to go through the whole thing by pressing the down arrow). Let's try to isolate the issue and see if it is specific to a certain bani. |
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 just noticed this, but it should be spelled "Sundar Gutka" with an "a" in "Sundar".
Sukhmani Sahib is the least performant. The following function from
maybe we can look into adding virtual scrolling as well. not sure if a libaray exists that can help here. cc. @navdeepsinghkhalsa @bogas04 |
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 www/.DS_Store
and add to git ignore
@@ -35,6 +35,9 @@ | |||
"autoplay-options": { | |||
"autoplayTimer": 10 | |||
}, | |||
"sunder-gutka": { | |||
"bani-length": 4 |
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.
let's use the same default as the sundar gutka app? I think that one is 2 or 3. cc @maneetpaul @tarunsingh5
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.
can be followed up in separate pr
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.
The new SG update requires users to choose a length upon the first app launch. Prior to that, the default was "Very Long".
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.
maybe we can implement something similar and make it a choose on first install
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.
Let's see what the UX is like during Alpha testing and we'll go from there. Bani length only impacts ਬੇਨਤੀ ਚੌਪਈ ਸਾਹਿਬ, ਰਹਰਾਸਿ ਸਾਹਿਬ, ਆਰਤੀ, and ਸੋਹਿਲਾ ਸਾਹਿਬ
@@ -20,8 +21,9 @@ function hideSlide() { | |||
global.controller.sendText(''); | |||
} | |||
|
|||
function highlightLine(newLine) { | |||
const $line = search.$shabad.querySelector(`#line${newLine}`); | |||
function highlightLine(newLine, nextLineCount = null) { |
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.
nit: the variables names (nextLineCount
) here are bit confusing.
fixes #354 #433 #437