-
Notifications
You must be signed in to change notification settings - Fork 191
feat: notification for opt in loading #2274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ import TablesApiLight from '$lib/images/promos/tables-api-light.png'; | |
import TablesApiDark from '$lib/images/promos/tables-api-dark.png'; | ||
import TimestampOverridesDark from '$lib/images/promos/timestamp-overrides-dark.png'; | ||
import TimestampOverridesLight from '$lib/images/promos/timestamp-overrides-light.png'; | ||
import AppwriteGeneralAvailabiltyLight from '$lib/images/promos/appwrite-general-availability-light.png'; | ||
import AppwriteGeneralAvailabiltyDark from '$lib/images/promos/appwrite-general-availability-dark.png'; | ||
import OptInRelationDark from '$lib/images/promos/opt-relation-dark.png'; | ||
import OptInRelationLight from '$lib/images/promos/opt-relation-light.png'; | ||
|
||
const listOfPromotions: BottomModalAlertItem[] = []; | ||
|
||
|
@@ -53,27 +53,27 @@ if (isCloud) { | |
show: true | ||
}; | ||
|
||
const appwriteGeneralAvailabiltyPromo: BottomModalAlertItem = { | ||
id: 'modal:appwrite_general_availability_announcement', | ||
const optInRelationPromo: BottomModalAlertItem = { | ||
id: 'modal:opt_in_relation_announcement', | ||
src: { | ||
dark: AppwriteGeneralAvailabiltyDark, | ||
light: AppwriteGeneralAvailabiltyLight | ||
dark: OptInRelationDark, | ||
light: OptInRelationLight | ||
}, | ||
title: 'Now Generally Available', | ||
message: 'After 26 months of Appwrite Cloud, we are ready to remove the beta tag.', | ||
title: 'Introducing Opt-in relationship loading', | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
message: | ||
'Gain full control over which related rows to fetch and drastically reduce payload sizes.', | ||
plan: 'free', | ||
importance: 8, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainConfirm ordering logic; consider raising importance if priority must be first You push the new promo first, but if downstream code sorts by importance, equal values (8) won’t guarantee top position. If it must lead, bump importance. - importance: 8,
+ importance: 9, To verify behavior, check how items are ordered before rendering: Also applies to: 76-76 🏁 Script executed: #!/bin/bash
rg -n "showBottomModalAlert|importance" src -C3 Length of output: 11291 Stable sort confirmed; equal‐importance items preserve insertion order 🤖 Prompt for AI Agents
|
||
scope: 'everywhere', | ||
scope: 'project', | ||
cta: { | ||
text: 'Learn more', | ||
link: () => 'https://apwr.dev/ygTXfxA', | ||
text: 'Read announcement', | ||
link: () => 'https://appwrite.io/blog/post/announcing-opt-in-relationship-loading', | ||
external: true, | ||
Comment on lines
+69
to
71
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Optional: standardize link format Other promos mix long blog URLs and apwr.dev shortlinks. If you track via shortlinks, consider swapping to a managed redirect for consistency. No change required if long URL is preferred. 🤖 Prompt for AI Agents
|
||
hideOnClick: true | ||
}, | ||
show: true | ||
}; | ||
Comment on lines
+56
to
75
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainConsider cool-off to avoid re-showing after dismissal If supported, set notificationHideOptions to prevent resurfacing across sessions/projects once closed. Run to inspect existing usage patterns: 🏁 Script executed: #!/bin/bash
# Find existing promos using notificationHideOptions and their shapes
rg -n -C2 'notificationHideOptions|BottomModalAlertItem' src Length of output: 5135 Recommend adding notificationHideOptions to optInRelationPromo 🤖 Prompt for AI Agents
|
||
|
||
listOfPromotions.push(tablesApiPromo, timestampOverridesPromo, appwriteGeneralAvailabiltyPromo); | ||
listOfPromotions.push(optInRelationPromo, tablesApiPromo, timestampOverridesPromo); | ||
} | ||
|
||
export function addBottomModalAlerts() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check with VD, the images and content refer
documents
and deprecated methods. we need newer ones.