improve missing media UX
Placeholder for now, we have a lot more dev capacity, and this is a common issue.
Needs a quick discussion before implementation
Lets see what we can do here, mixing some potions
How about this? rough idea here
I actually didn't know what can be done about UX here, but after seeing your design, I now have some ideas.
Suggestion
My premise: the user shouldn't be left with a lot of text to read and decisions to make.
- Automatically detect whether the user uses AnkiWeb (i.e. has synced recently).
- If yes: check whether media sync is off, and show a toggle to enable it. It should just work instead of taking the user to the settings.
- Show a button to sync and ask the user to try it.
- If all the missing files got imported, show a success snackbar.
- Otherwise, tell the user that they can edit the note to replace the missing media and give them the additional option to tag notes with the same missing media.
- Provide a clear visual in the note editor to know which media references are missing.
Here is what LLM has to say
Looks good overall, but I'd avoid talking about which media files are missing. The reason is that it gets complicated when there are multiple ones and the user doesn't really need to know the name of the file.
I really like @ZornHadNoChoices idea about reducing text and providing an one-tap switch if media sync is turned off.
From the point of view of someone who is learning and going over material again I had two ideas:
-
Clear Inline Placeholder: If an image or audio file is not showing on a card displaying a placeholder with the name of the missing file (like a light dashed box with an image or audio icon) makes it easy to see what is missing instead of having an empty space or a broken icon.
-
Contextual Action: Tapping that placeholder could bring up a bottom sheet or a message, at the bottom of the screen with a direct "Check Sync Status / Sync Now" button so the user does not need to leave the review area to check if a download is still happening in the background.
I would be happy to test this process on devices once there is a prototype or a draft pull request available!
- You never know how the cards look in Anki, so a "broken icon" is a good representation. In my opinion, users don't need to know what is missing until editing is required, where the note editor would highlight the missing parts.
- Again, you never know how the cards work in Anki. Maybe the user has some CSS stuff that can get in the way of tapping. A native Android snackbar with a fix action is more robust.
According to Danika Dakika, there are some cases where syncing once is not enough.
Perhaps, if syncing doesn't work immediately, inform the user that they can try syncing later or edit the note now.
Also a "no" on displaying filenames. Maybe in the future under an "advanced" tab, but it's information overload.
Unless anyone disagrees, let's tightenen the scope to improving how we portray AnkiWeb media sync status (and add a tap to sync if it's "bad"). My initial thoughts:
- Detect/show the status of the media sync: ongoing/partial/completed at a given date, with a status icon. Let a user start a sync if the status is bad
- Can we prioritize media downloads over AnkiWeb? I haven't checked the protos here
- EDIT: yes at the protocol level; no at the proto boundary
- A user can be under a metered connection (5G), so they may not be able to sync at the current moment.
- As stated, media sync can also be disabled
Once this is resolved, the other common issue is that the media wasn't fully uploaded from the PC
Some users may have media sync disabled intentionally. Maybe extend this setting to disable the missing media warning
Ok let me see what I can do with all the updated feedback
To update: The protocol supports requesting/prioritizing specific files, but we don't have access to it via the proto API.
We could put this in as a request to upstream, but I would be very careful with what we request here.
The media API is heavily optimized [for processing/cost], and requesting individual files [or... more reasonably: the files for the current study session] does not feel like it was a use case when it was added.
How about this? (rough)
- "Missing media will show when it's done". Is it guaranteed?
- "Don't show again" is evil. Users can accidentally tap it and be locked out of the feature. Users who intentionally disabled media sync probably won't tap the "Fix" in the first place and can still dismiss the bottom sheet (replacing it with "Cancel" is ok).
- The toggle to turn the snackbar off is nice.
- No, it isn't guaranteed. It only comes down if the file is actually on AnkiWeb and the sync finishes, so it should say "This can take a while". If the sheet is still open when the sync ends, it updates itself: the card reloads if the media arrived, otherwise it switches to the up to date state (try again later or edit the note).
- Agreed, swapping it for Cancel. so here, the switch in sync settings now is the only way to turn the warning off.