Loading failures negatively impact UX
@SharonStrats 已经在做这个了。
开始于 2026年9月23日。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
从 src/mainPage/index.ts 中 login、logout 和应用根目录的 GotoSubject 处理附近开始,然后检查 src/outline/manager.js 第 2109 行附近的资源加载错误展示。查看所引用的 PR 575,并复现报告的三个 401/403 情况。完成的标准是,相关的导航和文件加载流程不再显示突发错误,而是呈现预期的已认证或已注销体验。
由索引模型根据 Issue 内容生成。
描述
When navigating around my pod, logging out, logging in, viewing things I have in my storage I receive an abrupt message about my resource failing to load. There are different cases when this happens.
Cases where 401/403 Issues arise
- Logging Out -
error: Failed to load https://www.solidcommunity.net/ Fetcher: https://www.solidcommunity.net/ status: 401
should happen: I would not like to see this error, instead it could say something (not in red), you are logged out. Or it could just show the menu. - Logging in - right away when I log in I get an error
error: Failed to load https://www.solidcommunity.net/ Fetcher: https://www.solidcommunity.net/ status: 403
should happen: I should not get an error, maybe it should navigate to the home screen when this happens, although what if you log in while you are looking at another resource you would want to redirect. So logging in from the "home" should be detected somehow and accordingly you should be displayed something specific. - From storage I click on the link icon next to the file name, takes me to the file (I'm logged in already). I receive 2 errors
errors: Error reading file: Error: Web error: 401 on GET of https://sstratsianis.solidcommunity.net/formtest.ttl and below it Failed to load https://sstratsianis.solidcommunity.net/formtest.ttl Fetcher: https://sstratsianis.solidcommunity.net/formtest.ttl status: 401
when I go through the link below I don't have the same problem, it goes directly to the resource with no failed to load errors. I believe this is the "about" pane. need to find it in solid-panes.
Technical details
- Logout We could redirect to a known public page before reload, or skip GotoSubject when URL is app root and unauthenticated. here is the spot
- Login Same spot as above. We could at bare root, open the user profile or perhaps storage when logged in, and otherwise skip root fetch.
- File Loading Errors After research I believe the only way to solve this is storing cookies or looking through all the links and passing authSession in (need to look at this again and why it's not a good option for production). We can't store auth in cookies because it's not safe. But, we could change the message to be more directed to user. To change the error message style we can do that here
Changes we could make are shown in this PR here
- 主要语言
- JavaScript
- 星标
- 146
- 派生
- 21
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SolidOS/solidos 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
Redirect pages after logout可能已有人在做 @timea-solid 于 17 天前认领。 未关闭enhancement question
难度 2/5 1-3 小时 新手友好度 70/100
-
Profile editing - delete button contrast可能已有人在做 @SharonStrats 于 17 天前认领。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 15/100
相似的 Issue
-
chore v2
难度 2/5 1-3 小时 新手友好度 78/100
modelcontextprotocol/servers#5115 ·
维护者通常 1 天内回复
-
beginner bug good first issue
难度 1/5 1 小时以内 新手友好度 85/100
philaconvalley/website#168 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
druxt/umami.demo.druxtjs.org#527 ·
维护者通常 9 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
NuSkooler/enigma-bbs#907 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 72/100