Add daily_audio_status to user details API#474
Merged
mircealungu merged 5 commits intomasterfrom Feb 6, 2026
Merged
Conversation
Returns status for sidebar notification badge: - null: no access or no lesson - "generating": lesson being generated - "ready": lesson available, not started - "in_progress": lesson started but not completed - "completed": lesson finished today Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
ArchLens - No architecturally relevant changes to the existing views |
Prevent TypeError when comparing None > 0 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The daily_audio feature toggle always returned true for everyone, making the checks unnecessary. Removed checks from: - daily_lesson_generator.py (6 access checks) - audio_lessons.py (feasibility endpoint check) - user_feature_toggles.py (feature function and map entry) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Instead of returning null, return "available" to enable showing a subtle gray hint dot encouraging users to generate a lesson. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
daily_audio_statusfield to user details API response to enable sidebar notification badge.Status values
null: User doesn't have daily_audio feature or no lesson for today"generating": Lesson is currently being generated"ready": Lesson is available but not started"in_progress": Lesson was started but not completed"completed": Lesson was completed todayUsage
Frontend can read this from userDetails context and show a notification dot on the Daily Audio sidebar item.
Test plan
nullfor user without feature"generating"during generation"ready"for new lesson"completed"after finishing lesson🤖 Generated with Claude Code