conversions web + put table definition

This commit is contained in:
Filipriec
2026-08-24 09:35:19 +02:00
parent 2e95201a71
commit 5d6f53c96e
25 changed files with 1542 additions and 96 deletions

View File

@@ -384,6 +384,12 @@ impl TableDefinitionPageState {
self.table_is_writable() && self.detail.as_ref().is_some_and(|detail| !detail.has_data)
}
/// How many columns the table already has, for the unified "Columns"
/// count the append panel shows alongside the create builder's own.
pub(crate) fn existing_column_count(&self) -> usize {
self.detail.as_ref().map_or(0, |detail| detail.columns.len())
}
pub(crate) fn column_is_selected_for_removal(&self, column_id: &i64) -> bool {
self.remove_column_ids.contains(column_id)
}