@comergehq/studio 0.1.32 → 0.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5966,9 +5966,9 @@ function PreviewRelatedAppsSection({
5966
5966
  const renderRelatedCard = React27.useCallback(
5967
5967
  (item, options) => {
5968
5968
  const isCurrent = item.app.id === currentAppId;
5969
- const isReady = item.app.status === "ready";
5969
+ const isArchived = item.app.status === "archived";
5970
5970
  const isSwitching = switchingRelatedAppId === item.app.id;
5971
- const disabled = isCurrent || !isReady || Boolean(switchingRelatedAppId);
5971
+ const disabled = isCurrent || isArchived || Boolean(switchingRelatedAppId);
5972
5972
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5973
5973
  import_react_native35.Pressable,
5974
5974
  {
@@ -6008,7 +6008,7 @@ function PreviewRelatedAppsSection({
6008
6008
  )
6009
6009
  ] }),
6010
6010
  /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react_native35.View, { style: { alignItems: "flex-end", gap: 6 }, children: [
6011
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_native35.View, { style: { minHeight: 20, justifyContent: "center" }, children: !isReady ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(PreviewStatusBadge, { status: item.app.status }) : null }),
6011
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_native35.View, { style: { minHeight: 20, justifyContent: "center" }, children: item.app.status !== "ready" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(PreviewStatusBadge, { status: item.app.status }) : null }),
6012
6012
  isSwitching ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_native35.ActivityIndicator, { size: "small", color: theme.colors.primary }) : null
6013
6013
  ] })
6014
6014
  ] })
@@ -10076,7 +10076,26 @@ function ComergeStudioInner({
10076
10076
  const [upstreamSyncStatus, setUpstreamSyncStatus] = React51.useState(null);
10077
10077
  const isMrTestBuildInProgress = bundle.loading && bundle.loadingMode === "test";
10078
10078
  const isBaseBundleDownloading = bundle.loading && bundle.loadingMode === "base" && !bundle.isTesting;
10079
- const runtimePreparingText = bundle.bundleStatus === "pending" ? "Bundling app\u2026 this may take a few minutes" : "Preparing app\u2026";
10079
+ const runtimePreparingText = React51.useMemo(() => {
10080
+ const status = app == null ? void 0 : app.status;
10081
+ if (status === "ready" && bundle.bundleStatus === "pending") {
10082
+ return "Bundling app\u2026 this may take a few minutes";
10083
+ }
10084
+ switch (status) {
10085
+ case "creating":
10086
+ return "Creating your app\u2026 this may take a moment";
10087
+ case "forking":
10088
+ return "Forking your app\u2026";
10089
+ case "editing":
10090
+ return "Applying your latest changes\u2026";
10091
+ case "merging":
10092
+ return "Merging app updates\u2026";
10093
+ case "error":
10094
+ return "This app hit an error while preparing.";
10095
+ default:
10096
+ return "Preparing app\u2026";
10097
+ }
10098
+ }, [app == null ? void 0 : app.status, bundle.bundleStatus]);
10080
10099
  const chatShowTypingIndicator = React51.useMemo(() => {
10081
10100
  var _a2;
10082
10101
  if (agentProgress.hasLiveProgress) return false;
@@ -10143,9 +10162,9 @@ function ComergeStudioInner({
10143
10162
  setSwitchingRelatedAppId(targetAppId);
10144
10163
  try {
10145
10164
  const targetApp = await appsRepository.getById(targetAppId);
10146
- if (targetApp.status !== "ready") {
10147
- const reason = `target_not_ready:${targetApp.status}`;
10148
- log.warn("[related-apps] switch blocked: target app not ready", {
10165
+ if (targetApp.status === "archived") {
10166
+ const reason = "target_archived";
10167
+ log.warn("[related-apps] switch blocked: target app archived", {
10149
10168
  fromAppId: activeAppId,
10150
10169
  toAppId: targetAppId,
10151
10170
  status: targetApp.status