Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api/internal/handlers/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ func createHandler(reg *kube.Registry, gvr schema.GroupVersionResource, auditor
stampOwner(obj, req)
stripRedactedConfig(obj)
}
// spec.origin is the operator's proof that a BackupSchedule generated
// the Backup; retention prunes by it. Panel users only create manual
// Backups, so a forged origin is dropped rather than trusted.
if gvr.Resource == "backups" {
unstructured.RemoveNestedField(obj.Object, "spec", "origin")
Comment thread
ValgulNecron marked this conversation as resolved.
Resolved
}
var created *unstructured.Unstructured
if cluster(gvr) {
created, err = k.Dynamic.Resource(gvr).Create(req.Context(), obj, metav1.CreateOptions{})
Expand Down
35 changes: 35 additions & 0 deletions api/internal/handlers/resources_update_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package handlers

import (
"context"
"net/http"
"strings"
"testing"
Expand All @@ -9,6 +10,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/types"

"github.com/GameplanePanel/gameplane/api/internal/kube"
)

func templateObj(name string, labels map[string]string) *unstructured.Unstructured {
Expand Down Expand Up @@ -264,3 +267,35 @@ func TestResources_Update_TunnelProviderSwitch_MissingSecretNotAnError(t *testin
t.Fatal("prune path must not create a tunnel-auth secret that didn't exist")
}
}

// spec.origin marks a Backup as generated by a BackupSchedule, and retention
// prunes by it (#960). A Backup created through the panel is always manual,
// so a client-supplied origin must never reach the cluster.
func TestResources_Create_BackupDropsOrigin(t *testing.T) {
k := fakeKubeClient()
r := mountResourcesRouter(k)
body := map[string]any{
"apiVersion": "gameplane.local/v1alpha1",
"kind": "Backup",
"metadata": map[string]any{"name": "manual-1"},
"spec": map[string]any{
"serverRef": map[string]any{"name": "alpha"},
"origin": map[string]any{"scheduleName": "alpha-auto", "scheduleUID": "u1", "serverUID": "u2"},
},
}
rr := do(t, r, "POST", "/backups", body)
if rr.Code != http.StatusCreated {
t.Fatalf("create backup: got %d %s, want 201", rr.Code, rr.Body)
}
got, err := k.Dynamic.Resource(kube.GVRs["backups"]).Namespace("gameplane-games").
Get(context.Background(), "manual-1", metav1.GetOptions{})
if err != nil {
t.Fatalf("get created backup: %v", err)
}
if _, found, _ := unstructured.NestedFieldNoCopy(got.Object, "spec", "origin"); found {
t.Error("spec.origin reached the cluster, want it dropped")
}
if name, _, _ := unstructured.NestedString(got.Object, "spec", "serverRef", "name"); name != "alpha" {
t.Errorf("spec.serverRef.name = %q, want the rest of the spec kept", name)
}
}
2 changes: 1 addition & 1 deletion api/specs.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ The HTTP server listens on `:8000` (configurable) with these route groups. Prome
- `/servers/{name}:capture-file` — GET: download completed PCAPNG file from the capture sidecar; query param `id={captureId}` (proxied to sidecar over mTLS; 409 if still running)
- `/templates` — GET, POST: list and create GameTemplate CRDs
- `/templates/{name}` — GET, PUT, DELETE: manage GameTemplate CRDs (cluster-scoped)
- `/backups` — GET, POST: list and create Backup CRDs
- `/backups` — GET, POST: list and create Backup CRDs. POST drops any client-supplied `spec.origin`: only the operator's BackupSchedule controller records a Backup's provenance, which retention prunes by (#960).
- `/backups/{name}` — GET, PUT, DELETE: manage Backup CRDs (namespaced, cluster-dispatch)
- `/schedules` — GET, POST: list and create BackupSchedule CRDs
- `/schedules/{name}` — GET, PUT, DELETE: manage BackupSchedule CRDs (namespaced, cluster-dispatch). DELETE accepts the optional query parameters `expectedUID` and `expectedResourceVersion` together. Kubernetes checks both against the live schedule and returns 409 if either changed.
Expand Down
Binary file modified assets/design-export/fig/1-46380.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46381.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46382.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46383.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46384.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46385.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46387.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46388.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46390.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46391.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46392.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46393.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46394.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46395.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46396.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46397.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1-46398.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1006926387-2294.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1006926387-2310.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1041846705-1.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1041846705-38.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1163467012-1553.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1163467012-2214.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1163467012-2492.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1163467012-259.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1163467012-2680.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1163467012-2868.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1163467012-3056.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1163467012-3228.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1163467012-906.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-1258.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-130.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-1722.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-2112.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-2492.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-2877.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-3217.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-3559.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-3890.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-4001.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-4260.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-470.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1274632774-907.fig
Binary file not shown.
Binary file modified assets/design-export/fig/1494270493-26.fig
Binary file not shown.
Binary file modified assets/design-export/fig/2044649516-1099.fig
Binary file not shown.
Binary file modified assets/design-export/fig/2044649516-13.fig
Binary file not shown.
Binary file modified assets/design-export/fig/2044649516-1687.fig
Binary file not shown.
Binary file modified assets/design-export/fig/2044649516-2282.fig
Binary file not shown.
Binary file modified assets/design-export/fig/2044649516-2862.fig
Binary file not shown.
Binary file modified assets/design-export/fig/2044649516-2982.fig
Binary file not shown.
Binary file modified assets/design-export/fig/2044649516-579.fig
Binary file not shown.
Binary file modified assets/design-export/fig/46479436-2.fig
Binary file not shown.
Binary file modified assets/design-export/fig/901437436-1.fig
Binary file not shown.
Binary file modified assets/design-export/fig/901437436-1393.fig
Binary file not shown.
Binary file modified assets/design-export/fig/901437436-1857.fig
Binary file not shown.
Binary file modified assets/design-export/fig/901437436-2321.fig
Binary file not shown.
Binary file modified assets/design-export/fig/901437436-2785.fig
Binary file not shown.
Binary file modified assets/design-export/fig/901437436-3249.fig
Binary file not shown.
Binary file modified assets/design-export/fig/901437436-3713.fig
Binary file not shown.
Binary file modified assets/design-export/fig/901437436-465.fig
Binary file not shown.
Binary file modified assets/design-export/fig/901437436-929.fig
Binary file not shown.
Binary file modified assets/design-export/fig/A8vGwM.fig
Binary file not shown.
Binary file modified assets/design-export/fig/B57dG.fig
Binary file not shown.
Binary file modified assets/design-export/fig/Bbnga.fig
Binary file not shown.
Binary file modified assets/design-export/fig/BdmAW.fig
Binary file not shown.
Binary file modified assets/design-export/fig/Be7ZW.fig
Binary file not shown.
Binary file modified assets/design-export/fig/BguST.fig
Binary file not shown.
Binary file modified assets/design-export/fig/Bq2Yg.fig
Binary file not shown.
Binary file modified assets/design-export/fig/C2LQE4.fig
Binary file not shown.
Binary file modified assets/design-export/fig/C5Aoe.fig
Binary file not shown.
Binary file modified assets/design-export/fig/C9bR6.fig
Binary file not shown.
Binary file modified assets/design-export/fig/Cb3eC.fig
Binary file not shown.
Binary file modified assets/design-export/fig/D9QYZ.fig
Binary file not shown.
Binary file modified assets/design-export/fig/DBQyF.fig
Binary file not shown.
Binary file modified assets/design-export/fig/DMnEi.fig
Binary file not shown.
Binary file modified assets/design-export/fig/DPrYX.fig
Binary file not shown.
Binary file modified assets/design-export/fig/DWztv.fig
Binary file not shown.
Binary file modified assets/design-export/fig/Dpb9f.fig
Binary file not shown.
Binary file modified assets/design-export/fig/DxKOh.fig
Binary file not shown.
Binary file modified assets/design-export/fig/E9EEv0.fig
Binary file not shown.
Binary file modified assets/design-export/fig/EKJyM.fig
Binary file not shown.
Binary file modified assets/design-export/fig/EWrn0.fig
Binary file not shown.
Binary file modified assets/design-export/fig/EcoGD.fig
Binary file not shown.
Binary file modified assets/design-export/fig/F9pUrx.fig
Binary file not shown.
Binary file modified assets/design-export/fig/FBiMN.fig
Binary file not shown.
Binary file modified assets/design-export/fig/FOVMf.fig
Binary file not shown.
Binary file modified assets/design-export/fig/GR1G9.fig
Binary file not shown.
Binary file modified assets/design-export/fig/GsofJ.fig
Binary file not shown.
Binary file modified assets/design-export/fig/HVhmb.fig
Binary file not shown.
Binary file modified assets/design-export/fig/Hy9r0.fig
Binary file not shown.
Binary file modified assets/design-export/fig/IBUqJ.fig
Binary file not shown.
Binary file modified assets/design-export/fig/IMSD5.fig
Binary file not shown.
Binary file modified assets/design-export/fig/IdbiB.fig
Binary file not shown.
Binary file modified assets/design-export/fig/IyMFM.fig
Binary file not shown.
Binary file modified assets/design-export/fig/IzuY2.fig
Binary file not shown.
Binary file modified assets/design-export/fig/J8GzM9.fig
Binary file not shown.
Binary file modified assets/design-export/fig/K5XinZ.fig
Binary file not shown.
Binary file modified assets/design-export/fig/KJdxg.fig
Binary file not shown.
Binary file modified assets/design-export/fig/KhYNc.fig
Binary file not shown.
Binary file modified assets/design-export/fig/LYPXU.fig
Binary file not shown.
Binary file modified assets/design-export/fig/M2sA4u.fig
Binary file not shown.
Binary file modified assets/design-export/fig/MaoHP.fig
Binary file not shown.
Binary file modified assets/design-export/fig/N2nTf.fig
Binary file not shown.
Binary file modified assets/design-export/fig/NKiqf.fig
Binary file not shown.
Binary file modified assets/design-export/fig/NLDDv.fig
Binary file not shown.
Binary file modified assets/design-export/fig/NLu2I.fig
Binary file not shown.
Binary file modified assets/design-export/fig/Ne5TA.fig
Binary file not shown.
Binary file modified assets/design-export/fig/NqaaU.fig
Binary file not shown.
Binary file modified assets/design-export/fig/O08uaD.fig
Binary file not shown.
Binary file modified assets/design-export/fig/O5kaV.fig
Binary file not shown.
Binary file modified assets/design-export/fig/OC804.fig
Binary file not shown.
Binary file modified assets/design-export/fig/OecJ5.fig
Binary file not shown.
Binary file modified assets/design-export/fig/QFEg9.fig
Binary file not shown.
Binary file modified assets/design-export/fig/QQtUD.fig
Binary file not shown.
Binary file modified assets/design-export/fig/QgW58.fig
Binary file not shown.
Binary file modified assets/design-export/fig/QpEvu.fig
Binary file not shown.
Binary file modified assets/design-export/fig/RC3Kf.fig
Binary file not shown.
Binary file modified assets/design-export/fig/RS0KZ.fig
Binary file not shown.
Binary file modified assets/design-export/fig/RodrS.fig
Binary file not shown.
Binary file modified assets/design-export/fig/SUcad.fig
Binary file not shown.
Binary file modified assets/design-export/fig/SUtGZ.fig
Binary file not shown.
Binary file modified assets/design-export/fig/SeizD.fig
Binary file not shown.
Binary file modified assets/design-export/fig/T1wkiT.fig
Binary file not shown.
Binary file modified assets/design-export/fig/T70dJ.fig
Binary file not shown.
Binary file modified assets/design-export/fig/TBvTC.fig
Binary file not shown.
Binary file modified assets/design-export/fig/TE2jI.fig
Binary file not shown.
Binary file modified assets/design-export/fig/U9xSg.fig
Binary file not shown.
Binary file modified assets/design-export/fig/UCNBm.fig
Binary file not shown.
Binary file modified assets/design-export/fig/UdnBT.fig
Binary file not shown.
Binary file modified assets/design-export/fig/Uzzje.fig
Binary file not shown.
Binary file modified assets/design-export/fig/VM7ro.fig
Binary file not shown.
Binary file modified assets/design-export/fig/VctzT.fig
Binary file not shown.
Binary file modified assets/design-export/fig/WZdnw.fig
Binary file not shown.
Binary file modified assets/design-export/fig/Wj0V4.fig
Binary file not shown.
Binary file modified assets/design-export/fig/WrmU5.fig
Binary file not shown.
Binary file modified assets/design-export/fig/X405l.fig
Binary file not shown.
Binary file modified assets/design-export/fig/XR0f9.fig
Binary file not shown.
Binary file modified assets/design-export/fig/YN8cE.fig
Binary file not shown.
Binary file modified assets/design-export/fig/YPKbV.fig
Binary file not shown.
Binary file modified assets/design-export/fig/Z0oyh.fig
Binary file not shown.
Binary file modified assets/design-export/fig/ZU1BG.fig
Binary file not shown.
Binary file modified assets/design-export/fig/ZUAq1.fig
Binary file not shown.
Binary file modified assets/design-export/fig/ZlLf0.fig
Binary file not shown.
Binary file modified assets/design-export/fig/a7o9C.fig
Binary file not shown.
Binary file modified assets/design-export/fig/aMU7O.fig
Binary file not shown.
Binary file modified assets/design-export/fig/akr4I.fig
Binary file not shown.
Binary file modified assets/design-export/fig/atqRh.fig
Binary file not shown.
Binary file modified assets/design-export/fig/b4eaUf.fig
Binary file not shown.
Binary file modified assets/design-export/fig/bYDHC.fig
Binary file not shown.
Binary file modified assets/design-export/fig/cDiNb.fig
Binary file not shown.
Binary file modified assets/design-export/fig/dBILX.fig
Binary file not shown.
Binary file modified assets/design-export/fig/dQV9N.fig
Binary file not shown.
Binary file modified assets/design-export/fig/dhPtX.fig
Binary file not shown.
Binary file modified assets/design-export/fig/dxdEi.fig
Binary file not shown.
Binary file modified assets/design-export/fig/e9FnC.fig
Binary file not shown.
Binary file modified assets/design-export/fig/e9lV4.fig
Binary file not shown.
Binary file modified assets/design-export/fig/eGbsg.fig
Binary file not shown.
Binary file modified assets/design-export/fig/epZO2.fig
Binary file not shown.
Binary file modified assets/design-export/fig/fbBqA.fig
Binary file not shown.
Binary file modified assets/design-export/fig/g5mEpx.fig
Binary file not shown.
Binary file modified assets/design-export/fig/gWqMD.fig
Binary file not shown.
Binary file modified assets/design-export/fig/gX7um.fig
Binary file not shown.
Binary file modified assets/design-export/fig/hlwx3.fig
Binary file not shown.
Binary file modified assets/design-export/fig/hmPL7.fig
Binary file not shown.
Binary file modified assets/design-export/fig/i4L0M.fig
Binary file not shown.
Binary file modified assets/design-export/fig/iLm38.fig
Binary file not shown.
Binary file modified assets/design-export/fig/iYUWc.fig
Binary file not shown.
Binary file modified assets/design-export/fig/j88bl0.fig
Binary file not shown.
Binary file modified assets/design-export/fig/jXykV.fig
Binary file not shown.
Binary file modified assets/design-export/fig/l64bd.fig
Binary file not shown.
Binary file modified assets/design-export/fig/l7TRz9.fig
Binary file not shown.
Binary file modified assets/design-export/fig/lCTci.fig
Binary file not shown.
Binary file modified assets/design-export/fig/lWvcv.fig
Binary file not shown.
Binary file modified assets/design-export/fig/lhKzN.fig
Binary file not shown.
Binary file modified assets/design-export/fig/m5kOm4.fig
Binary file not shown.
Binary file modified assets/design-export/fig/mrF6f.fig
Binary file not shown.
Binary file modified assets/design-export/fig/n2qdi.fig
Binary file not shown.
Binary file modified assets/design-export/fig/n6Xlo.fig
Binary file not shown.
Binary file modified assets/design-export/fig/nGJE1.fig
Binary file not shown.
Binary file modified assets/design-export/fig/nNGDX.fig
Binary file not shown.
Binary file modified assets/design-export/fig/o1uEP.fig
Binary file not shown.
Binary file modified assets/design-export/fig/o4LH8W.fig
Binary file not shown.
Binary file modified assets/design-export/fig/oMuyw.fig
Binary file not shown.
Binary file modified assets/design-export/fig/oPF1n.fig
Binary file not shown.
Binary file modified assets/design-export/fig/oyoTs.fig
Binary file not shown.
Binary file modified assets/design-export/fig/p8QSPq.fig
Binary file not shown.
Binary file modified assets/design-export/fig/pnAbF.fig
Binary file not shown.
Binary file modified assets/design-export/fig/pssCT.fig
Binary file not shown.
Binary file modified assets/design-export/fig/pszxE.fig
Binary file not shown.
Binary file modified assets/design-export/fig/q31B6w.fig
Binary file not shown.
Binary file modified assets/design-export/fig/qFLfB.fig
Binary file not shown.
Binary file modified assets/design-export/fig/r0heh.fig
Binary file not shown.
Binary file modified assets/design-export/fig/r139UP.fig
Binary file not shown.
Binary file modified assets/design-export/fig/rJt1I.fig
Binary file not shown.
Binary file modified assets/design-export/fig/sSISK.fig
Binary file not shown.
Binary file modified assets/design-export/fig/t3IY3u.fig
Binary file not shown.
Binary file modified assets/design-export/fig/t56aLu.fig
Binary file not shown.
Binary file modified assets/design-export/fig/tSOeI.fig
Binary file not shown.
Binary file modified assets/design-export/fig/tooKB.fig
Binary file not shown.
Binary file modified assets/design-export/fig/tr6cE.fig
Binary file not shown.
Binary file modified assets/design-export/fig/uCA23.fig
Binary file not shown.
Binary file modified assets/design-export/fig/uMiwd.fig
Binary file not shown.
Binary file modified assets/design-export/fig/uoxQW.fig
Binary file not shown.
Binary file modified assets/design-export/fig/w34N9.fig
Binary file not shown.
Binary file modified assets/design-export/fig/wqnM9.fig
Binary file not shown.
Binary file modified assets/design-export/fig/wxINm.fig
Binary file not shown.
Binary file modified assets/design-export/fig/xCJlu.fig
Binary file not shown.
Binary file modified assets/design-export/fig/xvlB6.fig
Binary file not shown.
Binary file modified assets/design-export/fig/y3YcQ.fig
Binary file not shown.
Binary file modified assets/design-export/fig/yrxK2.fig
Binary file not shown.
Binary file modified assets/design-export/fig/zFiOW.fig
Binary file not shown.
Binary file modified assets/design-export/fig/zM0VF.fig
Binary file not shown.
Binary file modified assets/design-export/fig/zj5a3.fig
Binary file not shown.
Binary file modified assets/design-export/fig/zqzr4.fig
Binary file not shown.
30 changes: 15 additions & 15 deletions assets/design-export/json/1006926387-2294.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"children": [
{
"id": "0:47945",
"id": "0:47947",
"name": "cdTitle",
"type": "TEXT",
"x": 20,
Expand All @@ -43,7 +43,7 @@
"variables": {"fontFamily": "typography/font-sans", "fills/0/color": "foreground/foreground"}
},
{
"id": "0:47946",
"id": "0:47948",
"name": "cdDescWrap",
"type": "FRAME",
"x": 20,
Expand All @@ -63,7 +63,7 @@
"layoutAlignSelf": "STRETCH",
"children": [
{
"id": "0:47947",
"id": "0:47949",
"name": "cdDesc",
"type": "TEXT",
"x": 0,
Expand All @@ -82,7 +82,7 @@
]
},
{
"id": "0:47948",
"id": "0:47950",
"name": "cdPhrase",
"type": "FRAME",
"x": 20,
Expand All @@ -103,7 +103,7 @@
"layoutAlignSelf": "STRETCH",
"children": [
{
"id": "0:47949",
"id": "0:47951",
"name": "cdPhraseRow",
"type": "FRAME",
"x": 0,
Expand All @@ -122,7 +122,7 @@
},
"children": [
{
"id": "0:47950",
"id": "0:47952",
"name": "cdPhraseType",
"type": "TEXT",
"x": 0,
Expand All @@ -137,7 +137,7 @@
"variables": {"fontFamily": "typography/font-sans", "fills/0/color": "foreground/muted"}
},
{
"id": "0:47951",
"id": "0:47953",
"name": "cdPhraseValue",
"type": "TEXT",
"x": 30,
Expand All @@ -152,7 +152,7 @@
"variables": {"fontFamily": "typography/font-mono", "fills/0/color": "foreground/foreground"}
},
{
"id": "0:47952",
"id": "0:47954",
"name": "cdPhraseConfirm",
"type": "TEXT",
"x": 114,
Expand All @@ -169,7 +169,7 @@
]
},
{
"id": "0:47953",
"id": "0:47955",
"name": "cdInput",
"type": "FRAME",
"x": 0,
Expand Down Expand Up @@ -198,7 +198,7 @@
},
"children": [
{
"id": "0:47954",
"id": "0:47956",
"name": "cdInputValue",
"type": "TEXT",
"x": 12,
Expand All @@ -217,7 +217,7 @@
]
},
{
"id": "0:47955",
"id": "0:47957",
"name": "cdFooter",
"type": "FRAME",
"x": 20,
Expand All @@ -237,7 +237,7 @@
"layoutAlignSelf": "STRETCH",
"children": [
{
"id": "0:47956",
"id": "0:47958",
"name": "btnCancel",
"type": "FRAME",
"x": 222,
Expand All @@ -258,7 +258,7 @@
"variables": {"cornerRadius": "radius/md"},
"children": [
{
"id": "0:47957",
"id": "0:47959",
"name": "cdCancelLabel",
"type": "TEXT",
"x": 12,
Expand All @@ -275,7 +275,7 @@
]
},
{
"id": "0:47958",
"id": "0:47960",
"name": "btnConfirm",
"type": "FRAME",
"x": 300,
Expand All @@ -297,7 +297,7 @@
"variables": {"cornerRadius": "radius/md", "fills/0/color": "danger/danger"},
"children": [
{
"id": "0:47959",
"id": "0:47961",
"name": "cdConfirmLabel",
"type": "TEXT",
"x": 12,
Expand Down
30 changes: 15 additions & 15 deletions assets/design-export/json/1006926387-2310.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"children": [
{
"id": "0:47960",
"id": "0:47962",
"name": "cdTitle",
"type": "TEXT",
"x": 20,
Expand All @@ -43,7 +43,7 @@
"variables": {"fontFamily": "typography/font-sans", "fills/0/color": "foreground/foreground"}
},
{
"id": "0:47961",
"id": "0:47963",
"name": "cdDescWrap",
"type": "FRAME",
"x": 20,
Expand All @@ -63,7 +63,7 @@
"layoutAlignSelf": "STRETCH",
"children": [
{
"id": "0:47962",
"id": "0:47964",
"name": "cdDesc",
"type": "TEXT",
"x": 0,
Expand All @@ -82,7 +82,7 @@
]
},
{
"id": "0:47963",
"id": "0:47965",
"name": "cdPhrase",
"type": "FRAME",
"x": 20,
Expand All @@ -103,7 +103,7 @@
"layoutAlignSelf": "STRETCH",
"children": [
{
"id": "0:47964",
"id": "0:47966",
"name": "cdPhraseRow",
"type": "FRAME",
"x": 0,
Expand All @@ -122,7 +122,7 @@
},
"children": [
{
"id": "0:47965",
"id": "0:47967",
"name": "cdPhraseType",
"type": "TEXT",
"x": 0,
Expand All @@ -137,7 +137,7 @@
"variables": {"fontFamily": "typography/font-sans", "fills/0/color": "foreground/muted"}
},
{
"id": "0:47966",
"id": "0:47968",
"name": "cdPhraseValue",
"type": "TEXT",
"x": 30,
Expand All @@ -152,7 +152,7 @@
"variables": {"fontFamily": "typography/font-mono", "fills/0/color": "foreground/foreground"}
},
{
"id": "0:47967",
"id": "0:47969",
"name": "cdPhraseConfirm",
"type": "TEXT",
"x": 114,
Expand All @@ -169,7 +169,7 @@
]
},
{
"id": "0:47968",
"id": "0:47970",
"name": "cdInput",
"type": "FRAME",
"x": 0,
Expand Down Expand Up @@ -198,7 +198,7 @@
},
"children": [
{
"id": "0:47969",
"id": "0:47971",
"name": "cdInputValue",
"type": "TEXT",
"x": 12,
Expand All @@ -217,7 +217,7 @@
]
},
{
"id": "0:47970",
"id": "0:47972",
"name": "cdFooter",
"type": "FRAME",
"x": 20,
Expand All @@ -237,7 +237,7 @@
"layoutAlignSelf": "STRETCH",
"children": [
{
"id": "0:47971",
"id": "0:47973",
"name": "btnCancel",
"type": "FRAME",
"x": 249,
Expand All @@ -258,7 +258,7 @@
"variables": {"cornerRadius": "radius/md"},
"children": [
{
"id": "0:47972",
"id": "0:47974",
"name": "cdCancelLabel",
"type": "TEXT",
"x": 12,
Expand All @@ -275,7 +275,7 @@
]
},
{
"id": "0:47973",
"id": "0:47975",
"name": "btnConfirm",
"type": "FRAME",
"x": 327,
Expand All @@ -297,7 +297,7 @@
"variables": {"cornerRadius": "radius/md", "fills/0/color": "danger/danger"},
"children": [
{
"id": "0:47974",
"id": "0:47976",
"name": "cdConfirmLabel",
"type": "TEXT",
"x": 12,
Expand Down
27 changes: 18 additions & 9 deletions assets/design-export/json/DPrYX.json
Original file line number Diff line number Diff line change
Expand Up @@ -690,17 +690,26 @@
},
"children": [
{
"id": "1:2614",
"name": "Phase",
"type": "TEXT",
"type": "INSTANCE",
"x": 12,
"y": 15.5,
"width": 67,
"height": 17,
"fills": [{"type": "SOLID", "color": "#F5F3F7"}],
"text": "Succeeded",
"font": ["Geist", 400, 13],
"variables": {"fontFamily": "typography/font-sans", "fills/0/color": "foreground/foreground"}
"y": 14.5,
"width": 137,
"height": 19,
"component": "Chip/Soft/Warning/MD",
"componentId": "1:3907",
"fills": [{"type": "SOLID", "color": "#F7B750", "opacity": 0.15}],
"cornerRadius": 16,
"layout": {
"mode": "HORIZONTAL",
"gap": 2,
"padding": [2, 8, 2, 8],
"primary": "MIN",
"counter": "CENTER",
"sizing": ["HUG", "HUG"]
},
"variables": {"cornerRadius": "radius/2xl", "fills/0/color": "warning/soft"},
"texts": ["Awaiting snapshot ID"]
}
]
},
Expand Down
Loading
Loading