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

Fix program selection for profile page #846

Merged
merged 3 commits into from
Sep 20, 2023
Merged

Fix program selection for profile page #846

merged 3 commits into from
Sep 20, 2023

Conversation

mataai
Copy link
Member

@mataai mataai commented Sep 18, 2023

⁉️ Related Issue

Fixes: #845

📖 Description

I added the new program code in the program credits enum. (Source of the data is my account, I'm in the program)
I added a check to the profile page to set the current program based on the number of credits currently in progress in that program.

🧪 How Has This Been Tested?

As far as my understand of the app goes, the modified part of the view model is self contained and doesn't interact with other parts of the app. The existing unit tests for the widget have been check and all have passed.

☑️ Checklist before requesting a review

  • [✔] I have performed a self-review of my code.
  • [N/A] If it is a core feature, I have added thorough tests.
  • [N/A] If needed, I added analytics.
  • [✔️] Make sure to add either one of the following labels: version: Major,version: Minor or version: Patch.
  • Make sure golden files changes were reviewed and approved.

🖼️ Screenshots (if useful):

Personal information removed for privacy reasons.
Before:
image
After:
Screenshot_1695066744

Copy link
Contributor

@camillebrulotte camillebrulotte left a comment

Choose a reason for hiding this comment

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

LGTM Good job ! :D

@mataai mataai marked this pull request as ready for review September 18, 2023 19:58
@mataai mataai requested a review from a team as a code owner September 18, 2023 19:58
@camillebrulotte
Copy link
Contributor

Enfait, pourrais-tu regarder vite vite si tu vois pourquoi c'est pas centré ici svppp ? :D

image

@mataai
Copy link
Member Author

mataai commented Sep 18, 2023

Enfait, pourrais-tu regarder vite vite si tu vois pourquoi c'est pas centré ici svppp ? :D
image @camillebrulotte

Je pense que l'appli était en breakpoint mid animation quand j'ai pris la capture d’écran. La page est bien centrée sur mon debug en ce moment.

Copy link
Contributor

@XavierPaquet-Rapold XavierPaquet-Rapold left a comment

Choose a reason for hiding this comment

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

LGTM 💯

@mataai mataai changed the base branch from master to bugfix/profile-view September 20, 2023 22:24
@mataai mataai merged commit b2f8d4d into ApplETS:bugfix/profile-view Sep 20, 2023
5 of 6 checks passed
mataai added a commit that referenced this pull request Sep 21, 2023
* Fix program selection for profile page (#846)

* Ajout code programe baccalaureat informatique distribuée

* define program by the number of registered credits

* Sort list entries to have main program first.

* fix pipeline please

* [BOT] Applying version.

---------

Co-authored-by: mataai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Affichage incorrect de mon programme dans l'onglet Profile.
3 participants