Skip to content

Attendance Screen Implementation#38

Open
elysseaa wants to merge 8 commits intomainfrom
attendance
Open

Attendance Screen Implementation#38
elysseaa wants to merge 8 commits intomainfrom
attendance

Conversation

@elysseaa
Copy link
Copy Markdown
Contributor

Implemented Attendance screen according to Kotlin app layout. Some notes:

  • Several basic components were added to Components folder, like MenuLink and ActionPrompt
  • NFC scanning was not tested on iOS but was tested on Android
  • Dark mode theming was mostly not implemented (would require changing app background)
  • Test option was added in server choice modal on app login
    Closes Implementation of Attendance #16

@elysseaa elysseaa requested a review from jvogt23 March 24, 2026 21:29
Copy link
Copy Markdown
Collaborator

@jvogt23 jvogt23 left a comment

Choose a reason for hiding this comment

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

Functionally appears to work well; can't be certain until test environment is fixed though, as I cannot check to be sure every attendance event is being tracked properly.

Mainly stylistic changes have been noted, will ask for second opinion. I also might have missed some things.

- Changed Buttons to RoundedButtons, removed commented code
- Modified RoundedButton to take in a background color and a text color
@elysseaa elysseaa requested a review from jvogt23 April 11, 2026 15:58
Copy link
Copy Markdown
Collaborator

@jvogt23 jvogt23 left a comment

Choose a reason for hiding this comment

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

The changes I see look good; Nothing functional is affected by these changes so I will wait for the theme changes we discussed in the meeting to be added before I do another review and (hopefully) approve.

- Introduced component called ThemedText which is has the same usage as Text except adapts to dark/light mode
  - Side note: To get around linting flagging raw text in non-Text components, I had to use <Text> inside <ThemedText>, which may not be the best implementation
- Refactored Attendance components slightly to make usage of SafeAreaView more efficient
@elysseaa elysseaa requested a review from jvogt23 April 11, 2026 19:02
@elysseaa
Copy link
Copy Markdown
Contributor Author

I tried to implement dark mode using a new component called ThemedText which can be used the same as Text except the text adapts to theme colors. (This is because it would be inconvenient to keep passing currentTheme.onBackground to every text item.) The thing is, the linter was flagging any usage of raw text inside ThemedText, so I had to put a Text component inside some ThemedText components that used raw text. That feels a little inconvenient, but I didn't want to really change the linter either.

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.

Implementation of Attendance

2 participants