-
Notifications
You must be signed in to change notification settings - Fork 2
Notebook card #2
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
Conversation
|
@Khalidnoori568 is attempting to deploy a commit to the iclasser dev Team on Vercel. A member of the Team first needs to authorize it. |
|
test again |
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.
Pull Request Overview
This PR introduces a new "Notebook Card" component to the postmaker.dev application, following the established pattern for creating social media card editors. The implementation adds a notebook-style checklist card that mimics the appearance of handwritten notes on lined paper with checkboxes.
Key changes:
- Adds new NotebookPreview component with notebook-style design and checklist functionality
- Creates NotebookEditor component with tabbed interface for editing notebook cards
- Updates main page to include the new notebook card tab alongside existing card types
Reviewed Changes
Copilot reviewed 21 out of 22 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/ui/src/notebookcard-preview/notebook-preview.tsx | New preview component implementing notebook card with checklist items and notebook styling |
| packages/ui/src/notebookcard-preview/notebook-preview.style.css | Styles for notebook appearance including lined paper background and spiral binding |
| apps/web/components/notebook-editor.tsx | New editor component providing controls for customizing notebook card content and appearance |
| apps/web/app/page.tsx | Updated to add notebook card tab and routing functionality |
| Multiple UI component files | New reusable UI components (tabs, input, slider, etc.) and utility functions |
| }) => { | ||
| return ( | ||
| <CardContainer | ||
| className={`${className} bg-violet-500`} |
Copilot
AI
Aug 22, 2025
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.
Hard-coded Tailwind class 'bg-violet-500' should be moved to a configurable prop or CSS variable to maintain consistency with the theming system used in other components.
| className={`${className} bg-violet-500`} | |
| className={`${className} ${backgroundClassName}`} |
| max={max} | ||
| name={keyName} | ||
| value={[value]} | ||
| onValueChange={(val) => setStateValue(keyName, val)} |
Copilot
AI
Aug 22, 2025
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 slider component expects a single value but receives an array. The onValueChange should extract the first element: onValueChange={(val) => setStateValue(keyName, val[0])}
| onValueChange={(val) => setStateValue(keyName, val)} | |
| onValueChange={(val) => setStateValue(keyName, val[0])} |
| {/* timestamp */} | ||
| <DrawInput | ||
| keyName="postTimestamp" | ||
| value={new Date(postTimestamp).toISOString().slice(0, 16)} |
Copilot
AI
Aug 22, 2025
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.
[nitpick] The datetime-local input handling could be simplified and made more robust. Consider creating a helper function to handle datetime string formatting and parsing to avoid inline date manipulation.
| value={new Date(postTimestamp).toISOString().slice(0, 16)} | |
| value={formatDatetimeLocal(postTimestamp)} |
|
@Khalidnoori568 please resolve conflict |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|

No description provided.