-
Notifications
You must be signed in to change notification settings - Fork 1
OUT-2804, OUT-2805 | CRM view manage-templates header breadcrumbs design issue #1064
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
src/utils/isRealtimePayloadEqual.ts
Outdated
| export function isPayloadEqual( | ||
| payload: RealtimePostgresChangesPayload<RealTimeTaskResponse | RealTimeTemplateResponse>, | ||
| ): boolean { | ||
| const newPayload = payload.new | ||
| const oldPayload = payload.old | ||
| if (!newPayload || !oldPayload) return true | ||
| return deepEqual(newPayload, oldPayload) | ||
| } |
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.
It might be that all of the fields that we are interested in (e.g. title, description, workflow state) are not changed and something else is changed. Let's focus on checking for these important fields instead of directly checking deepEqual
dc8b8ad to
2b6b352
Compare
4d9213e to
c7c8684
Compare
- Manage templates button on template options hidden when user is from notification center. - added template fetcher on tasks details page so that user can access templates dropdown on notification-center-view
…gn fixes - Sorted templates on templates board by createdAt. The rearrangement was caused because of updating redux store on hover. - Removed extra line at the top of tempalte detail page.
…of having separate ones, memoized templats list
…of having separate ones, memoized templats list
- added manual timestamps for subtasks while creating them from a template with respect to parent templates createdAt. - this process maintains that the subtasks are created parallely and in order which gives us both performance and ordering. - found another issue where subtasks creation from templates causes race condition on realtime, causing update events to fire before create events for subtasks, causing duplicate data. Fixed this.
Changes