Commit Graph

7 Commits

Author SHA1 Message Date
Hendrik Liebau 9f181bd11a [test] Unflake rendering indicator test & skip building indicator tests (#91650)
[Flakiness
metric](https://app.datadoghq.com/ci/test/runs?query=test_level%3Atest%20%40git.repository.id%3A%22github.com%2Fvercel%2Fnext.js%22%20%40test.name%3A%28%22Build%20Activity%20Indicator%20Enabled%20-%20%28app%29%20Shows%20build%20indicator%20when%20page%20is%20built%20from%20modifying%22%20OR%20%22Build%20Activity%20Indicator%20Enabled%20-%20%28pages%29%20Shows%20build%20indicator%20when%20page%20is%20built%20from%20modifying%22%20OR%20%22Dev%20Rendering%20Indicator%20Shows%20build%20indicator%20when%20page%20is%20built%20from%20modifying%22%29%20%40test.status%3Afail&agg_m=count&agg_m_source=base&agg_t=count&fromUser=false&index=citest&start=1773322068865&end=1773926868865&paused=false)

In #85083 we introduced a delay of 400 ms before showing the
building/rendering indicator, to avoid flashing it for fast operations.
For now, we skip the building indicator tests because our simple test
apps usually compile much faster than that, and we haven't found a good
way to reliably test the indicator without flakiness. We do keep the
rendering indicator test, but increase the timeout in the pages to
ensure the indicator is shown for long enough to be detected by the
test.
2026-03-20 09:03:06 +01:00
Sebastian "Sebbie" Silbermann 0b58a32c45 [test] assert* -> waitFor* when the util is not instant (#85450) 2025-10-30 14:44:08 +01:00
Zack Tanner 20cf4c07da add new devtools indicator loading state (#85083)
This removes the Next logo animation/dimming and replaces it with more
explicit states. We also use this UI to show when caches are being
warmed (when using Cache Components). When caches are being bypassed in
DevTools, we also will show this in the indicator with warning text,
indicating that we cannot accurately reflect what can be statically
prerendered.



https://github.com/user-attachments/assets/665d4f8b-8c01-4def-a60e-bc4ecdd1f879
2025-10-20 12:42:43 -07:00
Zack Tanner 85c3d20a91 [cache components]: move flag out of experimental (#85035)
This moves `experimental.cacheComponents` to a top level config. As part
of this, I disabled some tests in `build-output-prerender` that assert
on `cacheComponents` appearing in the experimental list. In a separate
PR, I'm going to show that Cache Components is enabled next to the
bundler info.

This also updates some docs pages to remove "experimental" language.
2025-10-18 14:13:44 -07:00
Hendrik Liebau d60d235047 [Cache Components] Disable static indicator (#84639)
When `experimental.cacheComponents` is enabled, the static indicator in
the Next.js DevTools is now disabled.

With Cache Components enabled, the binary static/dynamic state is no
longer accurate since routes are typically partially static and dynamic
(unless fully opted into dynamic rendering via a Suspense boundary above
the body, which is an edge case).

To avoid confusion, we're removing it for now, when the feature flag is
enabled. In the future, we will likely provide better tools that will
allow users to understand which parts of a page are prerendered and
which parts are dynamic.

In addition, this PR also improves the behavior for fully static App
Router pages (without Cache Components). Previously, we would show
"Dynamic" as default, and only flipped to "Static" when the request was
finished. Now, we're showing a spinner while the page is loading.

![static
indicator](https://github.com/user-attachments/assets/c720975d-932c-48b0-b705-7c408fdcf51d)

closes NAR-428
2025-10-08 22:21:51 +02:00
Sebastian "Sebbie" Silbermann 2bb89785c5 [test] Add test for dev rendering indicator (#80205)
Automated test for https://github.com/vercel/next.js/pull/74833
2025-06-05 18:37:57 +02:00
Zack Tanner e071b839e4 [dev-overlay]: wire up ISR status for pages router (#76458)
The static indicator was added in the new dev overlay but wasn't hooked up to pages router. This wires that up so they're properly marked static/dynamic. 

Closes NDX-897
2025-02-25 12:05:45 -08:00