Logout leaves databrowser blank/stale until manual reload
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- javascript
调研方向
未指定具体文件或测试。首先定位 authSession 的 login、logout 和 sessionRestore 处理程序,以及 solid-panes/mashlib 中当前的 databrowser bootstrap 或 URL-subject 渲染路径;验证在 JSS 和 Pivot 风格托管中的转换,而不要求手动重新加载。
由索引模型根据 Issue 内容生成。
描述
Summary
After logout, the databrowser UI can end up blank or stale and does not reliably recover until a manual browser reload. This appears to be a client lifecycle issue in the current solid-panes/mashlib integration, not a server-specific auth failure.
Expected behavior
On logout (and similarly login / sessionRestore), the client should consistently re-render from current URL state without requiring a manual reload.
Actual behavior
Header/auth state updates, but the main databrowser view is not always reinitialized/rerendered. In practice, users sometimes need F5 to get the normal outline/dashboard view back.
Environment / observed on
- mashlib: 2.2.0
- Server tested: JavaScriptSolidServer (JSS) with mashlib CDN mode
- Also compared with Pivot server behavior (different hosting model, static assets), which may mask this by effectively reloading/reinitializing in its flow.
Why this seems client-side
Current flows react to auth events (header/dashboard updates), but there is no guaranteed “auth transition -> rerender current subject” path equivalent to a full databrowser bootstrap.
Symptoms suggest:
- logout triggers partial UI updates (header/menu/dashboard close),
- but not a deterministic re-render/init of main subject view.
Proposal
Create a single auth-transition handler in client code (solid-panes/mashlib) used for:
authSession.events.on('login', ...)authSession.events.on('logout', ...)authSession.events.on('sessionRestore', ...)
Handler should:
await authn.checkUser()- reset/close transient UI state (dashboard/menu if needed)
- re-render current URL subject (or re-run equivalent of initial databrowser render path)
- avoid requiring page reload
Acceptance criteria
- Logout does not require manual browser reload to restore a usable databrowser view.
- Login/sessionRestore behave consistently with logout transition handling.
- Works across hosting styles:
- static databrowser asset hosting (e.g., Pivot)
- server-generated databrowser HTML wrappers (e.g., JSS)
Notes
As a temporary server-side mitigation, forcing location.reload() on logout works, but this should not be the long-term fix. The robust fix should live in the client lifecycle so behavior is server-agnostic.
- 主要语言
- HTML
- 星标
- 106
- 派生
- 52
- 平均合并
- 6 小时 50 分钟
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SolidOS/solid-panes 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
SolidOS/solid-panes#653 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 48/100
SolidOS/solid-panes#751 · 1 条评论 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
SolidOS/solid-panes#745 ·
-
Deleting Resources (Special Case) - Pane deletion - type indexes可能重新可做 @timea-solid 于 47 天前认领,目前没有进行中的 PR。 未关闭question
SolidOS/solid-panes#740 · 3 条评论 · 已指派 2 人 ·
-
Deleting Resources (Special Case): index.ttl resouce (pane deletion)可能重新可做 @bourgeoa 于 47 天前认领,目前没有进行中的 PR。 未关闭question
SolidOS/solid-panes#739 · 2 条评论 · 已指派 3 人 ·
查看 SolidOS/solid-panes 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
NousResearch/hermes-agent#131271 · 1 条评论 ·
维护者通常 1 天内回复
-
failed-test failure:ai-fixable failure:insufficient-data failure:test-needs-update scout-playwright Team:Entity Analytics
难度 2/5 1-3 小时 新手友好度 70/100
elastic/kibana#294939 · 2 条评论 ·
维护者通常 1 天内回复
-
security
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
area: backend enhancement priority: low
难度 2/5 1-3 小时 新手友好度 88/100
snapotter-hq/SnapOtter#1879 ·
维护者通常 1 天内回复
-
area/dependencies backport/26.4 kind/cve severity/high source/scan-dependencies status/triage
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 2 天内回复