Skip to content

Feat/copy direct link - #1922

Merged
komalharshita merged 5 commits into
komalharshita:mainfrom
Soumya1Kesharwani:feat/copy-direct-link
Aug 19, 2026
Merged

Feat/copy direct link#1922
komalharshita merged 5 commits into
komalharshita:mainfrom
Soumya1Kesharwani:feat/copy-direct-link

Conversation

@Soumya1Kesharwani

@Soumya1Kesharwani Soumya1Kesharwani commented Aug 18, 2026

Copy link
Copy Markdown

@komalharshita Ma'am..Please review my PR

Summary

Adds a "Copy Direct Link" button on project detail pages that copies the project URL to the clipboard and triggers a green toast notification with instant button text feedback (✓ Link Copied!).

Type of Change

Feature — adds new functionality
Test — adds or updates tests

What Was Changed

  • src/templates/project.html: Added Copy Direct Link button, inline click handler, and #share-toast alert element.
  • src/static/style.css: Added .share-toast and .btn-share-project.copied styles.
  • src/static/script.js: Added global copyToClipboard and copyProjectLink handlers.
  • tests/test_share_project.py: Added unit tests for Copy Direct Link button and toast element.

How to Test

  1. Open http://127.0.0.1:5000/project/1 and click Copy Direct Link.
  2. Verify button text turns green (✓ Link Copied!), link copies to clipboard, and toast pops up.
  3. Run tests: pytest tests/test_share_project.py
    If everything looks good.Please merge it to main codebase.
    Below copy feature has been added.
Screenshot 2026-08-19 at 02 07 05

@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown

Someone 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.

@komalharshita
komalharshita merged commit 0ecbda4 into komalharshita:main Aug 19, 2026
4 of 7 checks passed
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.

2 participants