Commit Graph
418 Commits
Author SHA1 Message Date
kate522 276a2891ba feat(comments): full 1:1 zibll comment kernel for posts, forum, shop
Extract shared comment helpers (content/item/form/geo/actions), port GIF
[g=] smilies + FixedInput/moveForm UX, wire close_comments/city/quick
settings, REST comment get, and align product review chrome with zibll.
2026-07-18 15:51:47 +08:00
kate522 02006945f2 fix(shop): use get_address_book facade on cart/store views
Call sites still invoked undefined Shop::get_user_address_book() after
address logic moved to AddressService; route through the existing
get_address_book() facade instead.
2026-07-18 14:20:44 +08:00
kate522 3a80f5fc75 fix(shop): delegate product checkout_hint to CheckoutService
get_product_detail_view() still called Shop::get_checkout_hint() after the
method moved into CheckoutService, which fatals on product detail pages.
2026-07-18 14:12:30 +08:00
kate522 518e825bdd feat(front-submit): 1:1 写文章/投稿页对齐 zibll newposts
Register AKSRT 写文章/投稿 page template, wire header publish entry to
front submit URL, rewrite page-submit as dual-column TinyMCE compose with
featured cover, multi-category/topics/filters, pay box, drafts, and
capability-gated FrontSubmit AJAX (pay/featured traits).
2026-07-18 13:29:27 +08:00
kate522 397231ca75 fix(hero): align header slider title/search stack with zibll
Put hero main title/subtitle in search before_html (document flow),
move the search overlay outside the swiper as a sibling, and reset
search/slide-text positioning to zibll tops so title and search no
longer overlap.
2026-07-17 23:00:33 +08:00
kate522 5cae229a88 fix(admin): resolve schema builders under AKSRT\Admin\Schema
SchemaProvider still mapped domains to pre-PSR-4 Schema\* strings, so REST
schema loads fatalled with Class Schema\GlobalSchema not found. Point the
builder map at AKSRT\Admin\Schema\* via ::class.
2026-07-17 21:26:08 +08:00
kate522 097178c900 fix(admin): register REST controllers via FQCN after PSR-4
Admin::register_rest_routes used bare class strings like
'GlobalController', so class_exists() failed after the namespace move
and no aksrt/v1 settings/banner/schema routes registered (SPA 404).
2026-07-17 18:18:11 +08:00
kate522 2ce1b550ff fix(forum): accept plate CPT IDs when creating topics
Compose UI and board search already send aksrt_forum_plate post IDs as
board_id, but create_topic still validated aksrt_forum_board term IDs and
never wrote _aksrt_plate_id — so real plates failed with 版块不存在.
Validate/store under the plate model (and fix move_board the same way).
2026-07-17 18:01:24 +08:00
kate522 1210556bfd fix(forum): relax cap_cache meta hook arg types
deleted_post_meta passes meta_ids as array; strict int $meta_id fatals
on draft save when post meta is deleted. Match WP hook signatures.
2026-07-17 16:46:13 +08:00
kate522 0f8517bb8d fix(forum): return JSON on draft AJAX fatals
Partial deploys still 500 HTML via draft_service; catch Throwable and
wp_send_json_error so the client can show the real exception message.
2026-07-17 16:32:39 +08:00
kate522 60ce32f57e fix(forum): drop legacy draft service require_once
PSR-4 already loads DraftService; require class-aksrt-forum-draft-service.php fatals on compose.
2026-07-17 16:11:43 +08:00
kate522 68d2e78d77 fix(ns): class_exists() must use FQCN after PSR-4
Bare class_exists('Balance') looks up global Balance, always false
under AKSRT\* namespaces → REST 403 on balance exchange and friends.
Rewrite string checks to AKSRT\{Domain}\{Class}.
2026-07-17 15:40:20 +08:00
kate522 1e21911b03 fix(ns): root-qualify WP_* classes after PSR-4 move
Bare WP_REST_Server etc. resolve under AKSRT\* namespaces; prefix with
\ for Balance REST and other type hints / constructors.
2026-07-17 15:12:14 +08:00
kate522 da59d550ad fix(ns): root-qualify PHP builtins after PSR-4 move
Namespaced classes resolved DateTimeImmutable etc. under AKSRT\*
(e.g. Credits\DateTimeImmutable). Prefix with \ globally.
2026-07-17 15:05:03 +08:00
kate522 db210d7003 fix(scripts): drop dead $path arg from enqueue_public split
Trait split left enqueue_public_fonts_js_and_data requiring $path, but
caller never defines it; param unused. Remove to silence PHP warnings.
2026-07-17 14:58:30 +08:00
kate522 3cf0c08969 fix(autoload): one PSR-4 type per payment/widget file
PSR-4 split left GatewayInterface/Gateway duplicated across files;
loading BalanceGateway redeclared the interface. Strip sibling types
from polluted files (payment + widgets) so each path owns one type.
2026-07-17 14:44:36 +08:00
kate522 b2a57c700f fix(settings): restore memo cache dropped in class split
PSR-4/split left get_all() reading undeclared $cached_all, fatalling
admin boot; restore property + standalone/secret option key consts.
2026-07-17 13:59:34 +08:00
kate522 aaf458af1c refactor(autoload): migrate theme classes to Composer PSR-4
Move 288 types from global AKSRT_* + inc/classes manual requires into
namespace AKSRT\{Domain} under src/AKSRT/, wire composer.json psr-4,
and slim bootstrap to helpers/modules/hooks only. Split multi-class
widget/gateway files, update admin contract audit paths, and document
the layout in ADR/README.
2026-07-17 13:29:22 +08:00