Skip to content

Releases: vigdigital/vig-car-sync

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 11:14
feat: site chọn HÃNG để sync (đa hãng — chuẩn bị BYD) (v0.12.0)

- Trang 'Cài đặt đồng bộ' (Cars → Cài đặt đồng bộ): tick hãng site quản lý → option vcs_brands
- Hub: allowed_brands() + index_for_site() lọc dropdown theo hãng đã chọn (rỗng=tất cả, tương thích)
- Metabox 'Chọn từ kho' chỉ hiện hãng của site (vd BYD site chỉ thấy BYD)
- Hub đã đa hãng sẵn (index.json liệt kê brands, mỗi hãng 1 file); thêm hãng = thêm data/<hãng>.json

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 10:46
feat(ui): nút 'Đồng bộ tất cả' trên trang vcs-sync (v0.11.0)

- ajax_apply_all: flush cache → duyệt mọi xe → apply + lưu rev → báo cáo từng xe (xong/bỏ qua + số thay đổi)
- Nút 'Đồng bộ tất cả' + vùng kết quả; confirm trước khi ghi đè; tự reload để cập nhật badge
- admin.js: post() cho phép không id; CSS bảng kết quả

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 10:27
feat(ui): bảng đồng bộ dạng MA TRẬN — hàng=thông số, cột=phiên bản (v…

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 10:06
fix: 'Không có thay đổi' sai — bỏ cache Hub khi đồng bộ + Differ so c…

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 09:14
feat: thông số CƠ BẢN vs ĐẦY ĐỦ — sidebar gọn, đầy đủ để website tự đ…

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 22 Aug 09:04
fix(repo): fallback đọc ver_* THẲNG từ postmeta thô — không mất data …

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 08:23
feat: hướng A — data generic + vig_car_data() cho theme (v0.7.0)

- Repository: car_versions.specs lồng (repeater generic) thay field phẳng ver_*; vẫn ĐỌC fallback ver_* cho data cũ
- for_display() + hàm global vig_car_data($id): trả versions/common kèm 'key'=sanitize_title(nhãn) cho data-spec-key
- theme lặp generic → thêm/bớt dòng/bản/LOẠI thông số = chỉ data, không sửa cấu trúc theme
- docs: hbtn-theme-integration.md viết lại cho hướng A (2 file: carbon-fields-fields.php + single-cars.php; car.js không đổi); DATA-CONTRACT + theme-fields đánh dấu nested là cách ship chính thức
- test offline: mọi spec-key của mọi bản khớp common → override generic chạy đúng

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

v0.6.1

Choose a tag to compare

@github-actions github-actions released this 22 Aug 07:10
chore(cli): write_index ghi thêm model-level status vào index.json (v…

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 06:43
feat: cơ chế 'rev' — site biết xe nào CẦN đồng bộ (v0.6.0)

- Hub: rev(model)=băm nội dung (giá+phiên bản+thông số); fetch trả 'rev'; rev_index() từ index.json
- CLI: 'wp vig-car status [--changed]' liệt kê Mới nhất/Cần cập nhật/Chưa sync; 'pull --changed' chỉ sync xe đổi
- Consumer lưu meta _vcs_hub_rev khi ghi (cả CLI lẫn admin) → so lệch = cần cập nhật
- Admin: trang Đồng bộ hiện badge Cần cập nhật/Mới nhất; producer write_index ghi rev vào index.json

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 06:31
feat(cli): lệnh consumer 'wp vig-car pull' — đồng bộ hub→xe qua WP-CL…