Skip to content

Implement URL download flow for COPY GAME! with permission prompt - #3

Open
ReedonMenu wants to merge 1 commit into
mainfrom
codex/create-roblox-game-copier-with-api-key-kjnene
Open

Implement URL download flow for COPY GAME! with permission prompt#3
ReedonMenu wants to merge 1 commit into
mainfrom
codex/create-roblox-game-copier-with-api-key-kjnene

Conversation

@ReedonMenu

Copy link
Copy Markdown
Owner

Motivation

  • Enable COPY GAME! to actually download files when a direct http/https URL is provided so the UI performs the expected action instead of only preparing a local command.
  • Make the behavior explicit and safe by prompting the user for permission before starting downloads and by keeping local-path handling separate.

Description

  • Updated index.html so the COPY GAME! button detects http/https URLs, prompts the user for permission, fetches the file, and triggers a browser download using a Blob and an <a download> click.
  • Added clear handling that explains local file paths cannot be downloaded by browsers and points users to the existing COPY AS POWERSHELL (.ps1) flow for local .rbxl/.rbxlx backups.
  • Preserved and integrated the PowerShell script generation flow which still produces a .ps1 that copies the specified local file into a backups folder next to the script.
  • Added/kept supporting assets and CLI: roblox_game_copier.py (local CLI and API-key protection), script.js, styles.css, and unit tests in test_roblox_game_copier.py.

Testing

  • Ran unit tests with python3 -m unittest -v and both tests (test_generate_and_validate_key and test_copy_game_file) passed (OK).
  • Executed an automated Playwright script against a served index.html that filled a direct URL, accepted the permission dialog, clicked COPY GAME!, and recorded a screenshot confirming the download flow completed successfully.

Codex Task

@vercel

vercel Bot commented Feb 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
game-copier Ready Ready Preview, Comment Feb 20, 2026 1:20pm

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