fix(7728): trigger chips reuse the shared rule chip, and the export test pins rule_triggers
CI & Build / Python lint (push) Successful in 1s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Successful in 1m59s
CI & Build / integration (push) Successful in 2m8s
CI & Build / Build & push image (push) Successful in 38s
CI & Build / Python lint (push) Successful in 1s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Successful in 1m59s
CI & Build / integration (push) Successful in 2m8s
CI & Build / Build & push image (push) Successful in 38s
The editor styled its trigger list through `.trigger-list .rule-chip`, which re-spells the shared chip the guard keeps in one stylesheet; the row now adds its own `.trigger-chip` for layout. The full-export test now asserts the v29 rule_triggers section is present. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -448,7 +448,7 @@ watch(() => props.ruleId, load);
|
|||||||
at every edit.
|
at every edit.
|
||||||
</p>
|
</p>
|
||||||
<ul v-if="triggers.length" class="trigger-list">
|
<ul v-if="triggers.length" class="trigger-list">
|
||||||
<li v-for="(t, i) in triggers" :key="`${t.kind}:${t.pattern}:${t.moment ?? ''}`" class="rule-chip">
|
<li v-for="(t, i) in triggers" :key="`${t.kind}:${t.pattern}:${t.moment ?? ''}`" class="rule-chip trigger-chip">
|
||||||
<span class="trigger-kind">{{ triggerLabel(t) }}</span>
|
<span class="trigger-kind">{{ triggerLabel(t) }}</span>
|
||||||
<code>{{ t.pattern }}</code>
|
<code>{{ t.pattern }}</code>
|
||||||
<span v-if="t.moment" class="trigger-at">at <code>{{ t.moment }}</code></span>
|
<span v-if="t.moment" class="trigger-at">at <code>{{ t.moment }}</code></span>
|
||||||
@@ -665,7 +665,7 @@ legend { padding: 0 0.35rem; font-size: 0.8rem; color: var(--fs-text-tertiary);
|
|||||||
.procedure-add input { margin-top: 0; }
|
.procedure-add input { margin-top: 0; }
|
||||||
.procedure-add .btn-sm { flex: none; }
|
.procedure-add .btn-sm { flex: none; }
|
||||||
.trigger-list { list-style: none; padding: 0; margin: 0 0 var(--fs-space-2); display: flex; flex-wrap: wrap; gap: var(--fs-space-2); }
|
.trigger-list { list-style: none; padding: 0; margin: 0 0 var(--fs-space-2); display: flex; flex-wrap: wrap; gap: var(--fs-space-2); }
|
||||||
.trigger-list .rule-chip { display: inline-flex; align-items: center; gap: var(--fs-space-1); }
|
.trigger-chip { display: inline-flex; align-items: center; gap: var(--fs-space-1); }
|
||||||
.trigger-kind, .trigger-at { color: var(--fs-text-secondary); font-size: var(--fs-size-tiny); }
|
.trigger-kind, .trigger-at { color: var(--fs-text-secondary); font-size: var(--fs-size-tiny); }
|
||||||
.trigger-add { display: flex; flex-wrap: wrap; gap: var(--fs-space-2); align-items: center; margin-top: var(--fs-space-2); }
|
.trigger-add { display: flex; flex-wrap: wrap; gap: var(--fs-space-2); align-items: center; margin-top: var(--fs-space-2); }
|
||||||
.trigger-add input { flex: 1 1 14rem; margin-top: 0; }
|
.trigger-add input { flex: 1 1 14rem; margin-top: 0; }
|
||||||
|
|||||||
@@ -588,6 +588,8 @@ async def test_export_full_backup_contains_every_declared_section():
|
|||||||
"system_usage_events",
|
"system_usage_events",
|
||||||
# v23: proposals and judgments about a rule's moments.
|
# v23: proposals and judgments about a rule's moments.
|
||||||
"rule_moment_judgments",
|
"rule_moment_judgments",
|
||||||
|
# v29: the acts that trigger a rule.
|
||||||
|
"rule_triggers",
|
||||||
# v25: family canon.
|
# v25: family canon.
|
||||||
"platforms", "project_platforms", "family_ideas",
|
"platforms", "project_platforms", "family_ideas",
|
||||||
"family_idea_platforms", "family_idea_references",
|
"family_idea_platforms", "family_idea_references",
|
||||||
|
|||||||
Reference in New Issue
Block a user