Skip to content

Add daily_audio_status to user details API#474

Merged
mircealungu merged 5 commits intomasterfrom
daily-audio-status-indicator
Feb 6, 2026
Merged

Add daily_audio_status to user details API#474
mircealungu merged 5 commits intomasterfrom
daily-audio-status-indicator

Conversation

@mircealungu
Copy link
Member

Summary

Add daily_audio_status field 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 today

Usage

Frontend can read this from userDetails context and show a notification dot on the Daily Audio sidebar item.

Test plan

  • Verify status is null for user without feature
  • Verify status is "generating" during generation
  • Verify status is "ready" for new lesson
  • Verify status is "completed" after finishing lesson

🤖 Generated with Claude Code

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>
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

ArchLens - No architecturally relevant changes to the existing views

mircealungu and others added 4 commits February 6, 2026 13:08
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>
@mircealungu mircealungu merged commit bb3c2f5 into master Feb 6, 2026
3 checks passed
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.

1 participant