Skip to content
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

Pfe master fixed #1041

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft

Pfe master fixed #1041

wants to merge 27 commits into from

Conversation

XavierPaquet-Rapold
Copy link
Contributor

⁉️ Related Issue

📖 Description

🧪 How Has This Been Tested?

☑️ Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • If needed, I added analytics.
  • Make sure to add either one of the following labels: version: Major,version: Minor or version: Patch.

🖼️ Screenshots (if useful):

AntoineLemelin and others added 24 commits July 4, 2024 10:36
* implementation of seperate widgets for about_view

* implementation of seperation widget of author_view

* impementation of seperation widget of choose_language_view

* implementation of seperation widget of contributors_view

* implementation of seperation widget of emergency_view

* implementation of seperation widget of faq_view

* implementation of seperation widget of feedback view

* implementation of seperation widget of more_view

* implementation of seperation widget of grade_view

* implementation of seperation widget of grade_details_view +contributors

* implementation of seperation widget of login_view

* [BOT] Applying format.

* fix for test to pass

* change name grade session courses

* change in more_view

* [BOT] Applying format.

* change for warning and imports

* [BOT] Applying format.

* change test more_view

* change moreview model

* change more view model

* implementation of seperation widget of dashboard_view

* fix so app works but need insert the widgets

* [BOT] Applying format.

* Fix more viewmodels tests

* [BOT] Update golden files

---------

Co-authored-by: charlcl180 <[email protected]>
Co-authored-by: Xavier Paquet-Rapold <[email protected]>
Co-authored-by: XavierPaquet-Rapold <[email protected]>
…er2-FE2.3

# Conflicts:
#	.gitignore
#	lib/features/app/error/outage/outage_view.dart
#	lib/features/dashboard/dashboard_view.dart
#	lib/features/ets/events/report-news/report_news_widget.dart
#	lib/features/more/feedback/feedback_view.dart
#	test/features/app/analytics/analytics_service_mock.mocks.dart
#	test/features/app/analytics/remote_config_service_mock.mocks.dart
#	test/features/app/error/internal_info_service_mock.mocks.dart
#	test/features/app/integration/mocks/github_api_mock.mocks.dart
#	test/features/app/integration/mocks/launch_url_service_mock.mocks.dart
#	test/features/app/integration/mocks/networking_service_mock.mocks.dart
#	test/features/app/navigation/navigation_service_mock.mocks.dart
#	test/features/app/presentation/rive_animation_service_mock.mocks.dart
#	test/features/app/repository/mocks/author_repository_mock.mocks.dart
#	test/features/app/repository/mocks/course_repository_mock.mocks.dart
#	test/features/app/repository/mocks/news_repository_mock.mocks.dart
#	test/features/app/repository/mocks/quick_links_repository_mock.mocks.dart
#	test/features/app/repository/mocks/user_repository_mock.mocks.dart
#	test/features/app/storage/mocks/cache_manager_mock.mocks.dart
#	test/features/app/storage/mocks/flutter_secure_storage_mock.mocks.dart
#	test/features/app/storage/mocks/preferences_service_mock.mocks.dart
#	test/features/app/storage/mocks/siren_flutter_service_mock.mocks.dart
#	test/features/app/widgets/mocks/app_widget_service_mock.mocks.dart
#	test/features/app/widgets/mocks/home_widget_mock.mocks.dart
#	test/features/more/feedback/mocks/in_app_review_service_mock.mocks.dart
#	test/features/more/settings/mocks/settings_manager_mock.mocks.dart
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put in shared widget folder

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And use it for everything related to back button

refresh,
_controller,
_animation,
false),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put variable name


Widget securityMap(BuildContext context, SecurityViewModel model) {
const CameraPosition etsLocation = CameraPosition(
target: LatLng(45.49449875, -73.56246144109338), zoom: 17.0);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put into variables

Comment on lines +7 to +8
import 'package:notredame/features/more/about/widget/easter_egg_icon.dart'; // Importez le widget extrait
import 'package:notredame/features/more/about/widget/social_icons_row.dart'; // Importez le widget extrait
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comments

@@ -49,6 +46,10 @@ class _AboutViewState extends State<AboutView> with TickerProviderStateMixin {

@override
Widget build(BuildContext context) {
return newMethod(context);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change method name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or remove it completely

Comment on lines +75 to +126
Widget _buildSummaryCard(BuildContext context) {
return Card(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Expanded(
flex: 50,
child: GradeCircularProgress(
1.0,
completed: completed,
key: const Key("GradeCircularProgress_summary"),
finalGrade: model.course.grade,
studentGrade: Utils.getGradeInPercentage(
model.course.summary?.currentMark,
model.course.summary?.markOutOf,
),
averageGrade: Utils.getGradeInPercentage(
model.course.summary?.passMark,
model.course.summary?.markOutOf,
),
),
),
Expanded(
flex: 40,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
GradesSummary(
currentGrade: model.course.summary?.currentMark,
maxGrade: model.course.summary?.markOutOf,
recipient: AppIntl.of(context)!.grades_current_rating,
color: Colors.green,
),
Padding(
padding: const EdgeInsets.only(top: 15.0),
child: GradesSummary(
currentGrade: model.course.summary?.passMark,
maxGrade: model.course.summary?.markOutOf,
recipient: AppIntl.of(context)!.grades_average,
color: Colors.red,
),
),
],
),
),
],
),
),
);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create widget

Comment on lines +137 to +167
Widget _buildAdditionalSummary(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Expanded(
flex: 3,
child: CourseGradeSummary(
title: AppIntl.of(context)!.grades_median,
number: model.course.summary?.median.toString() ??
AppIntl.of(context)!.grades_not_available,
),
),
Expanded(
flex: 3,
child: CourseGradeSummary(
title: AppIntl.of(context)!.grades_standard_deviation,
number: model.course.summary?.standardDeviation.toString() ??
AppIntl.of(context)!.grades_not_available,
),
),
Expanded(
flex: 3,
child: CourseGradeSummary(
title: AppIntl.of(context)!.grades_percentile_rank,
number: model.course.summary?.percentileRank.toString() ??
AppIntl.of(context)!.grades_not_available,
),
),
],
);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Widget

Comment on lines +169 to +182
Widget _buildEvaluationTiles() {
return Column(
children: <Widget>[
for (final CourseEvaluation evaluation
in model.course.summary?.evaluations ?? [])
GradeEvaluationTile(
evaluation,
completed: completed,
key: Key("GradeEvaluationTile_${evaluation.title}"),
isFirstEvaluation:
evaluation == model.course.summary?.evaluations.first,
),
],
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Widget

Comment on lines +35 to +54
CircularPercentIndicator getLoadingIndicator(
ProfileViewModel model, BuildContext context) {
final double percentage = model.programProgression;

return CircularPercentIndicator(
animation: true,
animationDuration: 1100,
radius: 40,
lineWidth: 10,
percent: percentage / 100,
circularStrokeCap: CircularStrokeCap.round,
center: Text(
percentage != 0
? '$percentage%'
: AppIntl.of(context)!.profile_program_completion_not_available,
style: const TextStyle(fontSize: 20),
),
progressColor: Colors.green,
);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create widget

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to logo_widget

@XavierPaquet-Rapold XavierPaquet-Rapold marked this pull request as ready for review August 26, 2024 19:46
@XavierPaquet-Rapold XavierPaquet-Rapold requested a review from a team as a code owner August 26, 2024 19:46
@XavierPaquet-Rapold XavierPaquet-Rapold marked this pull request as draft September 6, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants