feat(stream): friendlier pagination loading + error retry
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 29s
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 29s
- Replace the bare '…' loading dots at the bottom of the post stream with a skeleton bubble that matches the initial-load placeholders, so pagination feels like content arriving instead of a frozen indicator. - Localize the retry control via new 'retry' / 'loadMoreFailed' keys across all 7 locales and surface a user-friendly error string instead of the raw exception message. - Retry button now picks reset() vs loadMore() based on item count so a pagination failure only refetches the next page, not the whole stream. - When a banner deep-link can't find its target post and pagination errors, break out of the retry loop and release the scroll lock so the user sees the inline retry instead of an endless freeze. Verified in the browser: zh-CN renders '加载更多资料失败,请检查网络后重试。' with a '重试' button; banner clicks with empty / '#' / 'javascript:' / null linkUrls render no anchor and do not navigate.
This commit is contained in:
@@ -124,6 +124,8 @@ export const zhDict: Dict = {
|
||||
tagsCommaLabel: "标签(逗号分隔)",
|
||||
uploadFile: "上传文件",
|
||||
loading: "加载中…",
|
||||
loadMoreFailed: "加载更多资料失败,请检查网络后重试。",
|
||||
retry: "重试",
|
||||
paginationPrev: "上一页",
|
||||
paginationNext: "下一页",
|
||||
listRange: "显示 {{from}}–{{to}},共 {{total}} 条",
|
||||
|
||||
Reference in New Issue
Block a user