From b83420587abeacc6da884975991db13c2d73f757 Mon Sep 17 00:00:00 2001 From: D19ital Date: Mon, 23 Nov 2026 16:40:40 +0300 Subject: [PATCH 1/2] docs: remove Phenom RMK firmware options from selector --- data/firmware.yaml | 39 ------------------------------- scripts/test-firmware-picker.cjs | 40 +++++++++++++------------------- 2 files changed, 16 insertions(+), 63 deletions(-) diff --git a/data/firmware.yaml b/data/firmware.yaml index 23856f2..515bd73 100644 --- a/data/firmware.yaml +++ b/data/firmware.yaml @@ -133,7 +133,6 @@ groups: name: Phenom picker_order: 12 picker_id: phenom - firmware_type: QMK instruction: phenom_qmk files: - label: { ru: Скачать, en: Download } @@ -142,7 +141,6 @@ groups: name: Phenom Mini picker_order: 15 picker_id: phenom-mini - firmware_type: QMK instruction: phenom_qmk files: - label: { ru: Скачать, en: Download } @@ -151,7 +149,6 @@ groups: name: Phenom Micro picker_order: 18 picker_id: phenom-micro - firmware_type: QMK instruction: phenom_qmk files: - label: { ru: Скачать, en: Download } @@ -213,42 +210,6 @@ groups: - label: { ru: Скачать, en: Firmware } url: https://github.com/ergohaven/vial-qmk/releases/download/4.0.6/4.0.6_sm30_v1.uf2 - - id: phenom-rmk - name: - ru: RMK — проводные устройства - en: RMK — wired devices - devices: - - id: rmk-phenom - name: Phenom - picker_id: phenom - picker_hidden: true - firmware_type: RMK - firmware_model: phenom - instruction: phenom_rmk - files: - - label: { ru: Скачать, en: Download } - url: https://github.com/ergohaven/rmk/releases/download/v0.3.0/phenom-v0.3.0.zip - - id: rmk-phenom-mini - name: Phenom Mini - picker_id: phenom-mini - picker_hidden: true - firmware_type: RMK - firmware_model: phenom_mini - instruction: phenom_rmk - files: - - label: { ru: Скачать, en: Download } - url: https://github.com/ergohaven/rmk/releases/download/v0.3.0/phenom-mini-v0.3.0.zip - - id: rmk-phenom-micro - name: Phenom Micro - picker_id: phenom-micro - picker_hidden: true - firmware_type: RMK - firmware_model: phenom_micro - instruction: phenom_rmk - files: - - label: { ru: Скачать, en: Download } - url: https://github.com/ergohaven/rmk/releases/download/v0.3.0/phenom-micro-v0.3.0.zip - - id: zmk-previous name: ru: ZMK — беспроводные устройства diff --git a/scripts/test-firmware-picker.cjs b/scripts/test-firmware-picker.cjs index 008ec3f..58ba211 100644 --- a/scripts/test-firmware-picker.cjs +++ b/scripts/test-firmware-picker.cjs @@ -48,31 +48,23 @@ for (const page of pages) { const choose = value => { const option = options.find(o => o.dataset.firmwareValue === value); assert.ok(option, value); option.listeners.click(); }; for (const model of ['phenom', 'phenom-mini', 'phenom-micro']) { assert.equal(options.filter(o => o.dataset.firmwareValue === model).length, 1); + const option = options.find(o => o.dataset.firmwareValue === model); + assert.ok(!option.dataset.firmwareTypes, 'Phenom is QMK-only: no firmware-type selector'); choose(model); - assert.equal(field.hidden, false); - assert.equal(type.value, '', 'No implicit selection, including after switching models'); - assert.equal(result.hidden, true); - for (const firmware of ['QMK', 'RMK', 'QMK', '']) { - type.value = firmware; - type.listeners.change(); - const visible = devices.filter(d => !d.hidden); - assert.equal(visible.length, firmware ? 1 : 0); - assert.equal(result.hidden, !firmware); - if (!firmware) continue; - const content = visible[0].textContent; - assert.match(content, /firmware-picker__instruction/); - assert.match(content, /(?:Download|Скачать)<\/span>/); - if (firmware === 'RMK') { - assert.ok(content.includes(`${model}-v0.3.0.zip`)); - assert.ok(content.includes(`${model.replaceAll('-', '_')}_left.uf2`)); - assert.ok(content.includes(`${model.replaceAll('-', '_')}_right.uf2`)); - assert.ok(!/double-press|дважды быстро/.test(content), 'Do not copy wireless K04 bootloader steps'); - } else { - assert.ok(content.includes(`4.0.6_${model.replaceAll('-', '_')}_v1.uf2`)); - assert.match(content, /same UF2|один и тот же UF2/); - } - } - type.value = 'RMK'; type.listeners.change(); + assert.equal(field.hidden, true, 'Phenom must not expose QMK/RMK selection'); + assert.equal(result.hidden, false, 'Show QMK download and instructions immediately'); + const panels = devices.filter(d => d.dataset.firmwareDevice === model); + assert.equal(panels.length, 1, 'No hidden Phenom RMK panel may remain'); + const visible = devices.filter(d => !d.hidden); + assert.equal(visible.length, 1); + assert.equal(visible[0], panels[0]); + const content = visible[0].textContent; + assert.match(content, /firmware-picker__instruction/); + assert.match(content, /(?:Download|Скачать)<\/span>/); + assert.ok(content.includes(`4.0.6_${model.replaceAll('-', '_')}_v1.uf2`)); + assert.match(content, /same UF2|один и тот же UF2/); + assert.ok(!content.includes('github.com/ergohaven/rmk/'), 'Phenom must not offer RMK downloads'); + assert.ok(!content.includes('_left.uf2') && !content.includes('_right.uf2')); } for (const option of options.filter(o => !o.dataset.firmwareTypes)) { choose(option.dataset.firmwareValue); From 8f78145ab1e4cc5fa2d5eb6a1fc9781e575001ac Mon Sep 17 00:00:00 2001 From: D19ital Date: Mon, 23 Nov 2026 16:41:45 +0300 Subject: [PATCH 2/2] docs: remove obsolete Phenom firmware migration notes --- data/firmware_instructions.yaml | 2 -- scripts/test-firmware-picker.cjs | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/data/firmware_instructions.yaml b/data/firmware_instructions.yaml index 7e2a05e..79d5679 100644 --- a/data/firmware_instructions.yaml +++ b/data/firmware_instructions.yaml @@ -103,7 +103,6 @@ phenom_qmk: - "Отключите USB-C от левой половинки, зажмите кнопку BOOT на нижней стороне корпуса и подключите её по USB-C. Отпустите кнопку, когда появится диск RPI-RP2" - "Скопируйте скачанный UF2-файл на этот диск — половинка перезагрузится" - "Повторите действия для правой половинки с тем же UF2-файлом" - note: "При смене типа прошивки сохраните резервную копию раскладки, но не рассчитывайте на прямой перенос настроек между QMK и RMK" en: title: How to install QMK steps: @@ -112,7 +111,6 @@ phenom_qmk: - "Disconnect USB-C from the left half, hold the BOOT button on the bottom of the case and connect it via USB-C. Release the button when the RPI-RP2 drive appears" - "Copy the downloaded UF2 file to that drive — the half will restart" - "Repeat these steps for the right half with the same UF2 file" - note: "Back up your layout before changing firmware type, but do not assume settings can be transferred directly between QMK and RMK" phenom_rmk: ru: diff --git a/scripts/test-firmware-picker.cjs b/scripts/test-firmware-picker.cjs index 58ba211..750b65b 100644 --- a/scripts/test-firmware-picker.cjs +++ b/scripts/test-firmware-picker.cjs @@ -64,6 +64,7 @@ for (const page of pages) { assert.ok(content.includes(`4.0.6_${model.replaceAll('-', '_')}_v1.uf2`)); assert.match(content, /same UF2|один и тот же UF2/); assert.ok(!content.includes('github.com/ergohaven/rmk/'), 'Phenom must not offer RMK downloads'); + assert.ok(!content.includes('RMK'), 'Phenom QMK instructions must not retain obsolete migration notes'); assert.ok(!content.includes('_left.uf2') && !content.includes('_right.uf2')); } for (const option of options.filter(o => !o.dataset.firmwareTypes)) {