Skip to content

Conversation

@SgtPooki
Copy link
Collaborator

@SgtPooki SgtPooki commented Nov 6, 2025

adds storybook to the project, and sets up some commands for testing with vitest.

This should make it easier to test UI cahnges without having to re-upload pieces and test everything E2E.

Built on top of #94

barbaraperic and others added 6 commits November 6, 2025 11:33
* Deleted app.css as it was no longer needed.
* Updated various components to include focus styles for better accessibility, including DownloadButton, TextLink, and ButtonBase.
* Cleaned up console log in PillBalance and improved styling in PillWrapper for focus states.
* Updated AccordionTrigger to include a cursor pointer for better interactivity.
* Modified TextLink to add a hover effect for improved user experience.
* Enhanced PillWallet with a hover background and cursor pointer for better accessibility.
* Refactored PillWrapper to accept a className prop for more flexible styling.
@vercel
Copy link

vercel bot commented Nov 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
filecoin-pin-website Ready Ready Preview Comment Nov 18, 2025 4:26pm

@FilOzzy FilOzzy added team/filecoin-pin "Filecoin Pin" project is a stakeholder for this work. team/fs-wg FOC working group is a stakeholder for this work, and thus wants to track it on their project board. labels Nov 6, 2025
@FilOzzy FilOzzy added this to FS Nov 6, 2025
@github-project-automation github-project-automation bot moved this to 📌 Triage in FS Nov 6, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds Storybook and Vitest testing infrastructure to the project to enable component testing and visual documentation.

Key Changes:

  • Storybook configuration with accessibility addon and Vitest integration
  • Vitest browser testing with Playwright provider
  • Example story files for ProgressCard and TextWithCopyToClipboard components

Reviewed Changes

Copilot reviewed 7 out of 10 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
vite.config.ts Adds Vitest configuration with Storybook test plugin and browser testing setup
vitest.shims.d.ts Type reference for Vitest browser-playwright
package.json Adds Storybook, Vitest, and related testing dependencies with npm scripts
.storybook/main.ts Storybook configuration defining stories location and addons
.storybook/preview.ts Storybook preview configuration with a11y settings
.storybook/vitest.setup.ts Vitest setup file for Storybook integration
src/components/upload/progress-card.stories.tsx Story definitions for ProgressCard component covering various states
src/components/ui/text-with-copy-to-clipboard.stories.tsx Story definitions for TextWithCopyToClipboard component
.gitignore Adds Storybook build artifacts to gitignore

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
SgtPooki and others added 4 commits November 6, 2025 16:33
This commit introduces a new UploadButton component that allows users to upload files with error handling for file size limits. The component utilizes Radix UI for form control and includes a button with a loading state during uploads. It also provides user feedback for file size errors.
…and UploadButton components

This commit updates the DragNDrop and UploadButton components to use a centralized MAX_FILE_SIZE constant instead of hardcoded values for maximum file size. Additionally, it improves the structure of the UploadButton component by adjusting the layout and error message handling for better user experience.
@BigLep BigLep moved this from 📌 Triage to 🔎 Awaiting review in FS Nov 7, 2025
@barbaraperic
Copy link
Collaborator

YAY love storybook!

@barbaraperic
Copy link
Collaborator

Btw does this need fixing? It seems like it always generates the same UI?
Screenshot 2025-11-10 at 17 00 59

@SgtPooki
Copy link
Collaborator Author

Btw does this need fixing? It seems like it always generates the same UI?

I think that is the autodocs which we could probably just remove. Also, that story needs updating cause IIRC we're not going with the tx prefix.

FYI this isn't being targeted as priorty for me for now, but we should probably get something in. If we can agree on the settings and clean up the diff we can merge with no stories added and slowly add them as we need

SgtPooki and others added 18 commits November 12, 2025 10:07
* fix: make debugDump available on window object

* chore: remove unnecessary debugDump check

* chore: fix lint
* docs: update sidebar to link to new filecoin-pin docs

* Incorporating feedback

* applied lint
* deps: use filecoin-pin@0.12.0

* fix: ipniCheck passes expected provider
* fix: sidebar links and display

* Update src/components/layout/sidebar-steps.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: fix lint and spacing after car link

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: upload action properly waits for needed context

* test: add unit tests

* fix: remove currentStorageContext optional chaining
fix: update page title to 'Filecoin Pin Demo' in index.html
…step (#116)

* fix: waits for synapse/storageContext/providerInfo show in uploading step

* chore: add more logging checkpoints
* fix: optimized dataSet and storageContext details

* fix: users without datasets dont scan all datasets
* Updated sidebar layout padding for better spacing.
* Refactored CardHeader to enhance layout and visibility of status badge.
* Modified Dialog component to allow overflow for better content handling.
* Cleaned up UploadCompleted component by restructuring InfoRow and ButtonLink.
#123)

* Removed unnecessary class for spinner visibility.
* Adjusted text alignment for estimated time display to enhance readability.
* fix: optimized dataSet and storageContext details

* fix: users without datasets dont scan all datasets

* fix: use only active providers

* chore: remove unnecessary null check

* fix: only use approved providers

* Update src/lib/filecoin-pin/storage-context-helper.ts

* Update src/lib/filecoin-pin/storage-context-helper.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/lib/filecoin-pin/storage-context-helper.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/lib/filecoin-pin/storage-context-helper.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/hooks/use-dataset-pieces.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team/filecoin-pin "Filecoin Pin" project is a stakeholder for this work. team/fs-wg FOC working group is a stakeholder for this work, and thus wants to track it on their project board.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants