Closed NdekoCode closed 3 days ago
The pull request introduces multiple changes across various files, primarily focusing on enhancing user interface components, adding new environment variables for Mailchimp integration, and updating the spell-checking dictionary. Key modifications include the addition of new words to the .cspell.json
file, the introduction of Mailchimp-related environment variables in .env
and .env.sample
, and structural updates to several UI components for better usability and layout. Additionally, new components for form handling and UI cards are introduced, alongside adjustments to existing configurations and styles.
File Path | Change Summary |
---|---|
.cspell.json |
Added words: "hookform" , "apikey" , "DATACENTER" , "mailchimp" , "timesheet-viewMode" , "Waitlist" ; reinstated "timesheet-viewMode" . |
apps/web/.env |
Added variables: MAILCHIMP_API_KEY= , MAILCHIMP_LIST_ID= . |
apps/web/.env.sample |
Added variables: MAILCHIMP_API_KEY= , MAILCHIMP_LIST_ID= . |
apps/web/app/[locale]/layout.tsx |
Changed import path for global styles from relative to absolute: import '@/styles/globals.css'; . |
apps/web/app/[locale]/page-component.tsx |
Removed sticky class from header; updated margin class from mt-7 to my-3 . |
apps/web/app/api/subscribe/route.ts |
Introduced a new POST handler for subscribing users to a newsletter via Mailchimp. |
apps/web/components/app-sidebar.tsx |
Removed SidebarMenu and related components; added SidebarFooter and restructured data handling. |
apps/web/components/nav-main.tsx |
Added SidebarGroupLabel and updated styling for sidebar menu items. |
apps/web/components/nav-projects.tsx |
Renamed TeamSwitcher to WorkspacesSwitcher ; updated logic to handle workspaces instead of teams. |
apps/web/components/ui/card.tsx |
Introduced new card UI components: Card , CardHeader , CardTitle , CardDescription , CardContent , CardFooter . |
apps/web/components/ui/form.tsx |
Introduced components and hooks for form handling using react-hook-form . |
apps/web/components/ui/label.tsx |
Introduced new Label component utilizing LabelPrimitive . |
apps/web/components/ui/sidebar.tsx |
Updated sidebar dimensions and restructured sidebar context components. |
apps/web/lib/layout/main-layout.tsx |
Moved AppSidebar import for clarity; no functional changes to MainLayout . |
apps/web/next.config.js |
Added transpilePackages property with ['geist'] ; updated Sentry and ESLint configurations. |
apps/web/package.json |
Added dependencies: @hookform/resolvers , geist , zod ; updated react-hook-form . |
apps/web/styles/globals.css |
Modified body styling and added new utility classes. |
apps/web/tailwind.config.js |
Restructured Tailwind CSS configuration without changing values. |
sequenceDiagram
participant User
participant MailchimpAPI
participant App
User->>App: Subscribe to newsletter
App->>User: Request email and captcha
User->>App: Provide email and captcha
App->>MailchimpAPI: Send subscription request
MailchimpAPI-->>App: Response (success/error)
App->>User: Notify subscription status
WEB
, UI/UX
, Ever Teams
, Bug fix
🐰 In the meadow, changes bloom,
Words added, dispelling gloom.
Mailchimp whispers, "Join the fun!"
With new cards, our work is done.
A sidebar fresh, a layout bright,
Hoppy days are now in sight! 🌼
[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.
🔧 eslint (1.23.1)
> If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.apps/web/app/[locale]/layout.tsx
Oops! Something went wrong! :( ESLint: 8.46.0 ESLint couldn't find the config "next/core-web-vitals" to extend from. Please check that the name of the config is correct. The config "next/core-web-vitals" was referenced from the config file in "/apps/web/.eslintrc.json". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
[Web] Refactor/sidebar
Please include a summary of the changes and the related issue.
Type of Change
Checklist
Previous screenshots
https://github.com/user-attachments/assets/b1b6a2ed-2126-419a-ac58-ae62cca5457c
Current screenshots
https://github.com/user-attachments/assets/a4674813-5be9-4ba7-b449-7e284095b3c2
Summary by CodeRabbit
Release Notes
New Features
SidebarOptInForm
component for newsletter sign-ups.Improvements
Bug Fixes
Dependencies