Skip to content

Hayaa: overlap check before sign-in, progress after, milestone banner - #251

Merged
nazmolla merged 1 commit into
mainfrom
feat/hayaa-onboarding
Dec 3, 2026
Merged

nazmolla merged 1 commit into
mainfrom
feat/hayaa-onboarding

Conversation

@nazmolla

@nazmolla nazmolla commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Why

New Hayaa servers couldn't see what joining would bring, and after linking got nothing back for 14 days / 25 shared titles without being told. Needs the Hayaa server from nazmolla/cleanplex-sync#14 (deployed).

What

  • Overlap check in the banner and the not-linked Hayaa panel: sends only already-stored content keys of live titles (no hashing on request), in batches of 3,500, only when the user presses the button; result cached with its date. Handles no keys and the 3/min rate limit.
  • Milestone banner: shows once more after 10 completed scans (separate dismissal key), never on /settings or when linked.
  • Progress after linking: days and shared titles until segments arrive, two progress bars, cached 1 h and refreshed after each sync, hidden on error.
  • Refusal reason: a refused device sign-in shows Hayaa's error_description.
  • English + Arabic strings.

Implemented by Gemini Neon from a written brief; reviewed by Claude.

Testing

  • pytest: 1,248 passed. tsc --noEmit clean; vitest 243 passed.
  • End to end in a browser: isolated Cleanplex dev instance (temp data dir, no Plex) + Hayaa dev server: milestone banner, real overlap call, rate-limit message, dismissal, panel, sign-in through the Hayaa page, progress block, Arabic RTL (13/13).

🤖 Generated with Claude Code

…banner

New Hayaa servers saw nothing of what joining would bring, then got nothing
back for two weeks without knowing why. Uses Hayaa's new endpoints.

- Overlap check: "See how many of your titles Hayaa already has" in the
  banner and the not-linked panel. Sends only content keys already stored
  for live titles (never hashes files on request), in batches of 3,500 to
  /api/v1/public/overlap, only when the user presses the button; the result
  is cached with its date
- Banner shows once more after 10 completed scans, with its own dismissal
- Progress after linking: days and shared titles until segments arrive
  (GET /api/v1/progress), cached for an hour and refreshed after each sync,
  hidden on error
- A refused sign-in shows Hayaa's reason instead of "Sign-in was declined"
- English and Arabic strings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nazmolla
nazmolla merged commit 22a5b37 into main Dec 3, 2026
1 check passed
@nazmolla
nazmolla deleted the feat/hayaa-onboarding branch December 3, 2026 15:20
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