typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
13 stars 0 forks source link

Show login prompt when clicking unauthorized link #370

Open CGMossa opened 5 months ago

CGMossa commented 5 months ago

Description

Sometimes, one is not logged on to typst.app. So if you click a link, to a document, in which you don't have access to, unless by login-name (because you're part of the project), you just get a non-authorized screen and you can't go on.

Instead, I think there should be a login here screen.

@laurmaedje described it best

They want a login screen instead of "You do not have sufficient permissions to access this project." when you open one of your projects without being logged in. Which makes sense I think. The error message can still be there if you don't have access after you've logged in. source: https://discord.com/channels/1054443721975922748/1054443722592497796/1243929416061423678

Use Case

This is more of a user bug, so I think it would be useful for a specific UX.