-
Notifications
You must be signed in to change notification settings - Fork 13
Add DevEx WG Calendar Integration (Dev ex meetup) #114
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
Open
Mechack08
wants to merge
11
commits into
IntersectMBO:main
Choose a base branch
from
Mechack08:dev-ex-meetup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,289
−1
Conversation
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
…and calendar integration
…dynamic date calculations and improved UI
- Simplified the MeetupReminderButton component by extracting session selection and details into separate components (SessionList and SessionDetails). - Introduced custom hooks (useMeetupSessions and useClickOutside) for better state management and event handling. - Created constants for default session data. - Enhanced utility functions for date formatting and Google Calendar URL generation. - Improved code organization and readability by separating concerns into distinct files.
…tyling and structure
Contributor
|
Pending DA review. |
Contributor
|
Nice, will test this locally. |
Contributor
|
Hi @Mechack08, I have just a couple of suggestions:
Let me know if you’d like any support reorganising the doc. This PR will close #113 |
Contributor
|
@Mechack08, Could you please ensure that the time is displayed in UTC instead of GMT+4? Thank you! |
Contributor
|
This is a cool feature overall, I Love it! |
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.
Description
This PR introduces a comprehensive meetup reminder system for the Developer Experience Working Group website. It adds a floating button that displays bi-weekly meetup session information with intelligent scheduling, dynamic status updates, and calendar integration.
What problem does this PR solve?
What is the purpose of this change?
Related Issue
#113 - This is a new feature initiative for the Developer Experience Working Group.
Type of Change
Changes Made
New Components & Files:
src/components/MeetupReminderButton/- Main component directory with modular architectureindex.tsx- Main orchestrator component (183 lines)types.ts- TypeScript interfaces for MeetupSession and propsconstants.ts- Session data loader from JSON configurationmeetup-sessions.json- Configurable session data (names, dates, links, recurrence)CONFIGURATION.md- Comprehensive documentation for managing sessionsUtilities:
utils/dateUtils.ts- Date calculation and formatting utilitiescalculateNextMeetup()- Calculates next occurrence with configurable interval (weekly, bi-weekly, monthly)getMeetingStatus()- Determines meeting state (BEFORE_DAY, STARTING_SOON, ONGOING, ENDED)getTimeUntilMeeting()- Calculates countdown hours/minutesformatCountdown()- Formats human-readable countdown messagesformatMeetupDate()- Locale-aware date formattingformatGoogleDate()- Google Calendar date format conversionutils/calendarUtils.ts- Google Calendar and clipboard utilitiesgenerateGoogleCalendarUrl()- Creates Google Calendar URL with RRULE recurrencecopyToClipboard()- Async clipboard operationsCustom Hooks:
hooks/useMeetupSessions.ts- Manages session dates and meeting statuses with auto-refreshhooks/useClickOutside.ts- Handles panel closing on outside clicks and ESC keyUI Components:
components/SessionList.tsx- Session selection view with dynamic status messagescomponents/SessionDetails.tsx- Detailed session view with Join button, copy link, and calendar integrationstyles.module.css- Scoped styling (704 lines) with dark/light mode supportIntegration:
src/theme/Root.tsx- Global wrapper to render MeetupReminderButton across all pagesConfiguration:
tsconfig.json- AddedresolveJsonModule: truefor JSON importsKey Features Implemented:
Checklist
main