Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 3fddac5

Browse files
merge: #3465
3465: feat(web,sdf): Debug component id and schema variant id on UI r=vbustamante a=vbustamante <img width="404" alt="image" src="https://github.com/systeminit/si/assets/6564471/38179a3d-d6c1-42eb-9866-7b3f86d5be47"> Co-authored-by: Victor Bustamante <victor@systeminit.com>
2 parents 3fc65d7 + a7e12f3 commit 3fddac5

3 files changed

Lines changed: 185 additions & 193 deletions

File tree

app/web/src/components/ComponentDebugDetails.vue

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,78 +12,78 @@
1212
<div class="border border-neutral-500 m-xs">
1313
<!-- Component -->
1414
<Collapsible
15-
label="Component"
1615
defaultOpen
17-
textSize="lg"
1816
extraBorderAtBottomOfContent
17+
label="Component"
18+
textSize="lg"
1919
>
2020
<dl class="border-l-2 p-xs flex flex-col gap-xs">
21-
<DebugViewItem title="Id" :data="componentId" />
21+
<DebugViewItem :data="componentId" title="Id" />
2222
<DebugViewItem
23-
title="Variant Id"
2423
:data="debugData.schemaVariantId"
24+
title="Variant Id"
2525
/>
2626
</dl>
2727
</Collapsible>
2828

2929
<!-- Attributes -->
3030
<Collapsible
31-
label="Attributes"
3231
:defaultOpen="false"
3332
contentAs="ul"
33+
label="Attributes - Not Reimplemented"
3434
textSize="lg"
3535
>
3636
<Collapsible
3737
v-for="attribute in debugData.attributes"
3838
:key="attribute.path"
39-
:label="attribute.path"
4039
:defaultOpen="false"
40+
:label="attribute.path"
4141
as="li"
42-
xPadding="double"
4342
contentClasses="px-sm"
4443
extraBorderAtBottomOfContent
44+
xPadding="double"
4545
>
4646
<AttributeDebugView :data="attribute.debugData" />
4747
</Collapsible>
4848
</Collapsible>
4949

5050
<!-- Input Sockets -->
5151
<Collapsible
52-
label="Input Sockets"
5352
:defaultOpen="false"
5453
contentAs="ul"
54+
label="Input Sockets - Not Reimplemented"
5555
textSize="lg"
5656
>
5757
<Collapsible
5858
v-for="attribute in debugData.inputSockets"
5959
:key="attribute.name"
60-
xPadding="double"
61-
contentClasses="px-sm"
62-
extraBorderAtBottomOfContent
63-
:label="attribute.name"
6460
:defaultOpen="false"
61+
:label="attribute.name"
6562
as="li"
63+
contentClasses="px-sm"
64+
extraBorderAtBottomOfContent
65+
xPadding="double"
6666
>
6767
<AttributeDebugView :data="attribute.debugData" />
6868
</Collapsible>
6969
</Collapsible>
7070

7171
<!-- Output Sockets -->
7272
<Collapsible
73-
label="Output Sockets"
7473
:defaultOpen="false"
7574
contentAs="ul"
75+
label="Output Sockets - Not Reimplemented"
7676
textSize="lg"
7777
>
7878
<Collapsible
7979
v-for="attribute in debugData.outputSockets"
8080
:key="attribute.name"
81-
xPadding="double"
82-
contentClasses="px-sm"
83-
extraBorderAtBottomOfContent
84-
:label="attribute.name"
8581
:defaultOpen="false"
82+
:label="attribute.name"
8683
as="li"
84+
contentClasses="px-sm"
85+
extraBorderAtBottomOfContent
86+
xPadding="double"
8787
>
8888
<AttributeDebugView :data="attribute.debugData" />
8989
</Collapsible>
@@ -93,7 +93,7 @@
9393
</div>
9494
</template>
9595

96-
<script setup lang="ts">
96+
<script lang="ts" setup>
9797
import {
9898
Collapsible,
9999
ErrorMessage,

lib/sdf-server/src/server/service/component.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub mod list_qualifications;
3131
// pub mod list_resources;
3232
// pub mod refresh;
3333
// pub mod resource_domain_diff;
34+
pub mod debug;
3435
pub mod get_code;
3536
pub mod set_type;
3637

@@ -173,8 +174,8 @@ pub fn routes() -> Router<AppState> {
173174
post(delete_property_editor_value::delete_property_editor_value),
174175
)
175176
.route("/set_type", post(set_type::set_type))
176-
// .route("/refresh", post(refresh::refresh))
177-
// .route("/resource_domain_diff", get(resource_domain_diff::get_diff))
178-
// .route("/debug", get(debug::debug_component))
177+
// .route("/refresh", post(refresh::refresh))
178+
// .route("/resource_domain_diff", get(resource_domain_diff::get_diff))
179+
.route("/debug", get(debug::debug_component))
179180
// .route("/json", get(json::json))
180181
}

0 commit comments

Comments
 (0)