Friend-share: pre-generate derivative for crawl (feed) shares too - #696
Merged
Conversation
…uage) Completes the multiplexer for feed shares. When there's no upload, generate the recipient's copy by simplifying the CANONICAL crawled article to their level (create_recipient_derivative_from_article -> create_user_specific_ simplified_version, which makes a proper simplified child: parent_url, is_simplified, target_cefr_level all correct). The email deep-link then opens a ready, adapted copy — no 'adapt to your level?' prompt. Cross-language crawl TRANSLATION is deferred (a translated child needs a same-language guard in the recommender overlay first); it returns None there, and the recipient opens the original and adapts, as before. Also None when no simplification is needed (recipient's level >= the article's). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
ArchLens - No architecturally relevant changes to the existing views |
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.
Completes the multiplexer for the common case (sharing a feed article). When there's no upload, generate the recipient's copy by simplifying the canonical crawled article to their level — so the email deep-link opens a ready, adapted copy instead of prompting 'adapt to your level?'.
Same-language only for now; cross-language crawl translation is deferred (needs a same-language guard in the recommender overlay). Returns None (open-original-and-adapt fallback) for cross-language, when no simplification is needed, or on any error.
Needs a device test — the LLM generation only verifies live: share a feed article to a friend, confirm they open a pre-adapted copy with no level prompt.
🤖 Generated with Claude Code