Feature: AI sidebar hidden by default for members and guests if AI is disabled
Merged
BU
6mo ago+87+87+01234567890123456789-0-0-0123456789
https://github.com/we-promise/sure/discussions/203#discussioncomment-16612308 refers.
When AI is disabled, new guest and member accounts now have the AI sidebar hidden i.e. the value of show_ai_sidebar is set to false for those accounts. However, administrator accounts still have the AI sidebar shown by default, regardless of the value of ai_enabled.
Summary by CodeRabbit
-
Bug Fixes
- Ensure the AI sidebar is hidden by default for newly created member users when AI is not available.
-
Tests
- Added tests covering AI sidebar default behavior for member, guest, and admin roles under AI-available and AI-unavailable conditions.