refactor(environment): rename urls payload to data
- replace hardcoded URL keys with a generic key-value data map - align backend DTOs, MCP schemas, and service import/export mapping - update environment UI forms to edit JSON data instead of fixed fields
This commit is contained in:
1 parent
b45f95d8cf
commit
fd515ee459
15 files changed
+141
-143
No files matched your search
@@ -105,14 +105,14 @@ export function EnvironmentDetailPage() {
|
||||
</Card>
|
||||
|
||||
<div className={styles.stepsSection}>
|
||||
<h2 className={styles.sectionHeading}>{t('environments.section_urls')}</h2>
|
||||
<h2 className={styles.sectionHeading}>{t('environments.section_data')}</h2>
|
||||
<Card>
|
||||
{Object.entries(env.urls).filter(([, v]) => v).length === 0 ? (
|
||||
<p className={styles.muted}>{t('environments.no_urls')}</p>
|
||||
{Object.entries(env.data).filter(([, v]) => v).length === 0 ? (
|
||||
<p className={styles.muted}>{t('environments.no_data')}</p>
|
||||
) : (
|
||||
<DescriptionList
|
||||
layout="grid"
|
||||
items={Object.entries(env.urls)
|
||||
items={Object.entries(env.data)
|
||||
.filter(([, v]) => v)
|
||||
.map(([key, value]) => ({
|
||||
term: key,
|
||||
|
||||
Reference in new issue
Block a user