#921 Add login/logout to settings #930

Merged
a22erigr merged 4 commits from #921-login-logout-in-settings into team_2_week_5 2026-05-13 08:00:28 +00:00
Collaborator

Regarding issue #921: Add login/logout to settings.

Problems: 1. Add login/logout to settings without functionality.

Solution: 1. Added a login view based on example, switches when the login/logout button is pressed. Unsure what to display when logged out, so a simple "Offline" is written to make user know they are not logged in.

Regarding issue [#921](https://git.webug.se/Andras/BoundlessFlowCampus2K/issues/921): Add login/logout to settings. Problems: 1. Add login/logout to settings without functionality. Solution: 1. Added a login view based on example, switches when the login/logout button is pressed. Unsure what to display when logged out, so a simple "Offline" is written to make user know they are not logged in.
Added a layout for login/logout in settings, and language support
Fixed convention
Collaborator

Review on #921

Whats done

Tested on Windows using Chrome

  • App starts!
    • Login and logout functionality works
    • Localization works!

Inspected following files

  • frontend/src/features/login/LoginLogout.js
    • Indentation/code styling
      • Indentation looks good!
    • CSS standard
      • Line 15 contains inline css
      • Otherwise no inline css and follows kebab-case
    • Naming convention
      • Follows naming convention
    • Comments
      • Not needed
    • General code quality
      • Good quality!
  • frontend/src/features/login/LoginLogout.module.css
    • Indentation/code styling
      • Indentation looks good!
    • CSS standard
      • Follows set standard
    • Naming convention
      • Follows naming convention
    • Comments
      • Good comments, clearly describes what each class does!
    • General code quality
      • Good quality!
  • Localization files
    • Should probably be put in alphabetical order in relation to other settings.account, but this is a separate issue
  • frontend/src/pages/Settings.js
    • A little annoying that elements get pushed down/up when clicking login (since "offline" takes up less space than picture)
    • Looks good and works otherwise!

What needs to be done

  • Move inline css to css file on line 15 in frontend/src/features/login/LoginLogout.js

Conclusion

  • Small things that require separate issues
# Review on #921 ## Whats done ### Tested on Windows using Chrome + App starts! + Login and logout functionality works + Localization works! ### Inspected following files + frontend/src/features/login/LoginLogout.js + Indentation/code styling + Indentation looks good! + CSS standard + Line 15 contains inline css + Otherwise no inline css and follows kebab-case + Naming convention + Follows naming convention + Comments + Not needed + General code quality + Good quality! + frontend/src/features/login/LoginLogout.module.css + Indentation/code styling + Indentation looks good! + CSS standard + Follows set standard + Naming convention + Follows naming convention + Comments + Good comments, clearly describes what each class does! + General code quality + Good quality! + Localization files + Should probably be put in alphabetical order in relation to other settings.account, but this is a separate issue + frontend/src/pages/Settings.js + A little annoying that elements get pushed down/up when clicking login (since "offline" takes up less space than picture) + Looks good and works otherwise! ## What needs to be done + Move inline css to css file on line 15 in frontend/src/features/login/LoginLogout.js ## Conclusion + Small things that require separate issues
Sorted localies alphabetical and fixed inline css to separate file
Fixed height issue
a24vinla approved these changes 2026-05-13 07:58:47 +00:00
a24vinla left a comment
Collaborator

Issues have been fixed!

Issues have been fixed!
a22erigr merged commit 08a0afa279 into team_2_week_5 2026-05-13 08:00:28 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!930
No description provided.