-
Notifications
You must be signed in to change notification settings - Fork 92
[DT-6] Add Local Activity to event history filter #1390
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
[DT-6] Add Local Activity to event history filter #1390
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
@@ -142,7 +150,10 @@ describe('Event Category Data Structures', () => { | |||
}); | |||
}); | |||
|
|||
const categories: Record<EventTypeCategory, EventType[]> = { | |||
const categories: Record< | |||
Exclude<EventTypeCategory, 'local-activity'>, |
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.
I've opted not to touch any of the logic in getEventCategory
, etc. (and just omit the category here), but if we want to be categorizing events as LocalActivity
, outside of just filtering for them, we may want to revisit this.
@@ -32,7 +32,8 @@ | |||
value: _value, | |||
url: $page.url, | |||
}).then((v) => { | |||
_value = v?.toString() ?? null; | |||
const hasOption = options.find(({ option }) => option === v); | |||
_value = hasOption ? v?.toString() ?? null : null; |
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.
Slightly confusing here... Why not use hasOption.toString()?
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.
Definitely not ideal with that nested logic 😅 Updated to 👇
const visibleOption = options.find(({ option }) => option === v);
_value = visibleOption?.option?.toString() ?? null;
Looks like you gotta update that unit test for those new options. |
Description & motivation 💭
Local Activity
toWorkflow Events
filter in eventHistory
viewEvent Type
filter in eventCompact
viewHistory
view toCompact
view if the filter option does not existScreenshots (if applicable) 📸
Design Considerations 🎨
Testing 🧪
How was this tested 👻
addedupdatedSteps for others to test: 🚶🏽♂️🚶🏽♀️
Local Activity
option* works as expected in theHistory
viewCompact
viewLocalActivity
events also show up when filtering forMarker
events in theHistory
viewHistory
toCompact
view*A sample with
LocalActivity
events can be found here.Checklists
Draft Checklist
Merge Checklist
Issue(s) closed
DT-6
Docs
Any docs updates needed?