US-07: Code editor surface and problems integrations#15
Open
Copilot wants to merge 10 commits into
Open
Conversation
5 tasks
Agent-Logs-Url: https://github.com/Backbone-UTP/judge-front/sessions/a481156a-8263-4b73-93af-8a429c12fb82 Co-authored-by: juanjo36 <95327702+juanjo36@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Backbone-UTP/judge-front/sessions/a481156a-8263-4b73-93af-8a429c12fb82 Co-authored-by: juanjo36 <95327702+juanjo36@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add code editor surface for challenge workspace
US-07: implementar superficie de editor en challenge-workspace
May 9, 2026
…to copilot/us-07-implementar-superficie-editor-codigo
…estore types and fix templates Restore challenge types, add ProblemContent component, wire CodeEditor to workspace state, and fix unit tests to match updated fixtures.
…ng, and active-line highlight
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a real code editing surface in
challenge-workspacefor efficient code writing with visual feedback (gutter, active line, basic syntax highlighting), keeping code editable per language from the feature state.Additionally, a decoupled contract is defined to allow future replacement of the internal editor without breaking container integration.
What’s included
Decoupled Editor UI (
code-editor):code,language,codeChange.Feature State (
challenge-workspace.state):selectedLanguage,codeByLanguage, computedcode, and language catalog.Types and Contracts (
challenge.types):ChallengeLanguage,challengeLanguages, labels, starter templates, andisChallengeLanguagetype guard.Container Integration:
challenge-workspacereplaces the static<pre><code>block with<app-code-editor>.<app-problem-content>and<app-code-editor>in the workspace layout, using the shared problem content component for the problem panel.Behavior Coverage:
Example usage