Skip to content

Add Web Share API button for opening with native apps#615

Closed
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1748567604-add-web-share-api
Closed

Add Web Share API button for opening with native apps#615
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1748567604-add-web-share-api

Conversation

@devin-ai-integration
Copy link
Contributor

Add Web Share API button for opening with native apps

This PR adds a new "Open with your app" button to the result viewer component, allowing users to share the generated repository content with native applications using the Web Share API.

Changes

  • Add new shareResult function to handle Web Share API integration
  • Add canShareFiles utility to detect browser support
  • Add "Open with your app" button with the same styling as existing buttons
  • Add analytics tracking for share events
  • Implement feature detection to only show the button in supported browsers

Testing

  • Tested all functionality locally
  • Verified that the button only appears in browsers that support Web Share API
  • Confirmed that sharing works correctly with native applications
  • All tests and lint checks pass

Screenshots

The new "Open with your app" button appears alongside the existing Copy and Download buttons:

Link to Devin run

https://app.devin.ai/sessions/dffddff07173432c9552915b676bfc25

Requested by: yamadashy (koukun0120@gmail.com)

- Add 'Open with your app' button alongside copy/download buttons
- Implement Web Share API with file sharing support
- Add browser feature detection to show button only when supported
- Include analytics tracking for share events
- Support sharing repomix output files with native applications

Co-Authored-By: yamadashy <koukun0120@gmail.com>
@devin-ai-integration devin-ai-integration bot requested a review from yamadashy as a code owner May 30, 2025 01:20
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@codecov
Copy link

codecov bot commented May 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.24%. Comparing base (e7b7ac4) to head (94d0cdc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #615   +/-   ##
=======================================
  Coverage   90.24%   90.24%           
=======================================
  Files          96       96           
  Lines        4920     4920           
  Branches     1020     1020           
=======================================
  Hits         4440     4440           
  Misses        480      480           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yamadashy
Copy link
Owner

yamadashy commented May 30, 2025

@yamadashy yamadashy closed this May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant