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

Separate tabs for Errors and Warnings in error overlay #4001

Merged

Conversation

ForsakenHarmony
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Feb 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
examples-basic-web 🔄 Building (Inspect) Mar 2, 2023 at 4:41PM (UTC)
examples-svelte-web 🔄 Building (Inspect) Mar 2, 2023 at 4:41PM (UTC)
8 Ignored Deployments
Name Status Preview Comments Updated
examples-cra-web ⬜️ Ignored (Inspect) Mar 2, 2023 at 4:41PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Mar 2, 2023 at 4:41PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Mar 2, 2023 at 4:41PM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Mar 2, 2023 at 4:41PM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Mar 2, 2023 at 4:41PM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Mar 2, 2023 at 4:41PM (UTC)
examples-vite-web ⬜️ Ignored (Inspect) Mar 2, 2023 at 4:41PM (UTC)
turbo-site ⬜️ Ignored (Inspect) Visit Preview Mar 2, 2023 at 4:41PM (UTC)

@ForsakenHarmony
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 28, 2023

🟢 CI successful 🟢

Thanks

[TabId.TurbopackWarnings]: turbopackWarnings.length > 0,
[TabId.RuntimeErrors]: hasErrors,
}[tabId])
)[0] ?? TabId.RuntimeErrors;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
)[0] ?? TabId.RuntimeErrors;
)[0];

Copy link
Member Author

Choose a reason for hiding this comment

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

didn't want it to be nullable

Comment on lines +215 to +216
if (defaultTab === TabId.TurbopackErrors) {
setSelectedTab(TabId.TurbopackErrors);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (defaultTab === TabId.TurbopackErrors) {
setSelectedTab(TabId.TurbopackErrors);
if (defaultTab) {
setSelectedTab(defaultTab );

Copy link
Member Author

Choose a reason for hiding this comment

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

This is here to switch to the turbopack error tab if those appear later on, but I'm not sure if it's a good idea to have

@ForsakenHarmony ForsakenHarmony force-pushed the hrmny/web-509-errors-warnings-tabs-error-overlay branch from c6f75f4 to 893502d Compare March 2, 2023 16:41
@ForsakenHarmony ForsakenHarmony removed the request for review from a team March 2, 2023 16:41
@ForsakenHarmony ForsakenHarmony enabled auto-merge (squash) March 2, 2023 16:41
@ForsakenHarmony ForsakenHarmony merged commit d48f1bc into main Mar 2, 2023
@ForsakenHarmony ForsakenHarmony deleted the hrmny/web-509-errors-warnings-tabs-error-overlay branch March 2, 2023 16:58
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2023

Benchmark for 6a263b6

Test Base PR % Significant %
bench_startup/Turbopack RSC/1000 modules 2123.65ms ± 9.58ms 2085.68ms ± 4.61ms -1.79% -0.46%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9769.89µs ± 33.38µs 9815.84µs ± 68.19µs +0.47%
bench_hmr_to_commit/Turbopack RCC/1000 modules 13.08ms ± 0.30ms 13.29ms ± 0.20ms +1.55%
bench_hmr_to_commit/Turbopack RSC/1000 modules 510.51ms ± 1.69ms 517.72ms ± 3.01ms +1.41%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9979.86µs ± 35.72µs 9999.92µs ± 50.45µs +0.20%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8962.38µs ± 46.35µs 8922.48µs ± 31.03µs -0.45%
bench_hmr_to_eval/Turbopack RCC/1000 modules 11.81ms ± 0.14ms 11.72ms ± 0.11ms -0.74%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8991.32µs ± 75.15µs 9022.21µs ± 58.99µs +0.34%
bench_hydration/Turbopack RCC/1000 modules 3687.52ms ± 10.94ms 3675.76ms ± 10.56ms -0.32%
bench_hydration/Turbopack RSC/1000 modules 3313.47ms ± 14.11ms 3292.45ms ± 15.01ms -0.63%
bench_hydration/Turbopack SSR/1000 modules 3349.63ms ± 7.36ms 3346.55ms ± 9.11ms -0.09%
bench_startup/Turbopack CSR/1000 modules 2599.95ms ± 6.50ms 2584.24ms ± 8.89ms -0.60%
bench_startup/Turbopack RCC/1000 modules 2154.57ms ± 4.54ms 2170.74ms ± 3.62ms +0.75%
bench_startup/Turbopack RSC/1000 modules 2123.65ms ± 9.58ms 2085.68ms ± 4.61ms -1.79% -0.46%
bench_startup/Turbopack SSR/1000 modules 2054.12ms ± 3.22ms 2060.81ms ± 3.54ms +0.33%

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