diff --git a/src/main/java/io/github/hectorvent/floci/lifecycle/UiController.java b/src/main/java/io/github/hectorvent/floci/lifecycle/UiController.java
index 72e70a1497..c76117ffd6 100644
--- a/src/main/java/io/github/hectorvent/floci/lifecycle/UiController.java
+++ b/src/main/java/io/github/hectorvent/floci/lifecycle/UiController.java
@@ -16,9 +16,10 @@ import jakarta.ws.rs.core.Response;
* Browser-facing endpoints that launch and redirect to the floci-ui sidecar.
*
*
- *
{@code GET /_floci/ui} — kicks off the sidecar start (async) and returns a
- * small interstitial page that polls {@code /status} and redirects when ready.
- *
{@code GET /_floci/ui/status} — JSON {@code {ready, url, error}} the
+ *
{@code GET /_floci/ui}: kicks off the sidecar start (async) and returns the
+ * landing page, which shows its wait view on this path: it polls {@code /status}
+ * and redirects when ready.
+ *
{@code GET /_floci/ui/status}: JSON {@code {ready, url, error}} the
* interstitial polls.
*
*/
@@ -38,7 +39,7 @@ public class UiController {
@Produces(MediaType.TEXT_HTML)
public Response ui() {
uiManager.ensureStartedAsync();
- return Response.ok(uiPages.startingHtml()).build();
+ return Response.ok(uiPages.landingHtml()).build();
}
@RegisterForReflection
diff --git a/src/main/java/io/github/hectorvent/floci/services/floci/ui/UiPages.java b/src/main/java/io/github/hectorvent/floci/services/floci/ui/UiPages.java
index 1b6da98c68..c2f25993b4 100644
--- a/src/main/java/io/github/hectorvent/floci/services/floci/ui/UiPages.java
+++ b/src/main/java/io/github/hectorvent/floci/services/floci/ui/UiPages.java
@@ -7,20 +7,18 @@ import java.io.InputStream;
import java.nio.charset.StandardCharsets;
/**
- * Loads and caches the small embedded HTML pages served to browsers: the Floci
- * landing page and the "starting the UI" interstitial. Resources are read from
- * the classpath ({@code ui/*.html}) and must be registered in
- * {@code quarkus.native.resources.includes} so they are embedded in the native
- * image.
+ * Loads and caches the embedded HTML page served to browsers. One file holds two
+ * views, the dashboard and the "starting the UI" wait view, and picks between them
+ * from the request path. It is read from the classpath ({@code ui/*.html}) and must
+ * be registered in {@code quarkus.native.resources.includes} so it is embedded in
+ * the native image.
*/
@ApplicationScoped
public class UiPages {
private static final String LANDING_RESOURCE = "ui/index.html";
- private static final String STARTING_RESOURCE = "ui/starting.html";
private volatile String landing;
- private volatile String starting;
public String landingHtml() {
String result = landing;
@@ -31,15 +29,6 @@ public class UiPages {
return result;
}
- public String startingHtml() {
- String result = starting;
- if (result == null) {
- result = readResource(STARTING_RESOURCE);
- starting = result;
- }
- return result;
- }
-
private static String readResource(String resourceName) {
ClassLoader loader = UiPages.class.getClassLoader();
try (InputStream input = loader.getResourceAsStream(resourceName)) {
diff --git a/src/main/resources/ui/index.html b/src/main/resources/ui/index.html
index c40209e9f4..98f8d486ef 100644
--- a/src/main/resources/ui/index.html
+++ b/src/main/resources/ui/index.html
@@ -3,287 +3,780 @@
- Floci — local AWS emulator
+ Floci: local AWS emulator
+
-
+
-
-
-
-
- connecting…
-
-
-
Any cloud. Locally. — a local AWS emulator speaking real AWS wire protocols.
-
You've reached the Floci endpoint. Point your AWS SDK or CLI here with
- --endpoint-url http://localhost:4566 and it behaves like AWS.