");
+ }
+ close(html);
+ }
+
+
+
/*******************************************************************************
** 1. Buckets: one card per bucket, linking to its record. Cards flow into as
** many columns as fit, so the section reads at any width without scrolling.
diff --git a/src/main/java/com/kingsrook/qbits/objectstorage/app/StorageSetupStatus.java b/src/main/java/com/kingsrook/qbits/objectstorage/app/StorageSetupStatus.java
new file mode 100644
index 0000000..5a25199
--- /dev/null
+++ b/src/main/java/com/kingsrook/qbits/objectstorage/app/StorageSetupStatus.java
@@ -0,0 +1,113 @@
+/*
+ * QQQ - Low-code Application Framework for Engineers.
+ * Copyright (C) 2021-2025. Kingsrook, LLC
+ * 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
+ * contact@kingsrook.com
+ * https://github.com/Kingsrook/
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.kingsrook.qbits.objectstorage.app;
+
+
+import java.util.ArrayList;
+import java.util.List;
+import com.kingsrook.qbits.objectstorage.ObjectStorageQBitConfig;
+import com.kingsrook.qbits.objectstorage.internal.Db;
+import com.kingsrook.qbits.objectstorage.internal.ObjectStorageRuntime;
+import com.kingsrook.qbits.objectstorage.model.ObjectStorageTables;
+import com.kingsrook.qqq.backend.core.exceptions.QException;
+
+
+/*******************************************************************************
+ ** The Setup card on the Storage home: each configuration table, its state and
+ ** the next step. States use the same resolution the runtime uses: connections
+ ** and buckets come from code (so "set up" means declared and synced), and the
+ ** header policy is the host's own when the config names one, otherwise the
+ ** enabled rows of object_storage_header_rule.
+ *******************************************************************************/
+public final class StorageSetupStatus
+{
+ public static final String SET_UP = "Set up";
+ public static final String NEEDS_SETUP = "Needs setup";
+ public static final String USING_DEFAULTS = "Using defaults";
+ public static final String OPTIONAL = "Optional";
+
+
+
+ /*******************************************************************************
+ ** One line of the card.
+ *******************************************************************************/
+ public record Step(String label, String state, String next, String table)
+ {
+ }
+
+
+
+ /*******************************************************************************
+ ** Utility class.
+ *******************************************************************************/
+ private StorageSetupStatus()
+ {
+ }
+
+
+
+ /*******************************************************************************
+ ** Read the current state. Connections and buckets come from the runtime
+ ** config (what the runtime uses, whoever is looking), and the rule counts
+ ** are read as the system, so a bucket-scoped user is never shown a false
+ ** "needs setup".
+ *******************************************************************************/
+ public static List