Fixed Japanese font weight inconsistencies @skaldebane
Changed search bar and search button shape
Fixed full screen search swipe to go back bug @Yuserys
Removed profile avatar animation on opening profile
Subject mnemonic markup highlight now in 3D-like form
Fixed pronunciation audio not showing for the katakana variant in subject info
@Yuserys in light of the notifications you mentioned, I made a tweak to it that I never got around to testing but the idea is when you have the app in foreground notifications are paused until you leave the app. Again, this wasnāt tested so please let me know if you notice any change or if notifications break in general.
@skaldebane about the font weight inconsistency, I donāt get the issue on my devices but tested with them regardless and with the emulators I have. Please let me know if they are fixed when you get this version.
I may or may not have fixed all the bugs reported in the last couple of days. Please let me know of any that wasnāt fixed.
Aside: I will be going on that break I never got to.
I am interested in becoming a tester (Iāve been using WK for a few years, lvl 31), however please be aware my skills and knowledge are lacking when it comes to technology.
I see youāre about to go on a break (as am I) so please reply whenever it is convenient for you if you would like to include me as a tester
Hi @TexasToast97, happy to have you. Iād love to add you as a tester but want you to know the first public release of the app will be available in the next few days. Let me know if you want to wait for that or not. If no, I will go ahead and add you so you can start using the app as a tester ā all I need from you is to add your email to this sheet below:
Thatās exciting that itās going to be publicly released!!
If itās ok, I will wait and use it then. Will you still be wanting feedback on the app and is this to place to submit it at? Iād still like to be helpful if I can.
For existing testers, you can simply update the version you are currently running with this. The version number is 1.16.733. In the case you are unable to update, please let me know.
In the review forecast, I guess not drawing the number at all if the bar is too small might make things better. You can use the text measurer to check that, and maybe rely on a canvas for the whole thing.
Also, Iām unsure whatās going on in Tuesdayās 5:00 am bar in the screenshot, the blue bar is slightly taller, the number doesnāt match the bar, etcā¦
Another screenshots where the numbers are very crammed:
One feature I still miss is the Patterns of Use above context sentences⦠unfortunately thereās no API for that, but itās possible to fetch the HTML for the item (from www.wanikani.com/{type}/{item}) and parse them out directly from there. I can draft an implementation of that if you find this a good idea.
Obviously to not DDOS WKās servers, this should probably be on-demand (i.e. only load when the user opens the lesson / review info), and probably be cached for later use. That way itās the same amount of requests that the user wouldāve done if theyāre on the main website (probably less when it comes to reviews).
This might be an issue with smaller device width as I canāt reproduce it on any of my devices. Here is a screenshot on my end (subject screen ā canāt show a lesson slide for same subject since I have already taken it)
Also, there is no additional padding in the code other than the one included in the highlighted text.
Will look into it.
Yes, that would be a way to handle it.
The idea is if the text is too longer than the available space for rendering text it gets clipped.
I would like to go the āno fetch/parseā route if possible. You are the second person requesting this, so I will have to look into where WaniKani gets the info from (originally thought it was Jisho, but I was wrong). You can whip up an implementation and Iāll have a look. By the way, donāt WK require you to be logged in to access subjects?
Trust me, my screen is really not small
I also tried reducing the system screen zoom from the default to the smallest, and the issue persists.
Since youāre not seeing the issue, maybe this has something to do with Android 12 in particular? or my system font? Not sure honestly, all my experiments were on Compose Desktop⦠I will experiment with this on my phone and different emulators and get back to you.
Yeah that would be much better if you can figure out the source of the data.
Sure! WaniKani doesnāt seem to require login for subjects at all. Tried accessing the pages in private browsing, and they load without any problems (including from paid levels).
I was simply going to run my initial implementation code on mobile to see if thereās any issues with inline content on my end (and try your app on different emulators to see if I can reproduce this).
For the latest update (now open testing) here is whatās new:
Fixed bleeding edges in lessons slide
UI fixes for lessons slides
Round corners for new unlocks, critical items and burned items lists on the dashboard
Navigation drawer can now only be opened with the Menu icon, once open swipe left or tap an area outside of the drawer to close it
Full screen search keyboard should now show āDoneā or a checkmark
The avatar should now show a progress indicator whenever a background work is ongoing. This can be short bursts like on returning to the dashboard or during audio downloading if you selected to download audios during onboarding.
Additionally, since this is now open test, the app launcher icon should now have a white on a pink background. The version number in About should no longer show ā-internalā.
Thinking more about it, I got extremely weirded out, because what on earth could be causing this?
Thereās only 3 things that could affect the result this bad:
Density: I tried changing this, but on my device it still looked broken, and on the emulator it still looked fine⦠and I generally made sure to handle it properly in my implementation, so having it break is a bug somewhere.
System font: I do have a custom font on my main device, but your app uses its own font everywhere, so⦠nah?
Font scale: This is independent of density, as it only affects text. Wait, I never checked this. Never even changed it while implementing thisā¦
So tried changing the font scale on the emulator, and voila:
Basically the reason for this is that Iāve changed the text scale from āDefaultā to āLargeā on my phone (and then totally forgot about it). This is probably also the reason why my screenshots may have felt a bit crammed, like a small phone
(since very few people tweak font scale, this was probably a good stroke of luck so this gets fixed early xD)
Anyways, Iāll try playing with the implementation and figure out which parts need changing. Iāve made sure to use density-aware conversions, but since thereās text I probably shouldāve relied on TextUnit instead of Dp when converting to/from pixels in certain places, which would make use of text scale and convert properly. Will post updates on the Gist.
Update: The original implementation doesnāt seem to have this issue:
Note the font scale at the bottom. I guess this has something to do with the adjustments you made to fix alignment? Canāt tell much without the code.
After some dabbling on Android⦠I think I got it. .toSp() is what I use to convert Dp into TextUnit for the placeholder height and width, in a font-scaling-aware fashion.
On desktop, its implementation is as simple as value / fontScaling.
The Android implementation however⦠a quick peak will tell you that itās not that trivial:
Damn, itās using non-linear font scaling⦠which applies after any scale higher than 1.03f (i.e. itās always applied; for reference, my phone has 1.1f font scaling).
This was introduced in a recent Android version (12 or 13 iirc?), and as the name suggests this scales non-linearly depending on the text size (in our case the Dp value). The aim is to scale small text more and scale bigger text a lot less (so big titles donāt become huge and look broken, as theyāre already readable enough).
It also explains why we see the effect outsized in the width but not much in the height.
The fix is simple: do a simple division like Compose Desktopās toSp():
This right here explains the inconsistency between the desktop and mobile. I recall having to avoid toSp() for some reason in the project and doing conversions just like it is done for the desktop because of issues like this. Thank you
Cool, will have a look. This might just be a trigger to overhaul lessons and reviews item info.
I changed the reviews breakdown on the reviews card so a badge with the breakdown versus having both shown (only seen when that option is turned on in settings)
The aforementioned are now available in the published version 1.17.752.