[bug] 3 column view setting doesn't work properly #404
Labels
No labels
a11y
Bug
Bug fix
Critical Priority
Documentation
Feature
Feature request
Held for next release cycle
High Priority
Low Priority
Medium Priority
Minor change
Translation/Locale
WIP
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma-fe#404
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version
4211e05
What were you trying to do?
Using akkoma-fe with three columns.
What did you expect to happen?
3 column view works like it did before with the setting applying after reloading the page.
What actually happened?
Akkoma-fe only uses 2 columns unless you manually mess with that setting. This would have to be done every time akkoma-fe is loaded.
Severity
I cannot use it as easily as I'd like
Have you searched for this issue?
Even after logging out, closing/opening the browser, reloading without cache and logging back in, i don’t see a difference to before and when changing the setting it takes effect and a PUT request to store the new value occurs. The effect also persists across login session on different browsers.
What size does your browser window have and does this still occur with a slightly wider window? Maybe something slightly changed with the needed minimum space and calculations on setting change and normal load differ?
From the recently merged patches
none seems related to 3 column view, though ig it’s possible dep upgrades had unintended side effects
Seems like 3 column view works when I logged in from an incognito window, wonder if it means there's some sort of issue with the browser's local storage thing
confirmed that it works when IndexedDB is force cleared from Firefox's inspect tool
Actually, it still doesn't work once you modify the column setting.
Seems like it will reappear if the browser window changes after loading.
Let’s check whether something’s off with your current server-side settings.
When creating a new settings profile from akkoma-fe it will copy the current one, and even when manually creating a new empty one some settings may be copied again from cached values.
So instead let’s back up your current settings and temporarily wipe them for testing. This assumes you’re currently using the “default” profile name; if you use another profile, you can keep it but should first switch to “default” before following the below
Afterwards you can restore your original settings from the same backup menu, this may take a while
The culprit is
"useStreamingApi": true
(“Receive posts and notifications real-time”); this breaks:Thanks Alyssa (ezio@akko.wtf) for debugging it :)
And as expected the bug was introduced during the dependency upgrade (#397)
thought it might be
wonder what dep had a breaking change
It doesn’t like the destructuring in
modules/api.js::fetchTimeline
’s function declarationidk what JS features this invokes or what elese might break from this, but replacing
with
avoids any as obvious issues as before in my particular config at least
hm, so the first one implies that the third argument is an object
whereas the second is a variable argument function
I'll poke it one sec
ok your solution probably isn't what we want to do here since we do actually pass an object as the third option most of the time
but i genuinely do not know why it's using a spread operator at all
i can fix it though
this should be fixed by
8765491399
which has been built and deployed as developLooks like it's indeed fixed for me as well after updating, thanks!