-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: move WebWrapper files from packages/platform to apps/web/modules #88
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
base: greptile_combined_20260121_qodo_grep_cursor_copilot_1_base_refactor_move_webwrapper_files_from_packages_platform_to_apps_web_modules_pr708
Are you sure you want to change the base?
refactor: move WebWrapper files from packages/platform to apps/web/modules #88
Conversation
Greptile Summary
Important Files Changed
Confidence score: 1/5
Sequence DiagramsequenceDiagram
participant User
participant BookerWebWrapper
participant BookerStoreProvider
participant BookerComponent
participant NextAuth
participant EventAPI
participant BookingAPI
User->>BookerWebWrapper: "Navigate to booking page"
BookerWebWrapper->>BookerStoreProvider: "Initialize store provider"
BookerStoreProvider->>BookerWebWrapper: "Store context ready"
BookerWebWrapper->>NextAuth: "Get user session"
NextAuth-->>BookerWebWrapper: "Session data"
BookerWebWrapper->>EventAPI: "Fetch event data"
EventAPI-->>BookerWebWrapper: "Event details"
BookerWebWrapper->>BookerWebWrapper: "Initialize booker layout"
BookerWebWrapper->>BookerWebWrapper: "Setup booking form"
BookerWebWrapper->>BookerWebWrapper: "Initialize calendars"
BookerWebWrapper->>BookerWebWrapper: "Fetch available slots"
BookerWebWrapper->>BookerComponent: "Render booking interface"
BookerComponent-->>User: "Show booking form"
User->>BookerComponent: "Fill booking form"
BookerComponent->>BookerWebWrapper: "Handle booking submission"
BookerWebWrapper->>BookingAPI: "Create booking"
BookingAPI-->>BookerWebWrapper: "Booking confirmed"
BookerWebWrapper-->>User: "Show booking confirmation"
|
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.
30 files reviewed, 3 comments
| import { useSession } from "next-auth/react"; | ||
| import { useSearchParams, usePathname, useRouter } from "next/navigation"; | ||
| import { useMemo, useCallback, useEffect, useRef } from "react"; | ||
| import { useSearchParams, usePathname } from "next/navigation"; |
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.
logic: useRouter import was removed but router variable is still used on lines 193, 228, 232, 238
| import { useSearchParams, usePathname } from "next/navigation"; | |
| import { useSearchParams, usePathname, useRouter } from "next/navigation"; |
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/web/modules/bookings/components/BookerWebWrapper.tsx
Line: 4:4
Comment:
**logic:** `useRouter` import was removed but `router` variable is still used on lines 193, 228, 232, 238
```suggestion
import { useSearchParams, usePathname, useRouter } from "next/navigation";
```
How can I resolve this? If you propose a fix, please make it concise.| setup: ( | ||
| <EventSetupTab | ||
| eventType={eventType} | ||
| locationOptions={locationOptions} | ||
| team={team} | ||
| teamMembers={teamMembers} | ||
| destinationCalendar={destinationCalendar} | ||
| /> | ||
| <EventSetupTab | ||
| eventType={eventType} | ||
| locationOptions={locationOptions} | ||
| team={team} | ||
| teamMembers={teamMembers} | ||
| destinationCalendar={destinationCalendar} | ||
| /> | ||
| ), | ||
| availability: ( | ||
| <EventAvailabilityTab | ||
| eventType={eventType} | ||
| isTeamEvent={!!team} | ||
| user={user} | ||
| teamMembers={teamMembers} | ||
| /> | ||
| <EventAvailabilityTab | ||
| eventType={eventType} | ||
| isTeamEvent={!!team} | ||
| user={user} | ||
| teamMembers={teamMembers} | ||
| /> |
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.
style: formatting changed from 2-space to 4-space indentation inconsistently
| setup: ( | |
| <EventSetupTab | |
| eventType={eventType} | |
| locationOptions={locationOptions} | |
| team={team} | |
| teamMembers={teamMembers} | |
| destinationCalendar={destinationCalendar} | |
| /> | |
| <EventSetupTab | |
| eventType={eventType} | |
| locationOptions={locationOptions} | |
| team={team} | |
| teamMembers={teamMembers} | |
| destinationCalendar={destinationCalendar} | |
| /> | |
| ), | |
| availability: ( | |
| <EventAvailabilityTab | |
| eventType={eventType} | |
| isTeamEvent={!!team} | |
| user={user} | |
| teamMembers={teamMembers} | |
| /> | |
| <EventAvailabilityTab | |
| eventType={eventType} | |
| isTeamEvent={!!team} | |
| user={user} | |
| teamMembers={teamMembers} | |
| /> | |
| setup: ( | |
| <EventSetupTab | |
| eventType={eventType} | |
| locationOptions={locationOptions} | |
| team={team} | |
| teamMembers={teamMembers} | |
| destinationCalendar={destinationCalendar} | |
| /> | |
| ), | |
| availability: ( | |
| <EventAvailabilityTab | |
| eventType={eventType} | |
| isTeamEvent={!!team} | |
| user={user} | |
| teamMembers={teamMembers} | |
| /> |
Context Used: Context from dashboard - .cursor/rules/review.mdc (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/web/modules/event-types/components/EventTypeWebWrapper.tsx
Line: 235:250
Comment:
**style:** formatting changed from 2-space to 4-space indentation inconsistently
```suggestion
setup: (
<EventSetupTab
eventType={eventType}
locationOptions={locationOptions}
team={team}
teamMembers={teamMembers}
destinationCalendar={destinationCalendar}
/>
),
availability: (
<EventAvailabilityTab
eventType={eventType}
isTeamEvent={!!team}
user={user}
teamMembers={teamMembers}
/>
```
**Context Used:** Context from `dashboard` - .cursor/rules/review.mdc ([source](https://app.greptile.com/review/custom-context?memory=b9795762-a033-4de8-936a-aa84dda179db))
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise.| import { AtomsWrapper } from "../../../../packages/platform/atoms/src/components/atoms-wrapper"; | ||
| import { DestinationCalendarSettings } from "../../../../packages/platform/atoms/destination-calendar/DestinationCalendar"; |
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.
style: Long relative import paths introduced - consider using TypeScript path mapping or workspace aliases for cleaner imports
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/web/components/apps/DestinationCalendarSettingsWebWrapper.tsx
Line: 3:4
Comment:
**style:** Long relative import paths introduced - consider using TypeScript path mapping or workspace aliases for cleaner imports
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise.
Benchmark PR from qodo-benchmark#708