Skip to content

Conversation

@nuuxcode
Copy link
Owner

This pull request introduces a new Admin dashboard project built with Material-UI and Refine, including configuration, dependencies, localization, and Cypress tests. The changes are grouped into project setup, testing, and localization.

Project Setup

  • Added a .gitignore file to exclude dependencies, build artifacts, and environment-specific files (Admin/.gitignore).
  • Configured package.json with project metadata, scripts, dependencies, and devDependencies for React, Material-UI, Refine, and TypeScript (Admin/package.json).
  • Added an index.html file with meta tags and a root element for the React app (Admin/index.html).
  • Configured .npmrc to handle peer dependency issues (Admin/.npmrc).

Testing

  • Added a Cypress configuration file with project-specific settings and retries (Admin/cypress.config.ts).
  • Implemented end-to-end Cypress tests for CRUD operations, theme and language changes, and pagination in Admin/cypress/e2e/all.cy.ts. These tests cover login, resource management, UI interactions, and state persistence.
  • Configured TypeScript for Cypress tests with specific compiler options (Admin/cypress/tsconfig.json).

Localization

  • Added German (de) translations for UI elements, error messages, and notifications in Admin/public/locales/de/common.json. This supports multi-language functionality for the app.

Documentation

  • Updated the README.md with project details, links to resources, and instructions to try the example locally or on CodeSandbox (Admin/README.md).

nuuxcode and others added 30 commits March 23, 2024 16:10
Migration from Next.js to NestJS and TRPC to RESTful API
… and naming

- Renamed 'ownerId' to 'ownerUserId' in Forum model for clarity
- Added 'slug' field to Forum model
- Changed 'isHidden' to 'isVisible' in Post and Comment models for better readability
- Refactored Attachment model to separate PostAttachment and CommentAttachment
- Removed unnecessary whitespace and comments
chore(database) & refactor(schema): Delete redundant files and refine Prisma schema
- Change `passwordHash` to `password` in User model
- Set default role to `user` in User model
- Comment out `AuthModule` in app.module.ts
- Create `UserResponseDTO` in auth.dto.ts
- Change `name` to `username` in `RegisterUserDTO`
- Update `AuthService` to use `username` and set default role
- Comment out some routes in post.controller.ts
- Change `name` to `username` in user.controller.ts
Feature: User Authentication, Post Controller Adjustments, and Data Seeding
This commit adds pagination to the following methods:
- getAllForums and getPostsForForum in ForumService
- findAll in PostService

The corresponding methods in ForumController and PostController are updated to:
- accept pagination parameters
- pass them to the service methods

Swagger documentation for these methods is also updated to include the new parameters.
nuuxcode and others added 28 commits April 5, 2024 01:12
applied styling changes to SearchBox component in search.tsx. added rounded
corners to enhance visual appearance.
…erService

implemented getUser, getUserFollowers, getUserFollowing, getUserOwnedForum,
getUserModeration, getUserPosts, getUserComments, getUserPostVotes,
getUserCommentVotes, and getUserSubscriptions functions in UserController and
UserService. these functions fetch user information, user followers, user
followings, forums owned by the user, forums where the user is a moderator,
posts authored by the user, comments made by the user, votes on posts by the
user, votes on comments by the user, and user subscriptions respectively.
…ontroller and ForumService

implemented getSubscribersForForum, subscribeToForum, and unsubscribeFromForum
functions in ForumController and ForumService. these functions respectively fetch
subscribers for a specific forum, allow users to subscribe to a forum, and allow
users to unsubscribe from a forum.
…vice

implemented votePost function in VoteController and VoteService to handle voting
on posts. this function allows users to vote on posts.
changed 'getUser' function to 'getMe' in the CommentInput component to fix a
typo in the useFetcher function name, ensuring consistency.
created a new directory for user profile pages to organize and manage user-
related functionalities separately.
updated package dependencies in package.json and pnpm-lock.yaml
to include the latest versions of '@types/nprogress' and 'nprogress'.
…ality

refactored button color in the UserProfile component to use orange
color for email display. Also, updated the follow/unfollow functionality
to use proper API calls and updated button text accordingly.
updated favicon icon in favicon.ico to use the new icon.
fixed linting errors in the Layout component by removing unnecessary
import and properly formatting the metadata object.
…cher hook

refactored the follow/unfollow user functionality in the fetcher hook to properly
mutate SWR keys after successful follow/unfollow actions.
updated button text from 'Follow' to 'Subscribe' for consistency with the
forum subscription feature.
Update package dependencies and refactor button color and follow/unfollow functionality
…/unfollow button click handler

Updated the follow/unfollow button click handler in the user profile page to check
if currentUsername is null or undefined before executing the follow/unfollow action.
This prevents errors when currentUsername is not defined.
…mentInput.tsx, and fetcher.tsx

Split long lines to improve readability and maintain code standards in the following files:
- client/src/app/[username]/page.tsx
- client/src/app/page.tsx
- client/src/components/comment/commentInput.tsx
- client/src/hooks/fetcher.tsx
@nuuxcode nuuxcode requested a review from Copilot May 10, 2025 17:45
Copy link

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants