Skip to content

Conversation

@hermannakos
Copy link
Collaborator

Fixed issue where the "Switch to Light Mode" button in calendar event details would disappear after screen rotation and the theme state would not persist.

refs: MBL-19385
affects: Parent, Student, Teacher
release note: Fixed light mode button disappearing after screen rotation in calendar event details

test plan:

  1. Enable dark mode on device
  2. Navigate to calendar event with HTML description
  3. Verify "Switch to Light Mode" button appears
  4. Rotate device - button should remain visible
  5. Toggle to light mode, rotate device - light mode should persist

🤖 Generated with Claude Code

Fixed issue where the "Switch to Light Mode" button in calendar event
details would disappear after screen rotation and the theme state would
not persist.

refs: MBL-19385
affects: Parent, Student, Teacher
release note: Fixed light mode button disappearing after screen rotation in calendar event details

test plan:
1. Enable dark mode on device
2. Navigate to calendar event with HTML description
3. Verify "Switch to Light Mode" button appears
4. Rotate device - button should remain visible
5. Toggle to light mode, rotate device - light mode should persist

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@hermannakos hermannakos changed the title [MBL-19385] Fix light mode button disappearing after rotation [MBL-19385][All] Fix light mode button disappearing after rotation Oct 6, 2025
@inst-danger
Copy link
Contributor

Parent Install Page

@inst-danger
Copy link
Contributor

Teacher Install Page

@inst-danger
Copy link
Contributor

Student Install Page

Copy link
Contributor

@adamNagy56 adamNagy56 left a comment

Choose a reason for hiding this comment

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

  • In the Parent and Teacher apps, the Light Mode button still disappears as before. It works correctly in the Student app.

See attached video.

Screen_Recording_20251006_223312_Canvas.Parent.mp4

Copy link
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.

  • I'd say this is just 'partially' fix the problem, since the app theme state will persist, but the button itself is still disappearing after rotation change (in Teacher and Parent apps).
calendar-switch-to-light-mode-button-disappear.mp4

@github-actions
Copy link

github-actions bot commented Oct 7, 2025

📊 Code Coverage Report

✅ Student

  • PR Coverage: 43.38%
  • Master Coverage: 43.38%
  • Delta: +0.00%

✅ Teacher

  • PR Coverage: 24.42%
  • Master Coverage: 24.42%
  • Delta: +0.00%

⚠️ Pandautils

  • PR Coverage: 22.17%
  • Master Coverage: 22.19%
  • Delta: -0.01%

📈 Overall Average

  • PR Coverage: 29.99%
  • Master Coverage: 29.99%
  • Delta: -0.00%

@inst-danger
Copy link
Contributor

Parent Install Page

@inst-danger
Copy link
Contributor

Teacher Install Page

@inst-danger
Copy link
Contributor

Student Install Page

Copy link
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 👍

There's no "Switch to Dark/Light mode" button at all when we have a To Do item type with description. Should we fix it as well? (That could be in a separate ticket if you think it's a valid issue.)

Fixed the issue where savedHtml was not being updated during configuration changes in ComposeCanvasWebViewWrapper. Changed savedHtml from a simple saved value to a MutableState that can be updated in the update block, ensuring the HTML content stays current during rotation and the light mode button remains visible.

refs: MBL-19385
@inst-danger
Copy link
Contributor

Parent Install Page

@inst-danger
Copy link
Contributor

Teacher Install Page

@inst-danger
Copy link
Contributor

Student Install Page

Copy link
Contributor

@adamNagy56 adamNagy56 left a comment

Choose a reason for hiding this comment

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

QA +1

@hermannakos hermannakos merged commit 553ca79 into master Oct 9, 2025
7 checks passed
@hermannakos hermannakos deleted the MBL-19385-lightmode-button-rotation branch October 9, 2025 08:17
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.

7 participants