Skip to content

Add acodepng-based PNG generator tab to UI sender#19

Open
peterwolf-pl wants to merge 1 commit into
RESTARTfrom
codex/dodaj-generator-do-ui_sendera
Open

Add acodepng-based PNG generator tab to UI sender#19
peterwolf-pl wants to merge 1 commit into
RESTARTfrom
codex/dodaj-generator-do-ui_sendera

Conversation

@peterwolf-pl
Copy link
Copy Markdown
Owner

Motivation

  • Add a separate PNG->ACODE generator flow driven by acodepng.py without changing the existing artacodepng pipeline.
  • Expose acodepng.py-specific options in the web UI so users can tune generation parameters matching the script's CLI.
  • Provide preview and simulator wiring for the new generator consistent with other generator tabs.

Description

  • Introduced ACODEPNG_PATH and updated _assert_tools_exist to accept a list of script paths, and adjusted existing checks to pass explicit tool lists.
  • Implemented generate_from_acodepng(png_path, params) and a new Flask endpoint @app.route("/api/gen_acodepng", methods=["POST"]) to run acodepng.py and generate preview via acodeviz.py.
  • Added a new UI tab Generator PNG (acodepng) in templates/index.html with settings (prefix ap_), client-side JS (generateAcodepng, lastAcodepngId) and simulator instance simAcodepng, including push/download wiring to the sender.
  • Kept the existing artacodepng generator intact and mirrored simulator behavior and preview generation to match other generator tabs.

Testing

  • Ran python3 acodepng.py --help to inspect available CLI options, which executed successfully and was used to map UI fields to CLI flags.
  • Attempted to start the UI with python3 ui_sender.py, which failed to run due to missing flask module (automated start failed).
  • No additional automated unit tests were added or executed as part of this change.
  • Basic repository operations (git commit) were performed to record the changes.

Codex Task

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant