Skip to content

Added direct Submission for CodeChef & Atcoder with CPH and linked with CPH-submit - #678

Closed
sachin-prmndani wants to merge 2 commits into
agrawal-d:mainfrom
sachin-prmndani:codeChef-sbmt-btn
Closed

Added direct Submission for CodeChef & Atcoder with CPH and linked with CPH-submit#678
sachin-prmndani wants to merge 2 commits into
agrawal-d:mainfrom
sachin-prmndani:codeChef-sbmt-btn

Conversation

@sachin-prmndani

@sachin-prmndani sachin-prmndani commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

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-submit extension (PR #40). The changes on the CPH side are intentionally minimal — the heavy lifting (language selection, editor injection, CSP bypass) is handled entirely by cph-submit.

Changes

  • App.tsx — Conditionally renders the Submit button for CodeChef & Atcoder problems, consistent with the existing Codeforces submission UI.
  • storeSavedProblems — Added a submitCodeChef() & 'submitAtcoder()' function that stores the necessary problem metadata, making it available for cph-submit to 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-submit counterpart: agrawal-d/cph-submit#40

CodeChef Problem:
Screenshot (264)
Atcoder Problem:
Screenshot (265)

@feynmansfan

Copy link
Copy Markdown

Can you add AtCoder too,

@sachin-prmndani

sachin-prmndani commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Can you add AtCoder too,

I tried but Cloudfare is making it nearly impossible todo.

Edit:
@feynmansfan done.

@sachin-prmndani sachin-prmndani changed the title Added direct Submission for CodeChef with CPH and linked with CPH-submit Added direct Submission for CodeChef & Atcoder with CPH and linked with CPH-submit Jun 13, 2026
@sachin-prmndani

Copy link
Copy Markdown
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.

@agrawal-d agrawal-d closed this Jul 19, 2026
Repository owner locked and limited conversation to collaborators Jul 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add AtCoder submission support Codechef , CSES and Atcoder submit button

3 participants