Repository navigation
Redesign the share modal with a link preview and caption suggestions - #1500
Merged
Merged
Conversation
…modal # Conflicts: # frontend/src/locales/cs.js # frontend/src/locales/cs.po # frontend/src/locales/de.js # frontend/src/locales/de.po # frontend/src/locales/el.js # frontend/src/locales/el.po # frontend/src/locales/en.js # frontend/src/locales/en.po # frontend/src/locales/es.js # frontend/src/locales/es.po # frontend/src/locales/fi.js # frontend/src/locales/fi.po # frontend/src/locales/fr.js # frontend/src/locales/fr.po # frontend/src/locales/hu.js # frontend/src/locales/hu.po # frontend/src/locales/it.js # frontend/src/locales/it.po # frontend/src/locales/ja.js # frontend/src/locales/ja.po # frontend/src/locales/ko.js # frontend/src/locales/ko.po # frontend/src/locales/nl.js # frontend/src/locales/nl.po # frontend/src/locales/pl.js # frontend/src/locales/pl.po # frontend/src/locales/pt-br.js # frontend/src/locales/pt-br.po # frontend/src/locales/pt.js # frontend/src/locales/pt.po # frontend/src/locales/ru.js # frontend/src/locales/ru.po # frontend/src/locales/se.js # frontend/src/locales/se.po # frontend/src/locales/sk.js # frontend/src/locales/sk.po # frontend/src/locales/tr.js # frontend/src/locales/tr.po # frontend/src/locales/vi.js # frontend/src/locales/vi.po # frontend/src/locales/zh-cn.js # frontend/src/locales/zh-cn.po # frontend/src/locales/zh-hk.js # frontend/src/locales/zh-hk.po
Contributor
✅ E2E smoke tests: Everything passed.
|
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What this does
Replaces the three-tab share modal with a single screen:
The affiliate, organizer and occurrence share modals get the new layout without suggestions.
Who gets suggestions
Checked on the server for every call (
EventShareSuggestionAvailabilityService):ANTHROPIC_API_KEYis set. Without it the feature is hidden, so self-hosted installs are unaffected.Limits
EventShareSuggestionQuotaService), shown in the modal as "n left today".throttle:6,1,event-share-suggestionson the generate endpoint.API
Two new endpoints in the
auth:api,sanctumgroup, both additive:GET /events/{event_id}/share-suggestionsPOST /events/{event_id}/share-suggestions(403 when unavailable, 429 when the daily allowance is used, 503 when the provider fails)backend/resources/api-reference/openapi.jsonis regenerated.Notes for review
claude-haiku-4-5, the same as the event spam check.EventLiveCelebrationModalnow takes theeventinstead ofeventTitleandeventId.Testing
EventShareSuggestionsActionTest(generate and read back, not configured, untrusted Cloud account, allowance used, provider failure, read-only member, another account's event).e2e/tests/management/share-event.spec.ts(no-cover prompt, picking a suggestion, untrusted-account hint), with the suggestions endpoint stubbed.pint --test,tsc --noEmitand the E2E spec against the dev stack. Checked the modal in Chrome on events with and without a cover, with real Haiku output, and at 390px width.