Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

feat: Redesign, Comment, Product Visibility, OG Image - #14

Merged
raicdev merged 24 commits into
masterfrom
dev
Aug 7, 2025
Merged

feat: Redesign, Comment, Product Visibility, OG Image#14
raicdev merged 24 commits into
masterfrom
dev

Conversation

@raicdev

@raicdev raicdev commented Aug 7, 2025

Copy link
Copy Markdown
Member

Summary

Redesign, Comment, Product Visibility, OG Image

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🎨 Style/UI change (formatting, visual improvements)
  • ♻️ Code refactoring (no functional changes, code improvements)
  • ⚡ Performance improvement
  • 🧪 Test changes
  • 🔧 Build/CI changes

Changes Made

  • Redesign
  • Comment
  • Product Visibility
  • OG Image

Related Issues

Testing

  • Tested locally
  • Added/updated unit tests
  • Added/updated integration tests
  • Tested on different browsers (if applicable)
  • Tested on mobile devices (if applicable)

Screenshots

Database Changes

  • No database changes
  • Schema changes (migrations included)
  • Data migrations required

Security Considerations

  • No security impact
  • Reviewed for potential security issues
  • Added security measures

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

localer-sub and others added 24 commits August 3, 2025 17:43
ログインしてない時にお気に入りボタンを押すと、リンク切れのログインページに誘導されるのを修正
- Added .env.example to .gitignore to ensure example environment variables are tracked.
- Changed ESLint rule for '@typescript-eslint/no-explicit-any' from 'off' to 'warn' and added 'react/no-unescaped-entities' as a warning.
- Removed unused imports and variables in the RegisterPage and AdminLayout components for cleaner code.
- Updated error handling in ProductDetailPage to simplify catch block.
- Enhanced AppealPage to include router in dependency array for useEffect.
- Improved error handling in LinkIcon component by specifying error type.
- Cleaned up imports in various components, including EditNameDialog and NotificationMenu.
- Added CommentsSection to ProductDetail for user engagement.
- Updated email change verification template for better user experience.
- Refactored database schema to include comments and ensure proper exports.
Update product-actions.tsx

- Fixed an issue where clicking the Favorites button while not logged in would redirect to a broken login page.
- Added new database schema for comments, including fields for content, author, and timestamps.
- Introduced foreign key relationships to link comments with users and products.
- Enhanced comment form with character count and cooldown for submissions to prevent spam.
- Improved error handling in comments section to display user-friendly messages on load failures.
- Updated TRPC router to support fetching comments with parent-child relationships.
- Refactored components for better readability and maintainability.
- Cast comments to CommentWithAuthor type to ensure proper type safety when rendering CommentItem components.
- Enhanced code clarity by explicitly defining the expected comment structure.
feat: Add comments, refactor code, better ux
- Introduced a visibility field in the product schema to manage product visibility states: public, unlisted, and private.
- Updated product creation and editing forms to include visibility options.
- Enhanced product detail and edit components to display and modify visibility settings.
- Implemented visibility checks in the TRPC router to filter products based on user authentication and visibility status.
- Added metadata generation for product pages to support SEO and social sharing based on visibility.
- Deleted the bun.lock file to streamline dependency management.
- Updated package.json to reflect the latest version of pnpm.
- Updated pnpm-lock.yaml with new versions for several dependencies, including @hookform/resolvers, @supabase/supabase-js, and react-related packages to ensure compatibility and improvements.
Merge pull request #10 from ri0n-dev/redesign
… generation

- Replaced generic error throwing with TRPCError for better error handling in the OG image route.
- Added Cache-Control headers to the ImageResponse for improved caching strategy.
- Updated product visibility filtering in the app router to ensure only public products are returned.
- Standardized error handling across multiple product retrieval functions by using TRPCError.
chore(deps): Update dependencies
@vercel

vercel Bot commented Aug 7, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
prodfind ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 0:03am

@coderabbitai

coderabbitai Bot commented Aug 7, 2025

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@raicdev
raicdev merged commit 104f1cf into master Aug 7, 2025
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants