Skip to content

Commit ddc3616

Browse files
committed
temp [ci skip]
1 parent 266e313 commit ddc3616

4 files changed

Lines changed: 30 additions & 15 deletions

File tree

examples/sushi/models/latest_order.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ MODEL (
1212
SELECT id, customer_id, start_ts, end_ts, event_date
1313
FROM sushi.orders
1414
ORDER BY event_date DESC LIMIT 1
15+

examples/sushi/models/top_waiters.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ WHERE
2424
SELECT
2525
MAX(event_date)
2626
FROM sushi.waiter_revenue_by_day
27-
BY
27+
)
28+
ORDER BY
2829
revenue DESC
2930
LIMIT 10

vscode/react/src/App.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
@import 'tailwindcss';
2+
@config "../tailwind.config.cjs";
3+
4+
@tailwind base;
5+
@tailwind components;
6+
@tailwind utilities;
7+
18
.App {
29
text-align: center;
310
}
@@ -37,12 +44,6 @@
3744
}
3845
}
3946

40-
@import 'tailwindcss';
41-
@config "../tailwind.config.cjs";
42-
43-
@tailwind base;
44-
@tailwind components;
45-
@tailwind utilities;
4647

4748
@layer components {
4849
.scrollbar--horizontal::-webkit-scrollbar {

vscode/react/src/pages/lineage.tsx

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export function LineagePage() {
2424
// Implement your focus change logic here
2525
break
2626
default:
27-
console.error('Unhandled message type in lineage page:', payload.key)
27+
console.error(
28+
'Unhandled message type in lineage page:',
29+
payload.key,
30+
)
2831
}
2932
}
3033
}
@@ -58,11 +61,11 @@ function Lineage() {
5861
if (isLoadingModels || models === undefined) {
5962
return <div>Loading models...</div>
6063
}
61-
console.log("models", models)
64+
console.log('models', models)
6265
if (!Array.isArray(models)) {
6366
return <div>Error: Models data is not in the expected format</div>
6467
}
65-
console.log("models", models)
68+
console.log('models', models)
6669
const modelsRecord = models.reduce(
6770
(acc, model) => {
6871
acc[model.name] = model
@@ -117,17 +120,23 @@ export function LineageComponentFromWeb({
117120
handleError={handleError}
118121
models={models}
119122
showControls={false}
120-
> <UpdateLineageFocus>
123+
>
124+
{' '}
125+
<UpdateLineageFocus>
121126
<ModelLineage model={sqlmModel} />
122127
</UpdateLineageFocus>
123128
</LineageFlowProvider>
124129
</div>
125130
)
126131
}
127132

128-
export function UpdateLineageFocus({ children }: { children: React.ReactNode }) {
133+
export function UpdateLineageFocus({
134+
children,
135+
}: {
136+
children: React.ReactNode
137+
}) {
129138
const lineageFlow = useLineageFlow()
130-
139+
131140
React.useEffect(() => {
132141
const handleMessage = (event: MessageEvent) => {
133142
console.log('handleMessage in lineage page', event)
@@ -144,10 +153,13 @@ export function UpdateLineageFocus({ children }: { children: React.ReactNode })
144153
}, 1000)
145154
console.log('set main node', lineageFlow.mainNode)
146155
// Implement your focus change logic here
147-
// TODO NEED TO PASS THE FQN of the model not the path
156+
// TODO NEED TO PASS THE FQN of the model not the path
148157
break
149158
default:
150-
console.error('Unhandled message type in lineage page:', payload.key)
159+
console.error(
160+
'Unhandled message type in lineage page:',
161+
payload.key,
162+
)
151163
}
152164
}
153165
}

0 commit comments

Comments
 (0)