Frontend follow#16
Merged
Merged
Conversation
Modify post-create and post-item components (client) to adjust UI/behavior; refactor use-fetcher hook for improved API/error handling; update post-store state/actions to match the component changes. Corresponding server note.controller updated to align with the client API. Build artifacts and dev cache files regenerated.
Introduce client/components/comment/comment-create.tsx to provide comment creation UI and flow. Update related client components (comment-dialog, comment-item, post-item), shared types, and post store to integrate the new component. On the server, adjust comment service and DTOs and update the note service implementation. Development build artifacts under .next were regenerated.
Modify client comment-create and comment-item components and post-store to improve comment creation, rendering, and state management. Update server-side comment service and DTOs and adjust note service implementation; corresponding compiled dist files and .next turbopack/cache entries were updated. These changes align frontend behavior with backend APIs and fix comment handling/synchronization.
Wire up comment deletion end-to-end: add a Delete menu item in CommentItem that calls postStore.deleteComment, implement deleteComment in the post store to call DELETE /note/comment/:id, show toasts on error/success and remove the comment from local state. Update server controller route to accept comment id (Delete("comment/:id")). Regenerated compiled artifacts and build metadata.
Add a follow service and integrate follower/following relationships into the user domain. Server-side changes include server/src/follow/follow.service.ts and updates to user.entity.ts and user.service.ts to manage follow relations; compiled dist artifacts were updated accordingly. Client-side updates (client/app/(root)/user/[id]/page.tsx, client/lib/types.ts, client/stores/user-store.ts) add UI and state handling for follow/unfollow actions. Also includes Next.js dev cache/log updates and build outputs.
Add new UI components: client/components/ui/tabs.tsx and client/components/user/follow-dialog.tsx. Update the user page at client/app/(root)/user/[id]/page.tsx and related client dev assets (static CSS, source maps, trace). Clean up turbopack dev cache entries (multiple SST/META deletions) and update CURRENT/LOG. Also update server build info and modify server/src/note/note.controller.ts.
Update server follow and user services (src) and rebuild dist artifacts to reflect API/service changes. Adjust client user page, follow dialog, shared types, and user store to match the updated service behavior (follow/unfollow flow and data shapes). Remove/clean dev turbopack cache SST/meta files and update dev trace and log entries.
Update dev artifacts and generated assets: add Next DevTools config, append Turbopack log entries, and update prerender/middleware preview keys. Clean up generated root CSS chunk by removing a few unused Tailwind utilities and blue color variables. These are largely dev/build-generated changes and updated build metadata.
Refactor client/components/user/follow-dialog.tsx for clearer UI/logic and update client/hooks/use-fetcher.ts to improve request handling and error propagation. Also update types/validator.ts and regenerate Next dev artifacts (app-paths-manifest, font manifests, trace and turbopack cache) as part of the build output.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request makes several updates to the Next.js build artifacts, primarily related to configuration and routing. The most notable changes are the addition of a new not-found page route, updates to the Next.js dev tools configuration, and regeneration of preview mode credentials.
Routing changes:
/_not-found/page), mapping it toapp/_not-found/page.jsin the app paths manifest.Configuration updates:
bottom-leftinnext-devtools-config.json.Preview mode credentials:
prerender-manifest.json, updating thepreviewModeId,previewModeSigningKey, andpreviewModeEncryptionKey.