Skip to content

DT-133: Database relations improvements: inline enums and fetch related entities in details view#134

Merged
kigiri merged 6 commits into
masterfrom
133-database-relations-improvements-inline-enums-and-fetch-related-entities-in-details-view
May 15, 2026
Merged

DT-133: Database relations improvements: inline enums and fetch related entities in details view#134
kigiri merged 6 commits into
masterfrom
133-database-relations-improvements-inline-enums-and-fetch-related-entities-in-details-view

Conversation

@abdotop
Copy link
Copy Markdown
Member

@abdotop abdotop commented May 6, 2026

Enhance database relations by adding support for inline enums and fetching related entities in details view

@abdotop abdotop force-pushed the 133-database-relations-improvements-inline-enums-and-fetch-related-entities-in-details-view branch from 2b93ae9 to 7ae68c2 Compare May 10, 2026 11:25
@abdotop abdotop requested a review from kigiri May 11, 2026 09:14
Comment thread api/sql.ts
obj[col.name] = col
return obj
}, {} as Record<string, ColumnInfo>),
}))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Object.fromEntries(t.columns.map((col) => [col.name, col]))) as Record<string, ColumnInfo>

Comment thread web/pages/DeploymentPage.tsx Outdated
<tr
class='hover:bg-base-200/50 cursor-pointer transition-colors border-b border-base-200/50 last:border-b-0'
onClick={() =>
navigate({ params: { drawer: 'view-row', 'row-id': rowId, rt: null } })}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move the interaction to a click on the primary key

Comment thread web/pages/DeploymentPage.tsx Outdated
@@ -559,7 +665,7 @@ const TableContent = ({ rows }: { rows: AnyRecord[] }) => {
key={index}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use row.id here over index

@kigiri kigiri merged commit 9f81d22 into master May 15, 2026
2 checks passed
@kigiri kigiri deleted the 133-database-relations-improvements-inline-enums-and-fetch-related-entities-in-details-view branch May 15, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Database relations improvements: inline enums and fetch related entities in details view

2 participants