Files
wordpress-theme-aksrt/tools/admin-contract-report.json
T
kate522andClaude Fable 5 cf4554e7c8 fix(ajax): show the reference skeleton on every load-more surface
Clicking 加载更多 in the 多栏目文章 widget showed no skeleton at all — the
list simply stayed still until the response arrived, then the new cards
appeared. The homepage stream, archives and comments already had a working
skeleton; the widget's AJAX load goes through a different client and never
found its loader.

Root cause was DOM placement, not visibility: ContentRenderer emitted
.post_ajax_loader as a *sibling* of .widget-ajaxpager, while the widget REST
client resolves it with container.querySelector('.post_ajax_loader'). The
node existed but could never match, so .is-loading was never added and the
skeleton stayed display:none. Inactive tab panes had the same shape, and the
direct-load branch of ajaxpager() emitted no loader at all.

Changes, all following the reference theme's post_ajax() contract in
zibll/js/main.js (beforeSend anchors the loader to the end of the list;
success only hides it, never removes it):

- ContentRenderer: nest the loader inside .widget-ajaxpager for both the
  direct-load and inactive-tab branches, and drop the sibling append.
- widgets/frontend.js: anchorLoader() moves the loader to the end of the
  list before .ajax-pag on every request; appended cards are inserted before
  it; a replace preserves the node instead of wiping it with innerHTML; a
  fallback loader is created when the DOM has none; loadItems() now returns
  its promise; drop the unreachable is-loading auto-load branch.
- Message centre, user-home panels and the search page switch from spinner /
  opacity feedback to the same .posts-item-shaped skeleton, so all AJAX
  surfaces share one loading contract.
- Remove the second, never-wired skeleton system (.aksrt-skeleton-* in
  core-ui.css) and the dead spinner stylesheets/rules (skeleton.css,
  ajax-spinner.css, .load-more__*, --skeleton-base/--skeleton-shine) plus the
  unregistered assets/js/waterfall.js.
- Extend the widget, message-centre, user-home and asset-ledger contract
  tests to pin the loader inside the container, the class-only visibility
  switch, and the absence of the deleted dead code.

Verified: 470 node tests, 136 PHP widget assertions, admin-contract and
widget-system audits all green; rebuilt public assets after the CSS/JS
removals.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-10-03 22:22:15 +08:00

268 lines
12 KiB
JSON

{
"generated_at": "2026-10-03T14:21:05+00:00",
"errors": [],
"warnings": [
"customPage tools-update section 'tools/update' not in PHP schema (ok if pure operational page)",
"customPage users-wechat-template section 'users/wechat-template' not in PHP schema (ok if pure operational page)",
"enum incomplete parse for 'alipay_payment_type' (php subset of js): php=[page] js=[page,wap]",
"enum incomplete parse for 'avatar_external' (php subset of js): php=[] js=[,gravatar,weavatar,cravatar,geekzu,loli,sep,v2ex]",
"enum incomplete parse for 'backup_frequency' (php subset of js): php=[daily] js=[daily,weekly,monthly]",
"enum incomplete parse for 'bind_reminder' (php subset of js): php=[email] js=[email,phone,email_phone,close]",
"enum incomplete parse for 'content_audit_on_failure' (php subset of js): php=[allow] js=[allow,block]",
"enum incomplete parse for 'content_audit_provider' (php subset of js): php=[baidu] js=[baidu,null]",
"enum incomplete parse for 'direction' (php subset of js): php=[horizontal] js=[horizontal,vertical]",
"enum incomplete parse for 'effect' (php subset of js): php=[slide] js=[slide,fade,cube,coverflow,flip]",
"enum incomplete parse for 'epay_device' (php subset of js): php=[auto] js=[auto,pc,mobile]",
"enum incomplete parse for 'font_family' (php subset of js): php=[system] js=[system,noto-sans-sc,noto-serif-sc,custom]",
"enum incomplete parse for 'i18n_default_lang' (php subset of js): php=[zh-CN] js=[zh-CN,en,zh-TW,ja,ko,fr,de,es,ru]",
"enum incomplete parse for 'i18n_switcher_position' (php subset of js): php=[header] js=[header,footer,both,none]",
"enum incomplete parse for 'i18n_url_strategy' (php subset of js): php=[query] js=[query,path,subdomain]",
"enum incomplete parse for 'img_position' (php subset of js): php=[left] js=[left,right]",
"enum incomplete parse for 'invit_code_s' (php subset of js): php=[close] js=[close,open,must]",
"enum incomplete parse for 'invite_code_s' (php subset of js): php=[close] js=[close,open,must]",
"enum incomplete parse for 'ip_addr_sdk' (php subset of js): php=[polling] js=[polling,qq,amap,null]",
"enum incomplete parse for 'ip_geo_format' (php subset of js): php=[province_city] js=[province_city,province,country_province]",
"enum incomplete parse for 'lazy_animation' (php subset of js): php=[fade] js=[blur,fade,scale]",
"enum incomplete parse for 'list_meta_show' (php subset of js): php=[view] js=[view,like,comm]",
"enum incomplete parse for 'list_orderby' (php subset of js): php=[date] js=[date,modified,default]",
"enum incomplete parse for 'list_show_type' (php subset of js): php=[separate] js=[separate,no_margin]",
"enum incomplete parse for 'list_thumb_fit' (php subset of js): php=[] js=[,contain]",
"enum incomplete parse for 'list_type' (php subset of js): php=[text] js=[text,thumb,thumb_if_has,card]",
"enum incomplete parse for 'lists' (php subset of js): php=[modified] js=[modified,date,views,like,comment_count,favorite,rand]",
"enum incomplete parse for 'mandatory_bind' (php subset of js): php=[email] js=[email,phone,email_phone,close]",
"enum incomplete parse for 'message_paginate_type' (php subset of js): php=[ajax_lists] js=[ajax_lists,default]",
"enum incomplete parse for 'oauth_bind_type' (php subset of js): php=[auto] js=[auto,manual]",
"enum incomplete parse for 'oauth_proxy_mode' (php subset of js): php=[close] js=[close,server,client]",
"enum incomplete parse for 'paging_ajax_s' (php subset of js): php=[1] js=[1,0]",
"enum incomplete parse for 'pattern' (php subset of js): php=[allow] js=[allow,prohibit]",
"enum incomplete parse for 'pay_alipay_sdk_options' (php subset of js): php=[official_alipay] js=[official_alipay,epay,null]",
"enum incomplete parse for 'pay_box_position' (php subset of js): php=[box_top] js=[box_top,top,bottom,box_bottom]",
"enum incomplete parse for 'pay_modo_default' (php subset of js): php=[0] js=[0,points]",
"enum incomplete parse for 'pay_wechat_sdk_options' (php subset of js): php=[official_wechat] js=[official_wechat,epay,null]",
"enum incomplete parse for 'post_pay_box_position' (php subset of js): php=[content] js=[content,mask]",
"enum incomplete parse for 'post_time_source' (php subset of js): php=[date] js=[date,modified]",
"enum incomplete parse for 'referral_attribution_model' (php subset of js): php=[first_touch] js=[first_touch,last_touch]",
"enum incomplete parse for 'search_type_in' (php subset of js): php=[post] js=[post,user]",
"enum incomplete parse for 'sign_card_position' (php subset of js): php=[left] js=[left,center,right]",
"enum incomplete parse for 'sign_theme_mode' (php subset of js): php=[no] js=[no,white-theme,dark-theme]",
"enum incomplete parse for 'style' (php subset of js): php=[null] js=[null,style2]",
"enum incomplete parse for 'system_notice_btn1_color' (php subset of js): php=[primary] js=[primary,success,warning,danger,info,purple,dark]",
"enum incomplete parse for 'system_notice_btn2_color' (php subset of js): php=[primary] js=[primary,success,warning,danger,info,purple,dark]",
"enum incomplete parse for 'system_notice_btn3_color' (php subset of js): php=[primary] js=[primary,success,warning,danger,info,purple,dark]",
"enum incomplete parse for 'system_notice_btn4_color' (php subset of js): php=[primary] js=[primary,success,warning,danger,info,purple,dark]",
"enum incomplete parse for 'system_notice_policy' (php subset of js): php=[] js=[,signin,vip,free,auth]",
"enum incomplete parse for 'system_notice_size' (php subset of js): php=[] js=[,modal-mini,modal-sm,modal-lg]",
"enum incomplete parse for 'theme_mode' (php subset of js): php=[white-theme] js=[white-theme,dark-theme,time-auto]",
"enum incomplete parse for 'user_email_limit_type' (php subset of js): php=[not] js=[not,allow]",
"enum incomplete parse for 'user_sign_type' (php subset of js): php=[modal] js=[modal,page]",
"enum incomplete parse for 'user_signin_nopas_active' (php subset of js): php=[nopas] js=[nopas,pas,only_nopas]",
"enum incomplete parse for 'wechat_payment_type' (php subset of js): php=[native] js=[native,h5]",
"enum incomplete parse for 'weixingzh_gzh_type' (php subset of js): php=[service] js=[service,subscribe]"
],
"info": [
"PHP schema domains: global, page_display, post_list, permissions, users, payment, extensions, tools, ExtensionsAudit, ExtensionsIP, ExtensionsPush, ToolsBackup, ToolsHealth, ToolsImportExport",
"Menu pages discovered: 60",
"admin build ok; chunks=31"
],
"domains": {
"global": {
"sections": [
"code-highlight",
"common",
"custom-code",
"email",
"i18n",
"layout",
"logo",
"search",
"seo",
"share",
"system-notice"
],
"files": [
"src/Admin/Schema/GlobalSchema.php"
]
},
"page_display": {
"sections": [
"category",
"footer",
"header-components",
"header-nav",
"homepage",
"other",
"tag",
"user-home"
],
"files": [
"src/Admin/Schema/SchemaPageDisplay.php"
]
},
"post_list": {
"sections": [
"comment",
"feature",
"filter",
"list",
"page",
"pay",
"submit",
"thumb"
],
"files": [
"src/Admin/Schema/SchemaPostList.php",
"src/Admin/Schema/PostList/SchemaPostListList.php"
]
},
"permissions": {
"sections": [
"attachment",
"capabilities",
"login",
"moderation"
],
"files": [
"src/Admin/Schema/SchemaPermissions.php"
]
},
"users": {
"sections": [
"auth",
"badge",
"credits",
"features",
"level",
"notifications",
"oauth",
"report",
"sms",
"verify",
"wechat"
],
"files": [
"src/Admin/Schema/SchemaUsers.php"
]
},
"payment": {
"sections": [
"affiliate",
"gateway",
"knowledge",
"recharge",
"revenue",
"vip",
"withdrawal"
],
"files": [
"src/Admin/Schema/SchemaPayment.php"
]
},
"extensions": {
"sections": [
"audit",
"ip",
"push"
],
"files": [
"src/Admin/Schema/SchemaExtensions.php"
]
},
"tools": {
"sections": [
"backup",
"health",
"import-export"
],
"files": [
"src/Admin/Schema/SchemaTools.php"
]
},
"ExtensionsAudit": {
"sections": [
"audit"
],
"files": [
"src/Admin/Schema/SchemaExtensionsAudit.php"
]
},
"ExtensionsIP": {
"sections": [
"ip"
],
"files": [
"src/Admin/Schema/SchemaExtensionsIP.php"
]
},
"ExtensionsPush": {
"sections": [
"push"
],
"files": [
"src/Admin/Schema/SchemaExtensionsPush.php"
]
},
"ToolsBackup": {
"sections": [
"backup"
],
"files": [
"src/Admin/Schema/SchemaToolsBackup.php"
]
},
"ToolsHealth": {
"sections": [
"health"
],
"files": [
"src/Admin/Schema/SchemaToolsHealth.php"
]
},
"ToolsImportExport": {
"sections": [
"import-export"
],
"files": [
"src/Admin/Schema/SchemaToolsImportExport.php"
]
}
},
"page_count": 60,
"build": {
"present": true,
"entry": true,
"missing_chunks": [],
"chunks": [
"SchemaPage.Bai0uPL7.js",
"vendor-vue.BYzo-2I-.js",
"FaIcon.B3OOcphx.js",
"AksMediaField.DJPSTsh8.js",
"FaIconPicker.ZNRF6_J7.js",
"shared-api.D5VInyXf.js",
"vendor-misc.buu8cFA9.js",
"vendor-draggable.YNevSrwY.js",
"level.E3ANSDAX.js",
"badge.CKTsmH1z.js",
"vendor-naive.D3KCxD1U.js",
"DeferredPage.BR2FUrUF.js",
"NativeOpsRedirect.DMOc4MZt.js",
"FloatingButtonsSettings.CLilEe8k.js",
"PageHeader.jmNZVzHG.js",
"FooterTabbarSettings.BFZnXJRS.js",
"PostPageSettings.B9iQMeXd.js",
"CommentSettings.B3EoTCwT.js",
"PermissionsCapabilities.Dwo7ED9D.js",
"CmsCredits.BeYe9Q4u.js",
"ThemeInfoPage.BEUFF9-H.js",
"ThemeAuthorizationPage.DqXs-wcM.js",
"DocsPage.C9brbZ0-.js",
"UsersVerify.DF6GIMJm.js",
"UsersLevel.r4FMbDJx.js",
"UsersBadge.DQwTkMyA.js",
"UsersWechatTemplate.-k8FkSa8.js",
"ToolsImportExport.BcC8WeEX.js",
"ToolsHealth.pQpCqHX1.js",
"ToolsUpdate.Dl-oC250.js",
"ExtensionAI.B5qc_0CR.js"
]
}
}