Skip to content
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

feat(replay): Consider user input in form field as "user activity" #7355

Merged
merged 4 commits into from Mar 7, 2023

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Mar 7, 2023

This adds user input (event from core SDK) as a trigger for user activity (to reset idle timeout). Note that this is only from input changes in a form field, it will not consider using tab key to move focus.

This adds user input (event from core SDK) as a trigger for user activity (to reset idle timeout). Note that this is only from input changes in a form field, it will not consider using tab key to move focus.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.12 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 62.55 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.76 KB (-0.01% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 55.53 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 20.5 KB (0%)
@sentry/browser - Webpack (minified) 66.99 KB (0%)
@sentry/react - Webpack (gzipped + minified) 20.53 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 48.28 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 27.26 KB (0%)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 25.52 KB (-0.01% 🔽)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 43.13 KB (+0.01% 🔺)
@sentry/replay - Webpack (gzipped + minified) 37.16 KB (+0.03% 🔺)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 60.92 KB (+0.01% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 54.25 KB (+0.01% 🔺)

@@ -12,7 +12,7 @@ export function addBreadcrumbEvent(replay: ReplayContainer, breadcrumb: Breadcru
return;
}

if (breadcrumb.category === 'ui.click') {
if (['ui.click', 'ui.input'].includes(breadcrumb.category || '')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: IMHO we do not need the || '' part, it should still work with includes(undefined) - we can safe some bytes by doing includes(breadcrumb.category as string) (to satisfy TS)?

@billyvg billyvg marked this pull request as ready for review March 7, 2023 15:12
@billyvg billyvg merged commit 7ab581b into develop Mar 7, 2023
@billyvg billyvg deleted the feat-replay-user-input-as-activity branch March 7, 2023 23:45
AbhiPrasad pushed a commit that referenced this pull request Mar 8, 2023
…7355)

This adds user input (event from core SDK) as a trigger for user activity (to reset idle timeout). Note that this is only from input changes in a form field, it will not consider using tab key to move focus.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants