-
Notifications
You must be signed in to change notification settings - Fork 0
Implement preview documents via click file in artifact detail #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0d0820d
ee74e11
522ed5d
4b391f9
0de3cd7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,358 @@ | ||||||||||||||||||||||||||||||||||||
| # Copilot Instructions | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| This is a frontend React-based repository for the Walrus Archive platform. It focuses on artifact submission, discovery, and governance using Sui + Walrus storage. Please follow these guidelines when contributing. | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ## Code Standards | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ### Code Philosophy | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| Follow these principles when writing frontend code: | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| - Prefer **simple solutions** | ||||||||||||||||||||||||||||||||||||
| - Avoid **unnecessary abstractions** | ||||||||||||||||||||||||||||||||||||
| - Favor **readability over clever code** | ||||||||||||||||||||||||||||||||||||
| - Write **maintainable and predictable code** | ||||||||||||||||||||||||||||||||||||
| - Follow **existing patterns in the codebase** | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| <!-- --- | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ## Development Flow | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| - Dev: `npm run dev` | ||||||||||||||||||||||||||||||||||||
| - Build: `npm run build` | ||||||||||||||||||||||||||||||||||||
| - Test: `npm run test` (Jest) | ||||||||||||||||||||||||||||||||||||
| - Lint/format: follow project ESLint + Prettier config --> | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ## Tech Stack | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ### Languages | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| - TypeScript | ||||||||||||||||||||||||||||||||||||
| - JavaScript | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ### Frontend | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| - React (functional components only) | ||||||||||||||||||||||||||||||||||||
| - React Router | ||||||||||||||||||||||||||||||||||||
| - TailwindCSS | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ### Testing | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| - Jest | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| ## Repository Structure (Expected) | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| - `components/` — reusable UI components | ||||||||||||||||||||||||||||||||||||
| - `pages/` — route-level pages | ||||||||||||||||||||||||||||||||||||
| - `hooks/` — custom hooks | ||||||||||||||||||||||||||||||||||||
| - `services/` — API / GraphQL / blockchain logic | ||||||||||||||||||||||||||||||||||||
| - `utils/` — helpers | ||||||||||||||||||||||||||||||||||||
| - `assets/` — static files (SVGs, etc.) | ||||||||||||||||||||||||||||||||||||
| - `docs/` — documentation | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
|
Comment on lines
+49
to
+58
|
||||||||||||||||||||||||||||||||||||
| ## Repository Structure (Expected) | |
| - `components/` — reusable UI components | |
| - `pages/` — route-level pages | |
| - `hooks/` — custom hooks | |
| - `services/` — API / GraphQL / blockchain logic | |
| - `utils/` — helpers | |
| - `assets/` — static files (SVGs, etc.) | |
| - `docs/` — documentation | |
| ## Repository Structure | |
| Frontend code is organized under `frontend/app/`. | |
| - `frontend/app/components/` — reusable UI components | |
| - `frontend/app/layout/` — shared layout structure and wrappers | |
| - `frontend/app/hook/` — custom hooks | |
| - `frontend/app/services/` — API / GraphQL / blockchain logic |
Copilot
AI
Apr 7, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SVG guidance says to use react-inlinesvg, but the codebase currently imports SVGs as React components via vite-plugin-svgr (e.g., import CloseLine from "public/assets/line/close.svg";). This doc should be corrected to reflect the actual convention (or the codebase should be changed to match, but that’s a larger refactor).
Copilot
AI
Apr 7, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Testing section states Jest is used, but frontend/package.json has no test script and there are no obvious Jest dependencies configured. If tests aren’t set up, this section should be updated (or add the missing test setup/scripts).
Uh oh!
There was an error while loading. Please reload this page.