Skip to content

Enhancement: Enable user to download the source code of DevPath as a sample in starter code ready#479

Open
Julliet-Mohanta wants to merge 2 commits into
komalharshita:mainfrom
Julliet-Mohanta:main
Open

Enhancement: Enable user to download the source code of DevPath as a sample in starter code ready#479
Julliet-Mohanta wants to merge 2 commits into
komalharshita:mainfrom
Julliet-Mohanta:main

Conversation

@Julliet-Mohanta
Copy link
Copy Markdown

Summary [required]

Problem:Right now when we click on starter code ready icon on home page, nothing happens.
The changes that I made in the code: As an example to show user what the app actually does, we can link the icon with source code of DevPath, so that when a new user clicks the starter code ready icon, a base source code will already be there.
Basically, that tab is not just for display but it is actually registering the click.
So, I analysed all the files to find the required div in index.html of templated folder. I added an anchor tag of zip file of source code of DevPath along with download attribute and cursor attribute so that when user moves the cursor near svg icon, and click it, automatically, zipped folder will be downloaded.

Related Issue [required]

#340

Closes #340

Type of Change [required]

  • Bug fix — resolves a broken behaviour
  • [X ] Feature — adds new functionality
  • Data — adds new projects to data/projects.json
  • Documentation — updates docs, README, or code comments only
  • Style — CSS or visual changes only, no logic change
  • Refactor — restructures code without changing behaviour
  • Test — adds or updates tests

What Was Changed [required]

File:/templates/index.html-dded an anchor tag of zip file of source code of DevPath along with download attribute and cursor attribute in div

File Change made
utils/recommender.py Added clear_cache() function
tests/test_basic.py Added test for cache invalidation

How to Test This PR [required]

Screenshots (if UI change)

Screenshot 2026-05-22 235819 Screenshot 2026-05-23 000750 Screenshot 2026-05-23 000814 Screenshot 2026-05-23 001845

Self-Review Checklist [required]

  • [X ] I have read CONTRIBUTING.md and followed all guidelines
  • [X ] My branch name follows the convention: feat/, fix/, docs/, data/, style/, test/
  • [X ] I have run python tests/test_basic.py and all 27 tests pass
  • [X ] I have run flake8 . locally and there are no errors
  • [X ] I have not introduced any print() or console.log() debug statements
  • Every new function I wrote has a docstring
  • I have not modified files outside the scope of the linked issue
  • If I changed the UI, I tested it at 375px (mobile) and 1280px (desktop)
  • If I added a project to the dataset, it has all required JSON fields

Notes for Reviewer

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

@Julliet-Mohanta is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Thank you for submitting your first pull request to DevPath.

Before review:

  • Complete the PR template fully
  • Ensure all tests pass
  • Link your PR to an issue
  • Keep changes scoped to the issue

A maintainer will review your contribution soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Enable user to download the source code of DevPath as a sample in starter code ready

1 participant