sbuilder-mcp 0.102.0 → 0.102.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/CHANGELOG.vi.md +5 -0
- package/dist/domains/site/review.js +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@ All notable changes to this project are documented in this file.
|
|
|
6
6
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.102.1] - 2026-10-30
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- `sb_review` no longer reports `tag_filters_share_key` for tag filters that carry the same values, such as a desktop sidebar and its mobile accordion copy sharing one key on purpose.
|
|
13
|
+
|
|
9
14
|
## [0.102.0] - 2026-10-30
|
|
10
15
|
|
|
11
16
|
### Added
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -6,6 +6,11 @@ Mọi thay đổi đáng chú ý của dự án được ghi lại trong file n
|
|
|
6
6
|
Định dạng dựa trên [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
và dự án tuân theo [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.102.1] - 2026-10-30
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- `sb_review` không còn báo `tag_filters_share_key` cho các bộ lọc thẻ có cùng giá trị, chẳng hạn sidebar desktop và bản accordion mobile dùng chung một khóa có chủ đích.
|
|
13
|
+
|
|
9
14
|
## [0.102.0] - 2026-10-30
|
|
10
15
|
|
|
11
16
|
### Added
|
|
@@ -473,6 +473,8 @@ opts = {}) {
|
|
|
473
473
|
// emptied the shelf on two CPUs. Since web_builder's tag filter groups each filter owns
|
|
474
474
|
// `f.tag.<filterGroupKey>`: values OR within it, groups AND. Event filters write no URL.
|
|
475
475
|
{
|
|
476
|
+
// A MIRROR — the same values on another breakpoint's copy (desktop sidebar, mobile
|
|
477
|
+
// accordion) — shares the key on purpose; only DIFFERENT value sets are two facets.
|
|
476
478
|
const byKey = new Map();
|
|
477
479
|
for (const id of walkOrder) {
|
|
478
480
|
const n = d.nodes[id];
|
|
@@ -485,12 +487,14 @@ opts = {}) {
|
|
|
485
487
|
...(Array.isArray(sp.filterTargets) ? sp.filterTargets.filter((t) => typeof t === 'string' && t !== '') : []),
|
|
486
488
|
];
|
|
487
489
|
const key = g ? `tag.${g}` : 'tag';
|
|
488
|
-
|
|
490
|
+
const rows = Array.isArray(sp.filterValues) ? sp.filterValues : [];
|
|
491
|
+
const values = rows.map((r) => String(r?.value ?? '').toLowerCase()).sort().join('\n');
|
|
492
|
+
byKey.set(key, [...(byKey.get(key) ?? []), { id, type: n.data.type, targets, values }]);
|
|
489
493
|
}
|
|
490
494
|
for (const [key, list] of byKey) {
|
|
491
495
|
const overlaps = (a, b) => a.length === 0 || b.length === 0 || a.some((t) => b.includes(t));
|
|
492
496
|
for (let i = 1; i < list.length; i++) {
|
|
493
|
-
if (!list.slice(0, i).some((p) => overlaps(p.targets, list[i].targets)))
|
|
497
|
+
if (!list.slice(0, i).some((p) => p.values !== list[i].values && overlaps(p.targets, list[i].targets)))
|
|
494
498
|
continue;
|
|
495
499
|
out.push({
|
|
496
500
|
code: 'tag_filters_share_key',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sbuilder-mcp",
|
|
3
|
-
"version": "0.102.
|
|
3
|
+
"version": "0.102.1",
|
|
4
4
|
"description": "MCP server that designs and operates a Store Builder site — pages, data, theme and publish — through the platform's own API and live-edit protocol.",
|
|
5
5
|
"mcpName": "io.github.vuluu2k/sbuilder-mcp",
|
|
6
6
|
"type": "module",
|