-
Notifications
You must be signed in to change notification settings - Fork 6
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
Release [0.79] #7337
Release [0.79] #7337
Conversation
* init commit Notifications 0 button, dialog, mock * updated NotificationProps * InAppNotifications Template logic v0 * notifications base model updates * Notification subject added * remove the action from the main model * mock assets for demo * Notifications query integration * removed mocks, fixed types, polling for notifications updates * Read/Unread menu and functionality * Actions - archive; onClose on click on notif or action; memo and keys added * translations of actions; sentry warn for unsupported type * fixed graphql types * display additional fields; changes to the design; sorting * handle callout types * comments display logic; design chenages; documentaion * pr rabbit fixes * enabled notifications only for Beta testers * update w the server chagnes * Fix the comments url Style improvements * pr rabbit fix * pr fixes * extract the isEnabled logic into the context * Update inAppNotificationsDocs.md --------- Co-authored-by: Svetoslav <svetoslav@alkem.io> Co-authored-by: Carlos Cano <carlos@alkem.io>
Release / VC fixes
* Fix BUG: Importing subspace template to space templates, doesn't import the template tag * Fix #7259 another problem in the mappings file
fix in-app notification layout w comments
* add new alkemio banner * delete old jpg banner --------- Co-authored-by: Valentin Yanakiev <valentin.yanakiev@gmail.com>
* implement embed video functionality * implement embed code functionality * remove logs * fixed ts warning * polish code * update textare colors * resolve bunny comments * rename video file * fix iframe styles during edit mode, adding multiple iframes fixed * resolve new bunny comments * resolve pr comments * simplify styles * simplify state * secure wrapperMarkdown * fix iframe wrapper styles * make allowed embed urls read-only * update issuu allowed embed url * secure the sandbox attribute too * remove sandbox attributes for now * resolve bunny comment --------- Co-authored-by: Valentin Yanakiev <valentin.yanakiev@gmail.com> Co-authored-by: Carlos Cano <carlos@alkem.io>
* handle gracefully broken notificaionts by not displaying them * fix the translation and displya of the space type * codegen with latest fields --------- Co-authored-by: Svetoslav <svetoslav@alkem.io>
* Fix creating a subspace on a Space by nameId * remove unused var
* Fix tutorials iframes * parse the iframe with the DOMParser instead of with regex --------- Co-authored-by: Valentin Yanakiev <valentin.yanakiev@gmail.com>
…late selector (#7325) * Add Callouts preview accordion on SubspacesList default subspace template selector * usememo * memoize the Description component --------- Co-authored-by: Valentin Yanakiev <valentin.yanakiev@gmail.com>
# Conflicts: # package-lock.json # package.json # src/domain/community/community/CommunityAdmin/useCommunityAdmin.ts
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis pull request involves a version update and optimizations in the codebase. The Changes
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/domain/community/community/VirtualContributorsBlock/VirtualContributorsBlock.tsx (1)
76-82
: Remove redundantopen
propSince the dialog is already conditionally rendered with
inviteDialogOpen
, passing the same value as theopen
prop is redundant.{inviteDialogOpen && ( <InviteContributorDialog - open={inviteDialogOpen} onClose={closeInviteDialog} type={CommunityContributorType.Virtual} /> )}
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
package-lock.json
is excluded by!**/package-lock.json
📒 Files selected for processing (3)
package.json
(1 hunks)src/domain/community/community/VirtualContributorsBlock/VirtualContributorsBlock.tsx
(3 hunks)src/domain/community/inviteContributors/InviteVCsDialog.tsx
(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- package.json
🧰 Additional context used
📓 Path-based instructions (2)
src/domain/community/community/VirtualContributorsBlock/VirtualContributorsBlock.tsx (1)
Pattern src/**/*.{ts,tsx,js}
: Review the React.js/TypeScript/JavaScript code for best practices and potential bugs.
Ensure that the code adheres to TypeScript's typing system and modern standards.
Use the following code guide documentation in the codebase: 'docs/code-guidelines.md'.
Ensure sufficient error handling and logging is present, but note:
- We have a global error handler in place. So local
try/catch
blocks are not required unless they provide value beyond what the global error handler already covers. - Avoid flagging the absence of local error handling in cases where the global error handler suffices.
- Avoid flagging the absence of logging in cases where the global logger is already in place (graphql usage).
Inform about the recommendation of not using non-null assertion,
except on GraphQL queries where the variable is asserted non-null and followed by a
skip:
with the same variable.
Examples:
- Not Required: there's a skip
{
variables: { templateId: templateId! },
skip: !templateId,
}
Check for common security vulnerabilities such as:
- SQL Injection
- XSS (Cross-Site Scripting)
- CSRF (Cross-Site Request Forgery)
- Insecure dependencies
- Sensitive data exposure
src/domain/community/inviteContributors/InviteVCsDialog.tsx (1)
Pattern src/**/*.{ts,tsx,js}
: Review the React.js/TypeScript/JavaScript code for best practices and potential bugs.
Ensure that the code adheres to TypeScript's typing system and modern standards.
Use the following code guide documentation in the codebase: 'docs/code-guidelines.md'.
Ensure sufficient error handling and logging is present, but note:
- We have a global error handler in place. So local
try/catch
blocks are not required unless they provide value beyond what the global error handler already covers. - Avoid flagging the absence of local error handling in cases where the global error handler suffices.
- Avoid flagging the absence of logging in cases where the global logger is already in place (graphql usage).
Inform about the recommendation of not using non-null assertion,
except on GraphQL queries where the variable is asserted non-null and followed by a
skip:
with the same variable.
Examples:
- Not Required: there's a skip
{
variables: { templateId: templateId! },
skip: !templateId,
}
Check for common security vulnerabilities such as:
- SQL Injection
- XSS (Cross-Site Scripting)
- CSRF (Cross-Site Request Forgery)
- Insecure dependencies
- Sensitive data exposure
🔇 Additional comments (1)
src/domain/community/community/VirtualContributorsBlock/VirtualContributorsBlock.tsx (1)
42-44
: LGTM! Good performance optimization
The useCallback
hook is correctly implemented with the appropriate dependency. This optimization prevents unnecessary re-renders of child components that receive this callback as a prop.
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/domain/community/inviteContributors/useInviteContributors.tsx (2)
Line range hint
83-83
: Consider implementing pagination for scalabilityThe TODO comment indicates a need for pagination. This is important for performance as the list of virtual contributors grows.
Would you like me to help create a GitHub issue to track the pagination implementation? I can provide a detailed proposal for implementing pagination using cursor-based pagination with Apollo Client.
Line range hint
91-98
: Consider memoizing filter functions for performanceThe filter functions
filterByName
andfilterExisting
are recreated on every render. Consider usinguseCallback
to memoize them.- const filterByName = (vc: VirtualContributorNameProps, filter?: string) => - vc.profile.displayName.toLowerCase().includes(filter?.toLowerCase() ?? ''); - const filterExisting = (vc: VirtualContributorNameProps, existingVCs) => - !existingVCs.some(member => member.id === vc.id); + const filterByName = useCallback((vc: VirtualContributorNameProps, filter?: string) => + vc.profile.displayName.toLowerCase().includes(filter?.toLowerCase() ?? ''), []); + const filterExisting = useCallback((vc: VirtualContributorNameProps, existingVCs) => + !existingVCs.some(member => member.id === vc.id), []);
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
package-lock.json
is excluded by!**/package-lock.json
📒 Files selected for processing (2)
package.json
(1 hunks)src/domain/community/inviteContributors/useInviteContributors.tsx
(2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- package.json
🧰 Additional context used
📓 Path-based instructions (1)
src/domain/community/inviteContributors/useInviteContributors.tsx (1)
Pattern src/**/*.{ts,tsx,js}
: Review the React.js/TypeScript/JavaScript code for best practices and potential bugs.
Ensure that the code adheres to TypeScript's typing system and modern standards.
Use the following code guide documentation in the codebase: 'docs/code-guidelines.md'.
Ensure sufficient error handling and logging is present, but note:
- We have a global error handler in place. So local
try/catch
blocks are not required unless they provide value beyond what the global error handler already covers. - Avoid flagging the absence of local error handling in cases where the global error handler suffices.
- Avoid flagging the absence of logging in cases where the global logger is already in place (graphql usage).
Inform about the recommendation of not using non-null assertion,
except on GraphQL queries where the variable is asserted non-null and followed by a
skip:
with the same variable.
Examples:
- Not Required: there's a skip
{
variables: { templateId: templateId! },
skip: !templateId,
}
Check for common security vulnerabilities such as:
- SQL Injection
- XSS (Cross-Site Scripting)
- CSRF (Cross-Site Request Forgery)
- Insecure dependencies
- Sensitive data exposure
🔇 Additional comments (1)
src/domain/community/inviteContributors/useInviteContributors.tsx (1)
156-156
: LGTM: Improved data consistency with specific refetch query
The change to use refetchSpaceCommunityPageQuery
with specific parameters ensures better data consistency after mutations.
refetch the correct community query on ADD VC
fix performance rerender issue caused by array dependency
Refetch the invites on every accept;
[VC invites] Fix BoK not loading every time in preview dialog
add canva to the whitelist of iframe embed urls
* Fix dashboard access * fixed scope * change polling interval * fix pr comment * renamed to useSpaceTemplate*s*ManagerQuery --------- Co-authored-by: Carlos Cano <carlos@alkem.io>
Summary by CodeRabbit