DevPath icon indicating copy to clipboard operation
DevPath copied to clipboard

[Bug]: The View Code button on the sample project details page does not open/show starter code correctly.

Open 2823sanskar opened this issue 6 months ago • 5 comments

What happened?

The View Code button on the project details page was not opening/displaying the starter code preview as intended.

Expected:

When a user clicks View Code, the starter code preview panel should open and display the corresponding starter code for that project.

Actual:

Clicking View Code did not display anything, preventing users from previewing project starter files.

Steps to reproduce

  1. Run the app locally with python app.py.
  2. Open http://127.0.0.1:5000/project/1.
  3. Click the View Code button on the project page.
  4. Nothing happens—starter code does not open or display.
  5. Open browser console (F12) and a JavaScript error appears from static/script.js.

Expected behaviour

Clicking View Code should open the code preview panel and display the project’s starter code correctly.

This helps users immediately preview the starter template before downloading or beginning the project.

Area of the app affected

Starter code viewer

Python version

Python 3.11.4

Operating system

Windows 11

Relevant error output or logs

No terminal crash.

Issue reproduced from UI behavior where starter code preview was not opening/displaying correctly.

Before submitting

  • [x] I searched existing issues and this has not been reported before.
  • [x] I can reproduce this bug consistently with the steps above.
  • [x] I am running the latest version of the main branch.

i want to solve this under gssoc-2026

2823sanskar avatar May 30 '26 05:05 2823sanskar

Hi! @komalharshita I’d like to work on this issue under GSSoC-2026.

I already have a working fix prepared locally and can open a PR once assigned.

Please assign this issue and add the GSSoC label if applicable.

Thank you!

2823sanskar avatar May 30 '26 05:05 2823sanskar

Hi @komalharshita ,

I would like to work on this issue under GSSoC 2026.

I have reviewed the issue description and would like to take it up. Could you please assign it to me?

Thank you!

Namish06 avatar Jun 05 '26 15:06 Namish06

Hi ,I would like to work on this issue under GSSoC 2026. Could you please assign this issue to me? Thank you!

Akshitha2912v avatar Jun 26 '26 17:06 Akshitha2912v

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Nov 21 '26 08:11 github-actions[bot]

This issue was closed because it has been inactive for an extended period. If this issue is still relevant, feel free to reopen it or create a new one.

github-actions[bot] avatar Nov 28 '26 08:11 github-actions[bot]