-
-
Notifications
You must be signed in to change notification settings - Fork 143
feat: add support for Gmail tracking fields #796
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
base: master
Are you sure you want to change the base?
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 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -31,6 +31,25 @@ export function buildTooltip(bucket, e) { | |||||||||||||
| <tr><th>Title</th><td>${sanitize(e.data.title)}</td></tr> | ||||||||||||||
| <tr><th>URL</th><td><a href=${sanitize(e.data.url)}>${sanitize(e.data.url)}</a></td></tr> | ||||||||||||||
| `; | ||||||||||||||
| if (e.data.gmail_activity) { | ||||||||||||||
| inner += `<tr><th>Gmail Activity</th><td>${sanitize(e.data.gmail_activity)}</td></tr>`; | ||||||||||||||
| if (e.data.from) | ||||||||||||||
| inner += `<tr><th>From</th><td>${sanitize(e.data.from)}</td></tr>`; | ||||||||||||||
|
Comment on lines
+36
to
+37
Contributor
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.
The For consistency with the other address fields:
Suggested change
|
||||||||||||||
| if (e.data.subject) | ||||||||||||||
| inner += `<tr><th>Subject</th><td>${sanitize(e.data.subject)}</td></tr>`; | ||||||||||||||
| if (e.data.to && e.data.to.length > 0) | ||||||||||||||
| inner += `<tr><th>To</th><td>${sanitize( | ||||||||||||||
| Array.isArray(e.data.to) ? e.data.to.join(', ') : e.data.to | ||||||||||||||
| )}</td></tr>`; | ||||||||||||||
| if (e.data.cc && e.data.cc.length > 0) | ||||||||||||||
| inner += `<tr><th>CC</th><td>${sanitize( | ||||||||||||||
| Array.isArray(e.data.cc) ? e.data.cc.join(', ') : e.data.cc | ||||||||||||||
| )}</td></tr>`; | ||||||||||||||
| if (e.data.bcc && e.data.bcc.length > 0) | ||||||||||||||
| inner += `<tr><th>BCC</th><td>${sanitize( | ||||||||||||||
| Array.isArray(e.data.bcc) ? e.data.bcc.join(', ') : e.data.bcc | ||||||||||||||
| )}</td></tr>`; | ||||||||||||||
| } | ||||||||||||||
| } else if (bucket.type.startsWith('app.editor')) { | ||||||||||||||
| inner = ` | ||||||||||||||
| <tr><th>Filename</th><td>${sanitize(_.last(e.data.file.split('/')))}</td></tr> | ||||||||||||||
|
|
||||||||||||||
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.
The new array input binds
:valuetoevent.data[k].join(', ')— the original component prop — while every other field type in this table useseditedEvent.data[k](the locally fetched/edited copy). Although this has no visible effect while the field isdisabled, it's inconsistent and would silently show stale data if the field ever becomes editable, or ifeventandeditedEventever diverge.