diff --git a/internal/api/swagger.yaml b/internal/api/swagger.yaml index fc8a2dc..df2f082 100644 --- a/internal/api/swagger.yaml +++ b/internal/api/swagger.yaml @@ -9,7 +9,7 @@ info: license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html - version: 1.19.2 + version: 1.19.3 externalDocs: description: Find out more about spec url: https://moonlogs.pages.dev diff --git a/web/src/features/insights-builder/model.ts b/web/src/features/insights-builder/model.ts index 1249d3c..9c07444 100644 --- a/web/src/features/insights-builder/model.ts +++ b/web/src/features/insights-builder/model.ts @@ -89,6 +89,12 @@ sample({ export const $insightLogs = createStore([]); +sample({ + clock: getLogsFx.pending, + fn: () => [], + target: $insightLogs, +}); + sample({ source: $intl, clock: getLogsFx.doneData, diff --git a/web/src/features/insights-builder/ui.ts b/web/src/features/insights-builder/ui.ts index 13c2461..c09ac48 100644 --- a/web/src/features/insights-builder/ui.ts +++ b/web/src/features/insights-builder/ui.ts @@ -181,6 +181,7 @@ const InsightLogsTable = () => { h("tbody", () => { list($insightLogs, ({ store: log, key: $idx }) => { const $classes = createStore(""); + $classes.watch(console.log); const touch = createEvent(); sample({ source: { schemas: $insightsSchemas, logs: $insightLogs, idx: $idx }, @@ -345,8 +346,4 @@ const logRowClasses = (schemas: InsightSchema[], logs: Log[], idx: number): stri const classes = colorClasses.concat(baseRowClasses); return classes.join(" "); - - // const finalClasses = colors.map((colors) => baseRowClasses.concat(colors).join(" ")); - - // return [finalClasses]; };