Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions data/firmware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ groups:
name: Phenom
picker_order: 12
picker_id: phenom
firmware_type: QMK
instruction: phenom_qmk
files:
- label: { ru: Скачать, en: Download }
Expand All @@ -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 }
Expand All @@ -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 }
Expand Down Expand Up @@ -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 — беспроводные устройства
Expand Down
2 changes: 0 additions & 2 deletions data/firmware_instructions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ phenom_qmk:
- "Отключите USB-C от левой половинки, зажмите кнопку <code>BOOT</code> на нижней стороне корпуса и подключите её по USB-C. Отпустите кнопку, когда появится диск <code>RPI-RP2</code>"
- "Скопируйте скачанный UF2-файл на этот диск — половинка перезагрузится"
- "Повторите действия для правой половинки с тем же UF2-файлом"
note: "При смене типа прошивки сохраните резервную копию раскладки, но не рассчитывайте на прямой перенос настроек между QMK и RMK"
en:
title: How to install QMK
steps:
Expand All @@ -112,7 +111,6 @@ phenom_qmk:
- "Disconnect USB-C from the left half, hold the <code>BOOT</code> button on the bottom of the case and connect it via USB-C. Release the button when the <code>RPI-RP2</code> 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:
Expand Down
41 changes: 17 additions & 24 deletions scripts/test-firmware-picker.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,24 @@ 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, /<span>(?: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, /<span>(?: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('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)) {
choose(option.dataset.firmwareValue);
Expand Down
Loading