promplate / pyth-on-line

Online Python IDE with built-in Copilot
https://py3.online/about
4 stars 3 forks source link

A PyPI Explorer #61

Closed CNSeniorious000 closed 2 months ago

CNSeniorious000 commented 2 months ago

Resolves #25

Summary by Sourcery

Add a new PyPI Explorer feature to the application, enabling users to search and explore PyPI packages. This includes new pages for searching and viewing package details, as well as enhancements to the user interface to support these functionalities.

New Features:

Enhancements:

stackblitz[bot] commented 2 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

codesandbox[bot] commented 2 months ago

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

render[bot] commented 2 months ago

Your Render PR Server URL is https://pyth-on-line-pr-61.onrender.com.

Follow its progress at https://dashboard.render.com/web/srv-cr6u1p0gph6c738oou00.

netlify[bot] commented 2 months ago

Deploy Preview for pyth-on-line ready!

Name Link
Latest commit dd762a8402d229cf7b0d3498203818f9f97bb1d1
Latest deploy log https://app.netlify.com/sites/pyth-on-line/deploys/66d56737486ecc0008bda4b1
Deploy Preview https://deploy-preview-61--pyth-on-line.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

Lighthouse
1 paths audited
Performance: 99 (๐ŸŸข up 7 from production)
Accessibility: 94 (no change from production)
Best Practices: 100 (no change from production)
SEO: 82 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 2 months ago
Comment has been resolved by Muspi Merol **Muspi Merol left a comment:** ![screenshot](https://netlify-cocoon.netlify.app/.netlify/functions/fetch?code=307&path=eyJzaXRlX2lkIjoiMmYzZGRjY2QtYzIwMi00Y2JkLWFlMmMtMDY2YThlYmEwMWMyIiwiZGVwbG95X2lkIjoiNjZkMjkwYTUzYmNlNTcwMDA4YzI3YmEwIiwiaWQiOiI5ZTg2ODdmMC1kMGIxLTRlNDEtYmY5My01YmM5NDllMTJhZGYifQ==) Example: `/pypi/python-slugify`
Browser metadata ``` Path: /pypi/python-slugify Browser: Edge 128.0.0.0 on Windows 10 Viewport: 1188 x 1022 @1.75x Language: zh-CN Cookies: Enabled ``` [Open in BrowserStack](https://www.browserstack.com/user/try-live?url=https%3A%2F%2Fdeploy-preview-61--pyth-on-line.netlify.app%2Fpypi%2Fpython-slugify&os=Windows&os_version=10&browser=Edge&browser_version=128.0&resolution=1188x1022&speed=1&start=true&ref=netlify-source)
[Open Deploy Preview](https://deploy-preview-61--pyth-on-line.netlify.app/pypi/python-slugify) ยท [Mark as Unresolved](https://app.netlify.com/cdp/resolve?deployID=66d290a53bce570008c27ba0&commentID=66d29306a10a30a0f7d87ec5&resolution=unresolved)
sourcery-ai[bot] commented 2 months ago

Reviewer's Guide by Sourcery

This pull request implements a PyPI Explorer feature, allowing users to search and browse Python packages from the PyPI repository directly within the application. The implementation includes new Svelte components for search functionality, package display, and navigation progress indication. The changes span across multiple files, introducing new routes, components, and utility functions to support the PyPI Explorer feature.

File-Level Changes

Change Details Files
Implement PyPI Explorer feature
  • Add new route for PyPI Explorer
  • Create search functionality for PyPI packages
  • Implement package display component
  • Add navigation progress indicator
src/routes/+page.svelte
src/routes/pypi/+page.svelte
src/routes/pypi/+layout.svelte
src/routes/pypi/[project]/+page.svelte
src/routes/pypi/search.ts
src/routes/pypi/+server.ts
src/routes/pypi/+page.ts
src/routes/pypi/store.ts
src/routes/pypi/[project]/+page.server.ts
src/routes/pypi/[project]/types.ts
Add Progress component for navigation feedback
  • Create Progress.svelte component
  • Implement spring-based animation for progress bar
src/lib/components/Progress.svelte
Implement utility function for HTML to Markdown conversion
  • Create html2markdown function
  • Use rehype and remark libraries for conversion
  • Implement fallback using TurndownService
src/lib/utils/html.ts
Update CSS styles
  • Add inline image styling for prose content
  • Adjust styling for new components and layouts
src/lib/md.css

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.
CNSeniorious000 commented 2 months ago

@sourcery-ai review