add bitacora page, self-hosted fonts/icons, review fixes for the install package

This commit is contained in:
Roberto Treviño Cervantes
2026-10-30 11:19:34 -06:00
parent 8c63ed83ac
commit f4d2a3e85f
39 changed files with 275 additions and 721 deletions
@@ -6,8 +6,9 @@ import { FileConnection } from './file-source';
import { PdfConnection } from './pdf-source';
/** Turns the files chosen for one source kind into workspace connections. */
export type ConnectionFactory = (files: File[]) => DataConnection[];
type ConnectionFactory = (files: File[]) => DataConnection[];
// Adding a file source on the client is one `DataConnection` subclass and one entry here.
const FACTORIES = new Map<SourceType, ConnectionFactory>([
['csv', (files) => files.map((file) => new FileConnection(file, 'csv'))],
['excel', (files) => files.map((file) => new FileConnection(file, 'excel'))],
@@ -18,11 +19,6 @@ const FACTORIES = new Map<SourceType, ConnectionFactory>([
['document', (files) => [new DocumentConnection(files)]],
]);
/** Adding a file source on the client is one `DataConnection` subclass and one call here. */
export function registerConnectionFactory(kind: SourceType, factory: ConnectionFactory): void {
FACTORIES.set(kind, factory);
}
export function connectionsFor(kind: SourceType, files: File[]): DataConnection[] {
const factory = FACTORIES.get(kind);
return factory && files.length ? factory(files) : [];
+2 -8
View File
@@ -134,12 +134,7 @@ export class ImportFlow {
return !['loading', 'error', 'incomplete'].includes(this.status());
}
/**
* Belongs in the next load: complete and not already written. A loaded
* flow stays out of later batches (re-sending it would duplicate rows in
* tables without a natural key) until it's edited, since any edit clears
* its result.
*/
/** Complete and not yet written; editing a loaded flow clears its result and makes it pending again. */
get pendingLoad(): boolean {
return this.canSubmit && this.status() !== 'loaded';
}
@@ -162,7 +157,7 @@ export class ImportFlow {
);
}
// -- mapping edits (every one invalidates the last validation) -----------
// Every mapping edit invalidates the last validation.
map(source: string, field: string): void {
this.mapping.assign(source, field);
@@ -210,7 +205,6 @@ export class ImportFlow {
return Object.fromEntries(Object.entries(this._defaults()).filter(([, value]) => value.trim() !== ''));
}
// -- backend round trips ---------------------------------------------------
async toPayload(): Promise<ImportSourcePayload> {
const locator = await this.table.locator(this.target.key);
-1
View File
@@ -52,7 +52,6 @@ const SQL_DIALECT_LABELS: Record<string, string> = {
mariadb: 'MariaDB',
postgresql: 'PostgreSQL',
mssql: 'SQL Server',
oracle: 'Oracle',
sqlite: 'SQLite',
};