-
Notifications
You must be signed in to change notification settings - Fork 0
π :: (#176) Ready For Deployment #178
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
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 prepares the app for deployment by adjusting UI layouts, adding scrollable wrappers, implementing logout/withdraw flows, and updating navigation targets.
- Wrapped several screens in scroll views and adjusted padding/spacing.
- Introduced
LogoutProfileandWithdrawProfileevents with UI buttons and Bloc handling. - Updated navigation logic in login, home, and community detail screens.
- Removed responsive
.spsizing and inserted fixed pixel values (potential regression). - Added debug
print(e)statements inStageBloc.
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| pubspec.yaml | Removed trailing whitespace |
| lib/presentation/team_create/screen/team_place_screen.dart | Made content scrollable and tweaked spacing/padding |
| lib/presentation/team_create/screen/team_create_screen.dart | Added scroll container and adjusted bottom padding |
| lib/presentation/stage_create/widgets/stage_student_manage_popup.dart | Wrapped popup content in SingleChildScrollView |
| lib/presentation/stage/bloc/stage_bloc.dart | Added debug print(e) calls |
| lib/presentation/profile/screen/profile_screen.dart | Added logout/withdraw buttons |
| lib/presentation/profile/bloc/profile/profile_event.dart | Defined LogoutProfile and WithdrawProfile events |
| lib/presentation/profile/bloc/profile/profile_bloc.dart | Handled logout/withdraw events |
| lib/presentation/logIn/screen/login_screen.dart | Changed post-login route to stage |
| lib/presentation/logIn/bloc/login_bloc.dart | Modified case logic for Authority.USER |
| lib/presentation/home/widgets/appbar/home_appbar.dart | Hardcoded now date |
| lib/presentation/home/screen/home_screen.dart | Updated context.pushNamed parameters |
| lib/presentation/community/screen/community_detail_screen.dart | Refactored image loading and formatting |
| lib/presentation/match_detail/widget/match_state_widget.dart | Replaced responsive .sp units with fixed pixels |
| lib/design_system/component/tag/gogo_borderless_tag_component.dart | Centered tag content |
Comments suppressed due to low confidence (3)
lib/presentation/logIn/bloc/login_bloc.dart:56
- Dart
caselabels cannot use a boolean expression. HandleAuthority.USERandAuthority.STAFFin separatecasestatements or use aswitchfall-through pattern.
case Authority.USER || Authority.STAFF:
lib/presentation/home/widgets/appbar/home_appbar.dart:26
- The date is hardcoded to April 20, 2025. Replace with
DateTime.now()to reflect the actual current date.
final now = DateTime(2025,04,20);
lib/presentation/match_detail/widget/match_state_widget.dart:49
- Removing
.spresponsive units in favor of fixed pixel values may break designs on different screen sizes. Consider restoring responsive sizing.
width: 16,
| stream_transform: ^2.1.1 # streamμ concurrencyλ₯Ό λμμ£Όλ λΌμ΄λΈλ¬λ¦¬ | ||
|
|
||
| image_picker: ^1.1.2 # μ΄λ―Έμ§ μ ν λΌμ΄λΈλ¬λ¦¬ | ||
|
|
Copilot
AI
May 29, 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.
Remove the extra blank line containing only whitespace to avoid trailing spaces in pubspec.yaml.
| SearchStageResponse stage = await _stageRepository.getAllStages(); | ||
| emit(StageLoaded(stage: stage)); | ||
| } catch (e) { | ||
| print(e); |
Copilot
AI
May 29, 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.
Remove this debug print(e) statement or replace it with proper logging to avoid printing exceptions in production.
| print(e); | |
| log(e.toString()); |
| try { | ||
| await _stageRepository.joinStage(event.stageId, event.body); | ||
| } catch (e) { | ||
| print(e); |
Copilot
AI
May 29, 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.
Remove this debug print(e) statement or replace it with proper logging to avoid printing exceptions in production.
| print(e); | |
| log(e.toString(), name: 'StageBloc'); |
| Future<void> _withdrawProfile( | ||
| WithdrawProfile event, Emitter<ProfileState> emit) async { | ||
| try { | ||
| await authRepository.logOut(); |
Copilot
AI
May 29, 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.
In _withdrawProfile, calling logOut() likely should be a withdrawal or account deletion API, not a logout. Update to call the correct repository method.
| await authRepository.logOut(); | |
| await authRepository.withdrawAccount(); |
π‘ κ°μ
π μμ λ΄μ©
πββοΈ μ§λ¬Έμ¬ν
π΄ μ¬μ©λ°©λ²