Preview pane: a late ready kept through a navigation, and a new token on the form's reload
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Read ContentPreview.razor and its LoadedAsync method, then inspect ContentForm.razor and the existing component tests for both behaviors. Trace how ready state and the pane token change across navigation and form reload; use the tests to check the acceptance cases, including the documented contract limit in section 4.12 if that approach is chosen.
由索引模型根据 Issue 内容生成。
描述
Problem
Two cases of the preview pane that the review of #3437 (#3403) left for later:
- A page that says
readyafter its own load keepsreadythrough a navigation to a page without the contract. The pane forgetsreadywhen the frame loads a page with noreadysince the previous load (ContentPreview.razor,LoadedAsync). For the order load 1,ready1, load 2 with noready, the flag is still true fromready1 when load 2 arrives, so the next save postsrefreshto a page that ignores it: nothing reloads and the Silent note never shows. Front ends that postreadyafter hydration or after a data fetch send it in that order. The rule cannot tell this from areadythat is merely delivered late, which #3403 settled; the component test and the end-to-end case cover onlyreadybefore the load. - Reloading the form re-creates the open pane, which mints again while its token lasts.
ContentForm.razorsets its read to null before the first await ofLoadAsync, so the pane's condition turns false and the pane is disposed; when the read ends a new pane mints as it opens. The conflict dialog's Reload and Try again, on the same entry and locale, so give a new token that cannot be revoked and reload the frame.
Proposal
- Tell the two orders apart, or ask a contract page to post
navigatedbefore a full navigation and say so in section 4.12; whichever is chosen, record the limit in 4.12. - Keep the pane, its answer and its token across a reload of the same entry, site and locale.
Acceptance
- A page that says
readyafter its load and then navigates to a page without the contract is reloaded on the next save, or section 4.12 states the limit and the contract asks fornavigated - The conflict dialog's Reload and Try again on the same entry and locale mint no token while the shown one lasts
- Component tests for both, and an end-to-end case for the first if the contract changes
From the second review of #3437 (#3403).
- 主要语言
- C#
- 星标
- 567
- 派生
- 107
- 平均合并
- 1 小时 19 分钟
- 30 天内合并 PR
- 353
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fluentcms/FluentCMS 的其他 Issue
-
area:localization plugin type:bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:storage type:bug
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
area:testing type:bug
难度 3/5 1-2 天 新手友好度 72/100
维护者通常 1 天内回复
-
area:api area:publishing type:feature
难度 4/5 3-5 天 新手友好度 55/100
fluentcms/FluentCMS#3473 · 1 条评论 ·
维护者通常 1 天内回复
-
area:storage plugin type:bug
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
查看 fluentcms/FluentCMS 的全部 Issue
相似的 Issue
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtime可能已有人在做 @Goldziher 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
priority:P2
难度 2/5 1-3 小时 新手友好度 82/100
-
bug sev-5 vm
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 85/100
-
area:jobads-cv bug FE mvp P3
难度 2/5 1-3 小时 新手友好度 77/100
klasolsson81/jobbliggaren#2271 ·
维护者通常 1 天内回复