-
Notifications
You must be signed in to change notification settings - Fork 0
Updating Main with all of the changes #8
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
Conversation
Co-authored-by: Copilot <[email protected]>
Create base project styling, start create event page functionality
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.
Pull Request Overview
This PR integrates various UI improvements and updates across the frontend, including new components for date and time selection, updated theming with new fonts, and cleanup of legacy event pages.
- Introduces new components (Checkbox, Calendar, DateRangeDrawer) for improved interactivity and styling.
- Updates global CSS with new color themes and font integrations.
- Replaces outdated routes/pages with new event creation functionality.
Reviewed Changes
Copilot reviewed 19 out of 43 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| app/ui/components/checkbox.tsx | New checkbox component with hardcoded id that may need parameterization. |
| app/ui/components/archive/month-calendar.tsx | New date picker implementation with commented-out legacy code. |
| app/ui/components/archive/date-range-drawer copy.tsx | Duplicate file likely added unintentionally as indicated by “copy” in the filename. |
| app/page.tsx | Updated home page with navigation improvements. |
| app/new-event/page.tsx | New event creation page with a typo in variable naming. |
| app/layout.tsx | Updated layout with new fonts and theme providers. |
| app/globals.css | Theming improvements and new keyframes definitions with a syntax error. |
| Other files | Various utility and type definitions supporting the new functionality. |
Comments suppressed due to low confidence (2)
app/ui/components/archive/date-range-drawer copy.tsx:1
- [nitpick] The filename includes 'copy', which could indicate an accidental duplicate; consider renaming or removing this file if it is not intended for production use.
import { Drawer } from "vaul";
app/new-event/page.tsx:31
- There's a typo in the variable name 'duationOptions'; it should likely be renamed to 'durationOptions' to improve clarity.
const duationOptions = [
| <div className="flex items-center gap-2"> | ||
| <input | ||
| type="checkbox" | ||
| id="confirm" |
Copilot
AI
Jun 21, 2025
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.
Consider parameterizing or dynamically generating the 'id' instead of hardcoding 'confirm' to prevent potential conflicts when multiple checkboxes are rendered.
| // const [fromValue, setFromValue] = useState<string>(""); | ||
| // const [toValue, setToValue] = useState<string>(""); | ||
|
|
||
| // const handleFromChange: ChangeEventHandler<HTMLInputElement> = (e) => { | ||
| // setFromValue(e.target.value); | ||
| // const date = parse(e.target.value, "EEE, MMM d", new Date()); | ||
| // if (!isValid(date)) { | ||
| // return setSelectedRange({ from: undefined, to: undefined }); | ||
| // } | ||
| // if (selectedRange?.to && isAfter(date, selectedRange.to)) { | ||
| // setSelectedRange({ from: selectedRange.to, to: date }); | ||
| // } else { | ||
| // setSelectedRange({ from: date, to: selectedRange?.to }); | ||
| // } | ||
| // }; | ||
|
|
||
| // const handleToChange: ChangeEventHandler<HTMLInputElement> = (e) => { |
Copilot
AI
Jun 21, 2025
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.
[nitpick] Remove or properly document the commented-out code block if it is no longer needed to improve code clarity.
| // const [fromValue, setFromValue] = useState<string>(""); | |
| // const [toValue, setToValue] = useState<string>(""); | |
| // const handleFromChange: ChangeEventHandler<HTMLInputElement> = (e) => { | |
| // setFromValue(e.target.value); | |
| // const date = parse(e.target.value, "EEE, MMM d", new Date()); | |
| // if (!isValid(date)) { | |
| // return setSelectedRange({ from: undefined, to: undefined }); | |
| // } | |
| // if (selectedRange?.to && isAfter(date, selectedRange.to)) { | |
| // setSelectedRange({ from: selectedRange.to, to: date }); | |
| // } else { | |
| // setSelectedRange({ from: date, to: selectedRange?.to }); | |
| // } | |
| // }; | |
| // const handleToChange: ChangeEventHandler<HTMLInputElement> = (e) => { |
| transform: translateX(0); | ||
| } | ||
| } | ||
| @keyframes slideDownAndFade: { |
Copilot
AI
Jun 21, 2025
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.
The keyframes declaration for 'slideDownAndFade' uses a colon instead of an opening brace; update it to '@Keyframes slideDownAndFade {' to ensure valid CSS syntax.
| @keyframes slideDownAndFade: { | |
| @keyframes slideDownAndFade { |
mirmirmirr
left a comment
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.
👍
Making this PR so that way with Mir's new PR, all of the new font changes and whatnot can be added to main so all of the other branches can be updated!