Skip to content

[MBL-19975][Teacher] Section filter doesn't function within Attendance#3683

Closed
kristofnemere wants to merge 1 commit into
masterfrom
MBL-19975-attendance-section-filter
Closed

[MBL-19975][Teacher] Section filter doesn't function within Attendance#3683
kristofnemere wants to merge 1 commit into
masterfrom
MBL-19975-attendance-section-filter

Conversation

@kristofnemere
Copy link
Copy Markdown
Contributor

@kristofnemere kristofnemere commented May 11, 2026

Test plan:

  1. Log in to the Teacher app as a teacher of a course that has at least two sections and Roll Call (Attendance) enabled.
  2. Open the course and navigate to Attendance.
  3. Tap the section name shown below the toolbar — verify that nothing happens (no picker appears).
  4. Tap the filter icon in the top-right toolbar — verify the section picker opens.
  5. Select a different section from the toolbar filter — verify the displayed attendance list updates to the chosen section and the section name TextView reflects the new selection.

refs: MBL-19975
affects: Teacher
release note: Fixed an issue where tapping the section name in the Teacher Attendance screen opened a non-functional section picker.

Checklist

  • Follow-up e2e test ticket created or not needed
  • Tested in dark mode
  • Tested in light mode
  • Test in landscape mode and/or tablet
  • A11y checked
  • Approve from product

The Attendance screen overlays a hidden Roll Call WebView with a
LinearLayout that wasn't consuming touches. Taps in the section-name
area fell through to the WebView's <select>, opening a section picker
that didn't update the native UI. Make the LinearLayout clickable so
touches are absorbed and the top-right toolbar filter remains the only
section-change entry point.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kristofnemere kristofnemere changed the title [MBL-19975][Teacher] Fix non-functional section picker in Attendance [MBL-19975][Teacher] Section filter doesn't function within Attendance May 11, 2026
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Summary

This PR adds android:clickable="true" to the LinearLayout overlay in fragment_attendance_list.xml. The layout structure is a FrameLayout containing a full-screen WebView with a LinearLayout overlay on top. Without clickable="true", touch events on empty areas of the LinearLayout pass through to the WebView underneath — this change blocks that bleed-through.

Review observations

  • Correctness: The fix is targeted and addresses the root cause (transparent overlay regions not consuming touch events).
  • Convention: The clickable="true" pattern is already used in other teacher layouts (fragment_assignment_list.xml, fragment_people_list_layout.xml, etc.), so this is consistent with codebase conventions.
  • Scope: Minimal, single-line change — appropriate for the apparent bug fix.

Items to verify

  • Confirm the underlying WebView is intentional and that suppressing touch events on it (rather than hiding it / setting visibility="gone" when the overlay is shown) is the desired behavior. If the WebView is only used as a rendering surface for content that should never receive direct touch, this fix is correct; otherwise, consider whether the WebView's importantForAccessibility="no" and the new touch-blocking together accurately model the intended interaction.
  • Manually verify that taps on empty LinearLayout regions (e.g., between the toolbar and the recycler) no longer trigger any WebView interaction or scrolling.
  • No automated tests are included — confirm whether this regression is already covered by an existing Espresso test, or whether one should be added to prevent recurrence.

No blocking concerns; submitting as non-blocking feedback.

@github-actions
Copy link
Copy Markdown
Contributor

🧪 Unit Test Results

✅ 📱 Teacher App

  • Tests: 364 total, 0 failed, 0 skipped
  • Duration: 28.466s
  • Success Rate: 100%

✅ 📦 Submodules

  • Tests: 3477 total, 0 failed, 0 skipped
  • Duration: 56.035s
  • Success Rate: 100%

📊 Summary

  • Total Tests: 3841
  • Failed: 0
  • Skipped: 0
  • Status: ✅ All tests passed!

Last updated: Mon, 11 May 2026 11:46:22 GMT

@github-actions
Copy link
Copy Markdown
Contributor

📊 Code Coverage Report

ℹ️ Student

  • PR Coverage: 42.48%
  • Master Coverage: N/A

ℹ️ Teacher

  • PR Coverage: 25.23%
  • Master Coverage: N/A

ℹ️ Pandautils

  • PR Coverage: 24.15%
  • Master Coverage: N/A

@github-actions
Copy link
Copy Markdown
Contributor

Teacher Install Page

Copy link
Copy Markdown
Contributor

@kdeakinstructure kdeakinstructure left a comment

Choose a reason for hiding this comment

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

QA 👍

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.

3 participants