Added direct Submission for CodeChef & Atcoder with CPH and linked with CPH-submit - #678
Closed
sachin-prmndani wants to merge 2 commits into
Closed
Added direct Submission for CodeChef & Atcoder with CPH and linked with CPH-submit#678sachin-prmndani wants to merge 2 commits into
sachin-prmndani wants to merge 2 commits into
Conversation
|
Can you add AtCoder too, |
Contributor
Author
I tried but Cloudfare is making it nearly impossible todo. Edit: |
Contributor
Author
|
@agrawal-d I added the AtCoder support to this PR itself because I ran into merge conflicts when trying to open a separate PR. Sorry for the inconvenience. |
Repository owner
locked and limited conversation to collaborators
Jul 19, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
feat: Add CodeChef & Atcoder Submission Support via cph-submit
closes #672
closes #681
Overview
This PR adds CodeChef & Atcoder problem submission support to CPH, complementing the corresponding changes in the
cph-submitextension (PR #40). The changes on the CPH side are intentionally minimal — the heavy lifting (language selection, editor injection, CSP bypass) is handled entirely bycph-submit.Changes
App.tsx— Conditionally renders the Submit button for CodeChef & Atcoder problems, consistent with the existing Codeforces submission UI.storeSavedProblems— Added asubmitCodeChef()& 'submitAtcoder()' function that stores the necessary problem metadata, making it available forcph-submitto pick up and trigger the submission flow.Workflow
The full end-to-end submission workflow (language mapping, Ace editor injection, Chrome MV3 CSP bypass) is documented and implemented in the
cph-submitcounterpart: agrawal-d/cph-submit#40CodeChef Problem:


Atcoder Problem: