feat: implement MonthCalendar component and change home screen banner to image#305
Merged
feat: implement MonthCalendar component and change home screen banner to image#305
Conversation
- Introduced a new MonthCalendar component to manage monthly schedules. - Replaced the previous inline calendar implementation in HomeScreenTmp with the new MonthCalendar for better modularity and maintainability. - Added widgetbook use cases for MonthCalendar and TodaysScheduleTile to facilitate UI testing and documentation.
|
Visit the preview URL for this PR (updated for commit 104d1dc): https://ontime-c63f1--pr305-297-feature-home-cfjjufcw.web.app (expires Mon, 08 Sep 2025 10:06:24 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 7d60a2eae4c4a5839220ed6a57552a3b61cce5a3 |
|
Visit the preview URL for this PR (updated for commit 104d1dc): https://on-time-front-widgetbook--pr305-297-feature-home-c7fld8e0.web.app (expires Mon, 08 Sep 2025 10:06:50 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: e53128a376fed0209d449279de9c0d94c83cdd8b |
… in WidgetbookApp - Added dependency injection setup by calling `configureDependencies()` in the main function. - Enhanced the background builder in WidgetbookApp to handle MediaQuery, ensuring proper padding adjustments for child widgets.
- Introduced a new home banner image asset to enhance the visual appeal of the application.
- Added an initial timer to synchronize with minute boundaries, improving the accuracy of scheduled events. - Implemented checks to ensure events are only added if the bloc is active, preventing potential errors. - Updated the close method to cancel the initial timer when the bloc is closed, ensuring proper resource management.
…tent - Changed HomeScreenTmp from StatefulWidget to StatelessWidget for improved performance and simplicity. - Extracted home screen content into a new HomeScreenContent widget for better modularity and testability. - Introduced a separate _TodaysScheduleOverlay widget to enhance code organization and readability. - Updated the layout to utilize the new home banner image asset.
- Introduced a new file `home_screen_tmp.dart` containing mock data helper functions for `PlaceEntity` and `ScheduleEntity`. - Created multiple use cases for `HomeScreenContent` to demonstrate various states: with schedules, empty state, loading state, and today-only schedule. - Enhanced testing and documentation capabilities for the home screen component in Widgetbook.
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
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.
Describe your changes
Introduced a new MonthCalendar component to manage monthly schedules.
Replaced the previous inline calendar implementation in HomeScreenTmp with the new MonthCalendar for better modularity and maintainability.
Added widgetbook use cases for MonthCalendar and TodaysScheduleTile to facilitate UI testing and documentation.
Replace HomeScreen banner with png image
Added widgetbook for HomeScreen
Issue ticket number and link
Closes #297 #295