Skip to content

Commit 463bb3d

Browse files
Copilotdorkmo
andcommitted
Address code review feedback - clarify comments and use placeholder PIN
Co-authored-by: dorkmo <[email protected]>
1 parent 8cdc25c commit 463bb3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/html-render.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ setTimeout(() => {{
264264
html_unlocked = html_content.replace('refreshData();', f'''
265265
// Inject sample data and simulate unlocked state
266266
pinState.configured = true;
267-
pinState.value = '1234'; // Simulated unlocked state
267+
pinState.value = 'PREVIEW'; // Simulated unlocked state for preview only
268268
applyServerData({sample_json}, "dev:client001");
269269

270270
// Force hide the PIN modal for the unlocked preview
@@ -327,7 +327,8 @@ setTimeout(() => {{
327327
out.write(html_with_pin)
328328
print(f'Extracted client-console-pin-setup HTML: {len(html_with_pin)} bytes')
329329

330-
# Write the unlocked version (overwrite the main one)
330+
# Replace the primary version with the unlocked version
331+
# (The original html_content was written above, now replace with unlocked version)
331332
output_file_unlocked = f'{output_dir}/{file_name}.html'
332333
with open(output_file_unlocked, 'w', encoding='utf-8') as out:
333334
out.write(html_unlocked)

0 commit comments

Comments
 (0)