Skip to content

Conversation

krystian-panek-vmltech
Copy link
Collaborator

No description provided.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a "code save as script" feature that allows users to save code from the console as persistent scripts. The feature includes a new save button with a dialog for selecting script type (manual/automatic) and naming the script.

  • Adds frontend UI components for saving code as scripts with type detection and validation
  • Implements backend API endpoints for script persistence
  • Updates documentation and snippet examples for better clarity

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ui.frontend/src/utils/strings.ts Adds file name/path validation utilities
ui.frontend/src/utils/api.types.ts Refactors script paths and adds ScriptRoots mapping
ui.frontend/src/pages/ConsolePage.tsx Integrates the new save button component
ui.frontend/src/components/CodeSaveButton.tsx New component for saving code with script type selection
core/src/main/java/dev/vml/es/acm/core/servlet/ScriptServlet.java Adds POST endpoint for script saving
core/src/main/java/dev/vml/es/acm/core/servlet/ScriptOutput.java Refactored for single script output
core/src/main/java/dev/vml/es/acm/core/servlet/ScriptListOutput.java New class for script list operations
core/src/main/java/dev/vml/es/acm/core/servlet/ScriptInput.java New input class for script data
core/src/main/java/dev/vml/es/acm/core/script/ScriptRepository.java Adds script saving functionality
ui.content/.../snippet/available/core/**/*.yml Updates documentation strings and adds new demo snippets

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@krystian-panek-vmltech krystian-panek-vmltech merged commit 321fa67 into main Aug 20, 2025
1 check passed
@krystian-panek-vmltech krystian-panek-vmltech deleted the code-save-as-script branch August 20, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant