sqlmesh 0.185.1.dev1__py3-none-any.whl → 0.185.1.dev3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. sqlmesh/_version.py +2 -2
  2. sqlmesh/core/context.py +5 -2
  3. sqlmesh/integrations/github/cicd/command.py +11 -7
  4. {sqlmesh-0.185.1.dev1.dist-info → sqlmesh-0.185.1.dev3.dist-info}/METADATA +1 -1
  5. {sqlmesh-0.185.1.dev1.dist-info → sqlmesh-0.185.1.dev3.dist-info}/RECORD +52 -52
  6. web/client/dist/assets/{Audits-cGDtiiKB.js → Audits-Dcl7Y5yf.js} +1 -1
  7. web/client/dist/assets/{Banner-DHp1YP1u.js → Banner-DG7PdTuX.js} +1 -1
  8. web/client/dist/assets/{ChevronDownIcon-Sazvo9i-.js → ChevronDownIcon-nX-b0oJg.js} +1 -1
  9. web/client/dist/assets/{ChevronRightIcon-84R-3q8m.js → ChevronRightIcon-DlYx_Tkq.js} +1 -1
  10. web/client/dist/assets/{Content-B9yV2iEZ.js → Content-ByNNFCNq.js} +1 -1
  11. web/client/dist/assets/{Content-C65MWvF0.js → Content-Xx6vpXsx.js} +1 -1
  12. web/client/dist/assets/{Data-By25O4M5.js → Data-Clt99kac.js} +1 -1
  13. web/client/dist/assets/{DataCatalog-hSS21hR6.js → DataCatalog-BM0G-3ql.js} +1 -1
  14. web/client/dist/assets/{Editor-CUCC89Ij.js → Editor-B-X-dpzh.js} +1 -1
  15. web/client/dist/assets/{Editor-Bsxwi3aO.js → Editor-Dthvn0tJ.js} +1 -1
  16. web/client/dist/assets/{Errors-BOCVwZyl.js → Errors-BxtH1Ijw.js} +1 -1
  17. web/client/dist/assets/{FileExplorer-BZ8API0P.js → FileExplorer-Ct6AjiCz.js} +1 -1
  18. web/client/dist/assets/{Footer-CUwjtSu4.js → Footer-oOysi0Rj.js} +1 -1
  19. web/client/dist/assets/{Header-LsiS75Z7.js → Header-BgdWOSlW.js} +1 -1
  20. web/client/dist/assets/{Input-D0tI9yL5.js → Input-dVgdocrC.js} +1 -1
  21. web/client/dist/assets/Lineage-DxZry1e9.js +1 -0
  22. web/client/dist/assets/{ListboxShow-DF5PqZhj.js → ListboxShow-DE9VWrnX.js} +1 -1
  23. web/client/dist/assets/{ModelLineage-BHZN6cbe.js → ModelLineage-qjIPMnaE.js} +1 -1
  24. web/client/dist/assets/{Models-y5gl8Oaf.js → Models-Bdj4i9jf.js} +1 -1
  25. web/client/dist/assets/{Page-DbTpD-wK.js → Page-nRV3-lCQ.js} +1 -1
  26. web/client/dist/assets/{Plan-CiSxSXLS.js → Plan-DE_TjJxE.js} +1 -1
  27. web/client/dist/assets/{PlusCircleIcon-DJoyPo8S.js → PlusCircleIcon-MX372cgb.js} +1 -1
  28. web/client/dist/assets/{ReportErrors-CNXH4GuU.js → ReportErrors-CWlh9ZI6.js} +1 -1
  29. web/client/dist/assets/{Root-RYhutnyD.js → Root-DxOCwaxq.js} +1 -1
  30. web/client/dist/assets/{SearchList-iv5ny7Mb.js → SearchList-Bkn1Hq0k.js} +1 -1
  31. web/client/dist/assets/{SelectEnvironment-DSHK4OKG.js → SelectEnvironment-BwMCf7m1.js} +1 -1
  32. web/client/dist/assets/{SourceList-BXrKA-hR.js → SourceList-CfwYQ7a7.js} +1 -1
  33. web/client/dist/assets/{SourceListItem-BvVyXARN.js → SourceListItem-Dw_XLCwD.js} +1 -1
  34. web/client/dist/assets/{SplitPane-BCBwk2UE.js → SplitPane-Cy9J8wln.js} +1 -1
  35. web/client/dist/assets/{Tests-BOygb2O9.js → Tests-BInfdlGW.js} +1 -1
  36. web/client/dist/assets/{Welcome-saOWnjhW.js → Welcome-Cq7bKz0E.js} +1 -1
  37. web/client/dist/assets/context-DwZmsJ4J.js +68 -0
  38. web/client/dist/assets/{context-cGGhLbGj.js → context-eAMA5CGc.js} +1 -1
  39. web/client/dist/assets/{editor-yKXGVuvn.js → editor-BWylDs4F.js} +1 -1
  40. web/client/dist/assets/{file-CJ8A1f27.js → file-BxzTdZ94.js} +1 -1
  41. web/client/dist/assets/{floating-ui.react-dom-CfXRycK_.js → floating-ui.react-dom-CRENXhNN.js} +1 -1
  42. web/client/dist/assets/{help-aam8B-7S.js → help-BzfMEAUL.js} +1 -1
  43. web/client/dist/assets/{index-zO-UPMUq.js → index-5Y4x4i40.js} +1 -1
  44. web/client/dist/assets/{index-CQy7Tkrl.js → index-uNgE_frb.js} +1 -1
  45. web/client/dist/assets/{plan-CiAasU-P.js → plan-CHhLxN5c.js} +1 -1
  46. web/client/dist/assets/{popover-Ox7TJJ2-.js → popover-aPEvy0EQ.js} +1 -1
  47. web/client/dist/assets/{project-PqqAyMWE.js → project-xs0wjmu5.js} +1 -1
  48. web/client/dist/index.html +1 -1
  49. web/client/dist/assets/Lineage-DWpcQYIS.js +0 -1
  50. web/client/dist/assets/context-Cl_qdjcd.js +0 -73
  51. {sqlmesh-0.185.1.dev1.dist-info → sqlmesh-0.185.1.dev3.dist-info}/WHEEL +0 -0
  52. {sqlmesh-0.185.1.dev1.dist-info → sqlmesh-0.185.1.dev3.dist-info}/entry_points.txt +0 -0
  53. {sqlmesh-0.185.1.dev1.dist-info → sqlmesh-0.185.1.dev3.dist-info}/licenses/LICENSE +0 -0
  54. {sqlmesh-0.185.1.dev1.dist-info → sqlmesh-0.185.1.dev3.dist-info}/top_level.txt +0 -0
sqlmesh/_version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.185.1.dev1'
21
- __version_tuple__ = version_tuple = (0, 185, 1, 'dev1')
20
+ __version__ = version = '0.185.1.dev3'
21
+ __version_tuple__ = version_tuple = (0, 185, 1, 'dev3')
sqlmesh/core/context.py CHANGED
@@ -1269,8 +1269,11 @@ class GenericContext(BaseContext, t.Generic[C]):
1269
1269
  skip_linter=skip_linter,
1270
1270
  )
1271
1271
 
1272
- if no_auto_categorization:
1272
+ plan = plan_builder.build()
1273
+
1274
+ if no_auto_categorization or plan.uncategorized:
1273
1275
  # Prompts are required if the auto categorization is disabled
1276
+ # or if there are any uncategorized snapshots in the plan
1274
1277
  no_prompts = False
1275
1278
 
1276
1279
  self.console.plan(
@@ -1281,7 +1284,7 @@ class GenericContext(BaseContext, t.Generic[C]):
1281
1284
  no_prompts=no_prompts if no_prompts is not None else self.config.plan.no_prompts,
1282
1285
  )
1283
1286
 
1284
- return plan_builder.build()
1287
+ return plan
1285
1288
 
1286
1289
  @python_api_analytics
1287
1290
  def plan_builder(
@@ -55,7 +55,7 @@ def check_required_approvers(ctx: click.Context) -> None:
55
55
  """Checks if a required approver has provided approval on the PR."""
56
56
  if not _check_required_approvers(ctx.obj["github"]):
57
57
  raise CICDBotError(
58
- "Required approver has not approved the PR. See check status for more information."
58
+ "Required approver has not approved the PR. See Pull Requests Checks for more information."
59
59
  )
60
60
 
61
61
 
@@ -105,7 +105,7 @@ def _run_linter(controller: GithubController) -> bool:
105
105
  def run_tests(ctx: click.Context) -> None:
106
106
  """Runs the unit tests"""
107
107
  if not _run_tests(ctx.obj["github"]):
108
- raise CICDBotError("Failed to run tests. See check status for more information.")
108
+ raise CICDBotError("Failed to run tests. See Pull Requests Checks for more information.")
109
109
 
110
110
 
111
111
  def _update_pr_environment(controller: GithubController) -> bool:
@@ -132,7 +132,7 @@ def update_pr_environment(ctx: click.Context) -> None:
132
132
  """Creates or updates the PR environments"""
133
133
  if not _update_pr_environment(ctx.obj["github"]):
134
134
  raise CICDBotError(
135
- "Failed to update PR environment. See check status for more information."
135
+ "Failed to update PR environment. See Pull Requests Checks for more information."
136
136
  )
137
137
 
138
138
 
@@ -164,7 +164,7 @@ def gen_prod_plan(ctx: click.Context) -> None:
164
164
  controller.update_prod_plan_preview_check(status=GithubCheckStatus.IN_PROGRESS)
165
165
  if not _gen_prod_plan(controller):
166
166
  raise CICDBotError(
167
- "Failed to generate production plan. See check status for more information."
167
+ "Failed to generate production plan. See Pull Requests Checks for more information."
168
168
  )
169
169
 
170
170
 
@@ -203,7 +203,9 @@ def _deploy_production(controller: GithubController) -> bool:
203
203
  def deploy_production(ctx: click.Context) -> None:
204
204
  """Deploys the production environment"""
205
205
  if not _deploy_production(ctx.obj["github"]):
206
- raise CICDBotError("Failed to deploy to production. See check status for more information.")
206
+ raise CICDBotError(
207
+ "Failed to deploy to production. See Pull Requests Checks for more information."
208
+ )
207
209
 
208
210
 
209
211
  def _run_all(controller: GithubController) -> None:
@@ -256,7 +258,9 @@ def _run_all(controller: GithubController) -> None:
256
258
  skip_reason="Linter or Unit Test(s) failed so skipping deploying to production",
257
259
  )
258
260
 
259
- raise CICDBotError("Linter or Unit Test(s) failed. See check status for more information.")
261
+ raise CICDBotError(
262
+ "Linter or Unit Test(s) failed. See Pull Requests Checks for more information."
263
+ )
260
264
 
261
265
  pr_environment_updated = _update_pr_environment(controller)
262
266
  prod_plan_generated = False
@@ -295,7 +299,7 @@ def _run_all(controller: GithubController) -> None:
295
299
  or (has_required_approval and controller.pr_targets_prod_branch and not deployed_to_prod)
296
300
  ):
297
301
  raise CICDBotError(
298
- "A step of the run-all check failed. See check status for more information."
302
+ "A step of the run-all check failed. See Pull Requests Checks for more information."
299
303
  )
300
304
 
301
305
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlmesh
3
- Version: 0.185.1.dev1
3
+ Version: 0.185.1.dev3
4
4
  Summary: Next-generation data transformation framework
5
5
  Author-email: "TobikoData Inc." <engineering@tobikodata.com>
6
6
  License: Apache License
@@ -1,5 +1,5 @@
1
1
  sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
2
- sqlmesh/_version.py,sha256=gXxP-GhcffyBB1hso_HlH8AD8B610KUg5kweC1XFgNw,528
2
+ sqlmesh/_version.py,sha256=SrDJ32w6AVLeJkSraXKf7u8WgRzGext9JN19k2ZEw5k,528
3
3
  sqlmesh/magics.py,sha256=aeOyTdeNnyGzGtJXECDAbqJ8OAplrV4UAYl0I2hhtig,39670
4
4
  sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -13,7 +13,7 @@ sqlmesh/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  sqlmesh/core/_typing.py,sha256=e1f7xO2aZCy38M_3VoDy-XI3shyd99-IFctgIFSgXWM,497
14
14
  sqlmesh/core/console.py,sha256=ZAaGLOWBJGBxPzLV7KZZ9akPExgD5m5AboCM8O0Q0nY,150944
15
15
  sqlmesh/core/constants.py,sha256=oqt6zjepUhQoWlgapKn_HpG7Pu9mrFwepdX5caNfJUI,2499
16
- sqlmesh/core/context.py,sha256=r7wKGFx702NF06S0Y8AvkoMaeYjzDRcugArRwxT4LHU,114911
16
+ sqlmesh/core/context.py,sha256=1EFWFHQyTuKKpEasguZJmVZNth5IZCjdqSLgwDfeEgU,115024
17
17
  sqlmesh/core/context_diff.py,sha256=s9toP17d4tJfOpFH91LcjGK2CM64PVuB0MPkeFgF4hQ,20415
18
18
  sqlmesh/core/dialect.py,sha256=fPTV517IOS0nWMxYznNNQnXkQkFFrPOSKe8ghsQ0o8A,49759
19
19
  sqlmesh/core/environment.py,sha256=0TTQf4C4LXwf37fm-dfYv1qyG7vtZfQI5rizgm5g0j0,11442
@@ -152,7 +152,7 @@ sqlmesh/integrations/llm.py,sha256=URgp3JKr06HYv6hGlJ7DQ9m3QCc41xRWK23HzmGpbDI,1
152
152
  sqlmesh/integrations/slack.py,sha256=nxLxu5WztGbZH3JdqnzyPqmJUMfRdJ_49LQ7zR-u39Q,6801
153
153
  sqlmesh/integrations/github/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
154
154
  sqlmesh/integrations/github/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
155
- sqlmesh/integrations/github/cicd/command.py,sha256=E3G53jlLEgu1nCHpGW-P7zklIyp6wGWtkJQ-6xJHclI,11415
155
+ sqlmesh/integrations/github/cicd/command.py,sha256=3toifUNTXpYvvOVXb_BiOAgna8CNOQfFEyUTFuDyK10,11515
156
156
  sqlmesh/integrations/github/cicd/config.py,sha256=tRhMZaLf1p6AWXvi67n85Q-lptJNGt1Wk_Jr61ytpiM,2104
157
157
  sqlmesh/integrations/github/cicd/controller.py,sha256=EXFB_AHR_B4gTXMjX3CE6jZSvlENJ2BiI-Y7Wg6eGq4,41667
158
158
  sqlmesh/lsp/api.py,sha256=LJdECSaEZoPbu_Xl4KscVG-WLt7_g4dY-zKGO68dH14,2162
@@ -268,53 +268,53 @@ sqlmesh/utils/pydantic.py,sha256=-u69PDY-4FLR7ODNKBoN7PsPNmZ0wdhsJcCAG2P6vyY,110
268
268
  sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
269
269
  sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
270
270
  sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
271
- sqlmesh-0.185.1.dev1.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
271
+ sqlmesh-0.185.1.dev3.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
272
272
  web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
273
- web/client/dist/index.html,sha256=x9qfdHkVkXOwWRFRCZGaixiLj5e9tOQsCDRR92vW9QI,5472
274
- web/client/dist/assets/Audits-cGDtiiKB.js,sha256=jrS4x1nQ8Klx67744_LjNI2oBOI9XnnygDR-0wmlme8,1041
275
- web/client/dist/assets/Banner-DHp1YP1u.js,sha256=nIfSosLiU-8KEK0F4_J4a3PfC67kN66DhfuvjkrDt94,1549
276
- web/client/dist/assets/ChevronDownIcon-Sazvo9i-.js,sha256=W-Nzif_454TrrAjNDFoxCyjWzp5rmWgRQmpzXRrFCJI,553
277
- web/client/dist/assets/ChevronRightIcon-84R-3q8m.js,sha256=5AS8V5nPp5yS70ZaQBL5YP6v-F1PlRZ59c1ueWhtnl8,553
278
- web/client/dist/assets/Content-B9yV2iEZ.js,sha256=g92yu2wAz8RpfuA-aJkyG_P2iPYaYlNXZua0_ar7UMo,37525
279
- web/client/dist/assets/Content-C65MWvF0.js,sha256=uGny6bcllQADZK6XblUgcBz1phe9R7fArcrLRTft3dU,803
280
- web/client/dist/assets/Data-By25O4M5.js,sha256=nwKc0a0v8Wp8oqKTf3tVWIQVgQ5LR-hkBP0UDMV4K7s,984
281
- web/client/dist/assets/DataCatalog-hSS21hR6.js,sha256=cDtuuIxXCXDypgBv7sKrX820cb-RK_JTWEhQ1_AYTIs,122464
282
- web/client/dist/assets/Editor-Bsxwi3aO.js,sha256=fiWFUqXKUChiRVkzmZGeZjhvo8Jq8JT1ODBa0ujwmMM,1490
283
- web/client/dist/assets/Editor-CUCC89Ij.js,sha256=kViI4e2tnNzqHS18MaPPJlNeaLwNuXZnB_nkdz9qXQc,43614
284
- web/client/dist/assets/Errors-BOCVwZyl.js,sha256=Jl2p5_EAOB2ZRUDfXxtxOpjyUqJMr_2Xe8qiZnsI9OQ,1361
285
- web/client/dist/assets/FileExplorer-BZ8API0P.js,sha256=Rih59BRMk3UUSanhZ4LGltZm2rwmtAf9BMOpjDL7I1A,87619
286
- web/client/dist/assets/Footer-CUwjtSu4.js,sha256=gE4CSJPJCkEPgQ4gGlh9t1uneDO4tKNkBYAq22uyklg,700
287
- web/client/dist/assets/Header-LsiS75Z7.js,sha256=lxVgSCBgGh5INWSyj8iSaUp2JMT211041jQHgqzJnE8,11424
288
- web/client/dist/assets/Input-D0tI9yL5.js,sha256=On6KP4lBpnyCyxuniG0kxSBJ0I8tngM2Jqn3O5gxpoo,54762
289
- web/client/dist/assets/Lineage-DWpcQYIS.js,sha256=VSYGwVtu35y72R-ZjNXNC08K7BAoR_2cmlPajCU5nvw,1002
290
- web/client/dist/assets/ListboxShow-DF5PqZhj.js,sha256=4VfAd8iMG2_dVVuKZFzxiWBgU3riQ5TojRwQJBhPLjo,29911
291
- web/client/dist/assets/ModelLineage-BHZN6cbe.js,sha256=AlXxABeKaWS1QcSXhpn5NG7oOzH3Ul4Hh5qUrs4f3qk,15546
292
- web/client/dist/assets/Models-y5gl8Oaf.js,sha256=9nDJhBiW5nzJcJckeawijeZeBKiaBrzsWzKv_ZgLFpk,2194
293
- web/client/dist/assets/Page-DbTpD-wK.js,sha256=a7NzTNTAE_vrSB435ZlLZRrsJZyVHgDddHhesOOC6IU,589
294
- web/client/dist/assets/Plan-CiSxSXLS.js,sha256=pC0-ZFXrVjiCaV6ida_2LrSuz3oxQvmtkhWr85-dBuY,666
295
- web/client/dist/assets/PlusCircleIcon-DJoyPo8S.js,sha256=fg5oVqKyaV_groKRjBToqXqUdyxf4zlWXThgWissl70,11698
296
- web/client/dist/assets/ReportErrors-CNXH4GuU.js,sha256=5aOFNXE31BK3fuKoer-bIesdeQinIxnYylWWZaMNF-I,5419
297
- web/client/dist/assets/Root-RYhutnyD.js,sha256=cP2gV4lyEPLNiqgzdIh-Xj1akraMIMhj7oZB8vC50dA,42195
298
- web/client/dist/assets/SearchList-iv5ny7Mb.js,sha256=jvQDYP9sQfb-NKfwl8e4MGbOIr32VhrcVSOvvdkqQWA,291983
299
- web/client/dist/assets/SelectEnvironment-DSHK4OKG.js,sha256=2Gfhu8b-aIfCd05bMolL4MgdkMO2kUonvDiThjeYvWw,37637
300
- web/client/dist/assets/SourceList-BXrKA-hR.js,sha256=1dW3nftoAiEqHQ_CYpUdxB9Xn6qSWuV7-6jgpr0Ikvo,3205
301
- web/client/dist/assets/SourceListItem-BvVyXARN.js,sha256=MrPaRzEpKkSPnPacd_9ZI45RPrMSReiDMmGb5v020qg,1106
302
- web/client/dist/assets/SplitPane-BCBwk2UE.js,sha256=WJ4aVNh-qUVVUvnfxuvZVmAoWLUW_o30M06fEWR8Css,10439
303
- web/client/dist/assets/Tests-BOygb2O9.js,sha256=adXCrP8c-Vvdy-DKESTew9ey4qjxNFoXJHZ1a6DHsEo,1014
304
- web/client/dist/assets/Welcome-saOWnjhW.js,sha256=NgQpgRjf4NC5gXeXWGS556tEYyb2GIlaimHGatMviIA,354
273
+ web/client/dist/index.html,sha256=xQIU9G6dbuTnmbHZ61bSYbh0gYz9A2lb4BRwLlXL94Y,5472
274
+ web/client/dist/assets/Audits-Dcl7Y5yf.js,sha256=D2CfXzrdXFdD_-7c51tBJCKNwUY9yGeIpDEaRae7V8I,1041
275
+ web/client/dist/assets/Banner-DG7PdTuX.js,sha256=i-mQF6-dc-J4UGQhSlJW_9_gK7BKv-AhUSYUn1euuvM,1549
276
+ web/client/dist/assets/ChevronDownIcon-nX-b0oJg.js,sha256=rbRI27xNHIU02WlVmVkKBWfxAy74oACv6E8umiwiEIc,553
277
+ web/client/dist/assets/ChevronRightIcon-DlYx_Tkq.js,sha256=5JqhUWYZqktnp3Qzll2y-T0lPpajYvsXhzkN-KWnPKw,553
278
+ web/client/dist/assets/Content-ByNNFCNq.js,sha256=EZNZnAtHK5odP8C2ICMKvfDfIOteJzt9QitpqklkZIM,37525
279
+ web/client/dist/assets/Content-Xx6vpXsx.js,sha256=7M93mjVA1AiR90rB4Dcv1mcGg5jeaT9Padygyk4ZnnY,803
280
+ web/client/dist/assets/Data-Clt99kac.js,sha256=SczDRINZtA7To48NQl5GXNgNd2IfkZUnzBthf_-1iRs,984
281
+ web/client/dist/assets/DataCatalog-BM0G-3ql.js,sha256=z_szAveIAEVXc6O7Pd3SMiTqkRPR5YaKNcKXu2Nnd5k,122464
282
+ web/client/dist/assets/Editor-B-X-dpzh.js,sha256=8_pAY1L3wEhragDYkh-XCnzJ2iMAWZbsi5jABqsI1zw,43614
283
+ web/client/dist/assets/Editor-Dthvn0tJ.js,sha256=5Nnhc-DRcC-zInZgSau4zMfZiVEg6RfsHAip_NZmem0,1490
284
+ web/client/dist/assets/Errors-BxtH1Ijw.js,sha256=3l70gVKGgM_m5iipns8sadlxL5RxKjIJbyzE8Gp37Rk,1361
285
+ web/client/dist/assets/FileExplorer-Ct6AjiCz.js,sha256=AskT4ew0dBaiqA-9DRBjtftYZ_eOhNIlCuXoLFeb0Ck,87619
286
+ web/client/dist/assets/Footer-oOysi0Rj.js,sha256=HkVCM3UqmW_qpoJEYjbMoqmB9XniIpMWlFT0vKi2VTU,700
287
+ web/client/dist/assets/Header-BgdWOSlW.js,sha256=JM4GF7AZTJ1GwNBUgL8b3iM7BGFckodZKrBsT4vkbpU,11424
288
+ web/client/dist/assets/Input-dVgdocrC.js,sha256=XEF0saIYGoeQ8GtkZ-awPo8r2g0XKrGnwGRkY8Erz2A,54762
289
+ web/client/dist/assets/Lineage-DxZry1e9.js,sha256=yJ1NyElszHqW702rZwtLf1Yx4M5KjnDyx6NxDVi3R8w,1002
290
+ web/client/dist/assets/ListboxShow-DE9VWrnX.js,sha256=DY0795-LyXRgOYlwSabPJyMv_v197QldNm5G3a7lSmw,29911
291
+ web/client/dist/assets/ModelLineage-qjIPMnaE.js,sha256=qjhT20t9gBu6irZ9XllI04UZFuF-hiBMFIffuo6onK4,15546
292
+ web/client/dist/assets/Models-Bdj4i9jf.js,sha256=aT4sk8Di3GXyMuFtepRt8CzVMFHnAISC1i433WXDjs0,2194
293
+ web/client/dist/assets/Page-nRV3-lCQ.js,sha256=koXwfJ-1BQK4NUhNIoWDAuY0HH1oQX5pxit58KCo4Oc,589
294
+ web/client/dist/assets/Plan-DE_TjJxE.js,sha256=vKAT7-KEAk2JDCJ3rf6xxHf5GpZ9aTtBQYzZYVNsDEI,666
295
+ web/client/dist/assets/PlusCircleIcon-MX372cgb.js,sha256=54e6TcRGXiNydxIR3frG0jgPNUV_GlvD2vjP_rw8LYI,11698
296
+ web/client/dist/assets/ReportErrors-CWlh9ZI6.js,sha256=cTsmlJHBPebCsXt-1zf2hS_oghB5ps5oKOtdOgdsX5s,5419
297
+ web/client/dist/assets/Root-DxOCwaxq.js,sha256=dh8l7qwoi-9dU95pHSStlal42izJ8ZF8j8EpHqgJ2_U,42195
298
+ web/client/dist/assets/SearchList-Bkn1Hq0k.js,sha256=A2MiS3ilXvn39X8YPYjHhmoDXEEPlp1SuTxT7DTgYs4,291983
299
+ web/client/dist/assets/SelectEnvironment-BwMCf7m1.js,sha256=Df7hS9NNxkIrWVOZd4aRjIgxf2qpjRXj3GDyJh3x26k,37637
300
+ web/client/dist/assets/SourceList-CfwYQ7a7.js,sha256=CQW5jSxLquIwbtplEKeGYbkYM4vGHGwsZ_3yk1rFFtA,3205
301
+ web/client/dist/assets/SourceListItem-Dw_XLCwD.js,sha256=UBBUrpYKa3GQhifUAA56uyRmPKlx-jeQoeZokCLh5r8,1106
302
+ web/client/dist/assets/SplitPane-Cy9J8wln.js,sha256=rVYFyCtB5qUT6EkfEmxkrHDtwTqt36R0zfHrUvHFzTw,10439
303
+ web/client/dist/assets/Tests-BInfdlGW.js,sha256=eke8GFBfmK5_gxSWz98E_2q-JcUoQNiWgD2DyGUDb0E,1014
304
+ web/client/dist/assets/Welcome-Cq7bKz0E.js,sha256=2tspLHSiRbPszPYC1T69ois7pQJaK7yHmCJwg_3ohUg,354
305
305
  web/client/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js,sha256=WQq4BXvAMsPhT58adqrv_QHaYJQT-xKIiBnKBDPB-uk,239
306
- web/client/dist/assets/context-Cl_qdjcd.js,sha256=sX8H0pW85vd5PoIkjpwKHBmY5dqhUV2-LrIZmaFK80A,2053023
307
- web/client/dist/assets/context-cGGhLbGj.js,sha256=9Y7hHjbrpSN7zB011dMl7v1i6dTj_gUXJdoZvXWV_WE,4517
308
- web/client/dist/assets/editor-yKXGVuvn.js,sha256=ehCUCRjgksqVNF7r1GOiJpKDcf1utWk-bGDKFGyQn84,7858
309
- web/client/dist/assets/file-CJ8A1f27.js,sha256=e46WMtPg1xbPewkFF1Hp1D6ygJpgQZ18x-pFFLISvy8,2349
310
- web/client/dist/assets/floating-ui.react-dom-CfXRycK_.js,sha256=tfOPdGISvlTqYMwUKBgbzqE3IdttNwVxnFnoOEYhNN8,22264
306
+ web/client/dist/assets/context-DwZmsJ4J.js,sha256=eD2iPolYh_v-Y9C2KGS50wElnHlhDMhqiazGNS1IF5A,2043300
307
+ web/client/dist/assets/context-eAMA5CGc.js,sha256=5S-QxdwxZAeYu4FEoRQ3iH21SUJ1eeRAVIfspF9SNF4,4517
308
+ web/client/dist/assets/editor-BWylDs4F.js,sha256=vTJvwsdV3GUhbfmADLfaQ1TSDqpAUyjq_F1JZFGupcg,7858
309
+ web/client/dist/assets/file-BxzTdZ94.js,sha256=3reruSyLueor8lBFU2ceRlktXtNFCWIEcFR-VscpqmQ,2349
310
+ web/client/dist/assets/floating-ui.react-dom-CRENXhNN.js,sha256=CANAO53n2O7mvwmuiNp2ylv-QUZzbpNCOB7NmwfOL4E,22264
311
311
  web/client/dist/assets/help-6Q7f7fjd.js,sha256=93Iri9PzpAiPgCyRsrQwABjP2jomAUNR7y2OqHxPf34,445
312
- web/client/dist/assets/help-aam8B-7S.js,sha256=ID4NA6YcO3WAXoVbKNClt5etCrcLSKen5iwJ9DqdBdc,57842
313
- web/client/dist/assets/index-CQy7Tkrl.js,sha256=mvCvAdKLfKWfp9Vr4iv_KpnZYaRfOcwqrMlGYMX3N68,13582
314
- web/client/dist/assets/index-zO-UPMUq.js,sha256=FIMJy_GYy7FE1r40dBXjYUHf4w0Zi5iVbAwuDlFVThQ,531311
315
- web/client/dist/assets/plan-CiAasU-P.js,sha256=LSM2LlE-_qWq64sp7Sf0Df8n8QFJkxZxM73Zh_glhiI,13754
316
- web/client/dist/assets/popover-Ox7TJJ2-.js,sha256=mkQ8x-m39x4LyYi-Gxp7IptcRbD-pu8TmS6pw-wFzHc,68101
317
- web/client/dist/assets/project-PqqAyMWE.js,sha256=BCm98k8xwCRx56LbL7XEfR01oN8Htlut6pr5R7LBcnI,3338
312
+ web/client/dist/assets/help-BzfMEAUL.js,sha256=kQZxtcijLOfzv1iK3YLgdaYxOZRCJbnRrZVXC3uPh60,57842
313
+ web/client/dist/assets/index-5Y4x4i40.js,sha256=qpEVekagUbVMRhzG0olqcto81LNQ9ZLxLp2zZXUoWqg,531311
314
+ web/client/dist/assets/index-uNgE_frb.js,sha256=N5J2xGruuKiKf9URULDE51mx24s77RBGiDxu4SNkomc,13582
315
+ web/client/dist/assets/plan-CHhLxN5c.js,sha256=snaNzp64Bn8ljjXwR6SHcCXDwwWfP_uy0oq64wrHJBA,13754
316
+ web/client/dist/assets/popover-aPEvy0EQ.js,sha256=m6-Jch4mgSmoeb1zZoUIrANQWjkqIdNJCVBa13P8nkU,68101
317
+ web/client/dist/assets/project-xs0wjmu5.js,sha256=45PJ6PPtLh7Qb84a6h7wehjiUwJJFSK8eCdd-9dq9kY,3338
318
318
  web/client/dist/css/base.css,sha256=JApDmQihY7DRy5Bd30uYMm5NdMKm0QsEOMBsOuK7gyU,9048
319
319
  web/client/dist/css/design.css,sha256=9VTHN-aYFVW6I53jUWbV8qaqo87tXyZTYSWFLC_sRQY,17057
320
320
  web/client/dist/favicons/favicon.svg,sha256=ZPNT00J77RHUj6Nlh6Z4Puxnp_oq9RSqACjomhDRUXE,1586
@@ -386,8 +386,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
386
386
  web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
387
387
  web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
388
388
  web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
389
- sqlmesh-0.185.1.dev1.dist-info/METADATA,sha256=8Ahs7yzGxJwvZSY78zBAF3K-vrdmNdF83jgCZrQ-EeU,25498
390
- sqlmesh-0.185.1.dev1.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
391
- sqlmesh-0.185.1.dev1.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
392
- sqlmesh-0.185.1.dev1.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
393
- sqlmesh-0.185.1.dev1.dist-info/RECORD,,
389
+ sqlmesh-0.185.1.dev3.dist-info/METADATA,sha256=6ZXzuYHvA1st8H0ITcG8Fo_2TMdqsva4GPfDIo5598k,25498
390
+ sqlmesh-0.185.1.dev3.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
391
+ sqlmesh-0.185.1.dev3.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
392
+ sqlmesh-0.185.1.dev3.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
393
+ sqlmesh-0.185.1.dev3.dist-info/RECORD,,
@@ -1 +1 @@
1
- import{x as n,j as s,O as f,e as t,H as c,B as p,m as x,l as d}from"./index-zO-UPMUq.js";import{P as j}from"./Page-DbTpD-wK.js";import{u as h}from"./project-PqqAyMWE.js";import{S as v}from"./SourceList-BXrKA-hR.js";import{S as A}from"./SourceListItem-BvVyXARN.js";import"./SplitPane-BCBwk2UE.js";import"./file-CJ8A1f27.js";import"./Input-D0tI9yL5.js";import"./floating-ui.react-dom-CfXRycK_.js";import"./index-CQy7Tkrl.js";function k(){const{pathname:a}=n(),i=h(e=>e.files),r=Array.from(i.values()).filter(e=>e.path.endsWith("audits"));return s.jsx(j,{sidebar:s.jsxs("div",{className:"flex flex-col w-full h-full",children:[s.jsx(v,{keyId:"basename",keyName:"basename",to:t.Audits,items:r,isActive:e=>`${t.Audits}/${e}`===a,className:"h-full",listItem:({to:e,name:o,description:m,text:l,disabled:u=!1})=>s.jsx(A,{to:e,name:o,text:l,description:m,disabled:u})}),s.jsx(c,{}),s.jsx("div",{className:"py-1 px-1 flex justify-end",children:s.jsx(p,{size:d.sm,variant:x.Neutral,children:"Run All"})})]}),content:s.jsx(f,{})})}export{k as default};
1
+ import{x as n,j as s,O as f,e as t,H as c,B as p,m as x,l as d}from"./index-5Y4x4i40.js";import{P as j}from"./Page-nRV3-lCQ.js";import{u as h}from"./project-xs0wjmu5.js";import{S as v}from"./SourceList-CfwYQ7a7.js";import{S as A}from"./SourceListItem-Dw_XLCwD.js";import"./SplitPane-Cy9J8wln.js";import"./file-BxzTdZ94.js";import"./Input-dVgdocrC.js";import"./floating-ui.react-dom-CRENXhNN.js";import"./index-uNgE_frb.js";function k(){const{pathname:a}=n(),i=h(e=>e.files),r=Array.from(i.values()).filter(e=>e.path.endsWith("audits"));return s.jsx(j,{sidebar:s.jsxs("div",{className:"flex flex-col w-full h-full",children:[s.jsx(v,{keyId:"basename",keyName:"basename",to:t.Audits,items:r,isActive:e=>`${t.Audits}/${e}`===a,className:"h-full",listItem:({to:e,name:o,description:m,text:l,disabled:u=!1})=>s.jsx(A,{to:e,name:o,text:l,description:m,disabled:u})}),s.jsx(c,{}),s.jsx("div",{className:"py-1 px-1 flex justify-end",children:s.jsx(p,{size:d.sm,variant:x.Neutral,children:"Run All"})})]}),content:s.jsx(f,{})})}export{k as default};
@@ -1 +1 @@
1
- import{j as s,c as i,l as a,m as n,H as p}from"./index-zO-UPMUq.js";function l({variant:t=n.Neutral,size:e=a.md,isFull:r=!1,isCenter:u=!1,hasBackground:x=!0,hasBackgroundOnHover:f=!1,hasBorder:c=!1,children:m,className:b}){return s.jsx("div",{className:i("w-full text-sm px-4 overflow-hidden rounded-lg",e===a.sm&&"py-2",e===a.md&&"py-4",e===a.lg&&"py-6",r&&"h-full",u&&"justify-center items-center",c&&"border-2",w(t,x,f),b),children:m})}function g({className:t}){return s.jsx(p,{className:i("mx-4 w-full",t)})}function d({children:t,className:e}){return s.jsx("h4",{className:i("font-bold text-sm whitespace-nowrap text-left",e),children:t})}function o({children:t,className:e}){return s.jsx("p",{className:i("text-neutral-600",e),children:t})}l.Label=d;l.Description=o;l.Divider=g;function w(t,e=!0,r=!1){switch(t){case n.Primary:return[r?"hover:bg-primary-5":"",e?"bg-primary-5":"","text-primary-600 dark:text-primary-400"];case n.Success:return[r?"hover:bg-success-5":"",e?"bg-success-5":"","text-success-600 dark:text-success-400"];case n.Warning:return[r?"hover:bg-warning-5":"",e?"bg-warning-5":"","text-warning-600 dark:text-warning-400"];case n.Danger:return[r?"hover:bg-danger-5":"",e?"bg-danger-5":"","text-danger-600 dark:text-danger-400"];case n.Info:return[r?"hover:bg-info-5":"",e?"bg-info-5":"","text-info-600 dark:text-info-400"];case n.Neutral:return[r?"hover:bg-neutral-5":"",e?"bg-neutral-5":"","text-neutral-600 dark:text-neutral-400"];default:return["bg-transparent","text-neutral-600 dark:text-neutral-400"]}}export{l as B};
1
+ import{j as s,c as i,l as a,m as n,H as p}from"./index-5Y4x4i40.js";function l({variant:t=n.Neutral,size:e=a.md,isFull:r=!1,isCenter:u=!1,hasBackground:x=!0,hasBackgroundOnHover:f=!1,hasBorder:c=!1,children:m,className:b}){return s.jsx("div",{className:i("w-full text-sm px-4 overflow-hidden rounded-lg",e===a.sm&&"py-2",e===a.md&&"py-4",e===a.lg&&"py-6",r&&"h-full",u&&"justify-center items-center",c&&"border-2",w(t,x,f),b),children:m})}function g({className:t}){return s.jsx(p,{className:i("mx-4 w-full",t)})}function d({children:t,className:e}){return s.jsx("h4",{className:i("font-bold text-sm whitespace-nowrap text-left",e),children:t})}function o({children:t,className:e}){return s.jsx("p",{className:i("text-neutral-600",e),children:t})}l.Label=d;l.Description=o;l.Divider=g;function w(t,e=!0,r=!1){switch(t){case n.Primary:return[r?"hover:bg-primary-5":"",e?"bg-primary-5":"","text-primary-600 dark:text-primary-400"];case n.Success:return[r?"hover:bg-success-5":"",e?"bg-success-5":"","text-success-600 dark:text-success-400"];case n.Warning:return[r?"hover:bg-warning-5":"",e?"bg-warning-5":"","text-warning-600 dark:text-warning-400"];case n.Danger:return[r?"hover:bg-danger-5":"",e?"bg-danger-5":"","text-danger-600 dark:text-danger-400"];case n.Info:return[r?"hover:bg-info-5":"",e?"bg-info-5":"","text-info-600 dark:text-info-400"];case n.Neutral:return[r?"hover:bg-neutral-5":"",e?"bg-neutral-5":"","text-neutral-600 dark:text-neutral-400"];default:return["bg-transparent","text-neutral-600 dark:text-neutral-400"]}}export{l as B};
@@ -1 +1 @@
1
- import{r as e}from"./index-zO-UPMUq.js";function t({title:r,titleId:a,...l},o){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":a},l),r?e.createElement("title",{id:a},r):null,e.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const c=e.forwardRef(t);export{c as F};
1
+ import{r as e}from"./index-5Y4x4i40.js";function t({title:r,titleId:a,...l},o){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":a},l),r?e.createElement("title",{id:a},r):null,e.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const c=e.forwardRef(t);export{c as F};
@@ -1 +1 @@
1
- import{r as e}from"./index-zO-UPMUq.js";function o({title:r,titleId:a,...t},l){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),r?e.createElement("title",{id:a},r):null,e.createElement("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const i=e.forwardRef(o);export{i as F};
1
+ import{r as e}from"./index-5Y4x4i40.js";function o({title:r,titleId:a,...t},l){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),r?e.createElement("title",{id:a},r):null,e.createElement("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const i=e.forwardRef(o);export{i as F};
@@ -1,4 +1,4 @@
1
- import{r as v,R as J,a as _,j as e,m as O,s as Qe,b as C,B as oe,v as E,l as T,c as w,M as De,f as V,I as Xe,J as de,i as I,K as Q,g as H,T as Me,H as ue,P as ye,C as es,A as $,q as ss,L as as,d as ns,k as ts,o as ls,p as is,Q as rs,U as os,e as cs}from"./index-zO-UPMUq.js";import{u as W,S as ds,A as us,a as Ne,b as R,E as A,P as z,c as ms}from"./SelectEnvironment-DSHK4OKG.js";import{u as j,a as Y,E as M}from"./plan-CiAasU-P.js";import{B as S}from"./Banner-DHp1YP1u.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-DJoyPo8S.js";import{K as fs,L as $e,V as hs,y as xs,p as js,o as ce,$ as vs,W as gs,X as ys,_ as ws,Y as bs,a as Re,Z as Ns,z as se}from"./popover-Ox7TJJ2-.js";import{I as K}from"./Input-D0tI9yL5.js";import{H as ks,V as Ps,Q as Ts,w as Cs,u as Fs,a as As,l as Ss,T as Ds,N as Rs,U as Es,j as Bs,p as _s}from"./ListboxShow-DF5PqZhj.js";import{u as ze}from"./project-PqqAyMWE.js";import{F as we}from"./context-Cl_qdjcd.js";import"./ModelLineage-BHZN6cbe.js";import"./editor-yKXGVuvn.js";import"./file-CJ8A1f27.js";import"./SearchList-iv5ny7Mb.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-CfXRycK_.js";import"./ChevronDownIcon-Sazvo9i-.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-BXrKA-hR.js";import"./index-CQy7Tkrl.js";function Os({title:s,titleId:a,...t},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},t),s?v.createElement("title",{id:a},s):null,v.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const X=v.forwardRef(Os);let Te=v.createContext(null);Te.displayName="GroupContext";let Is=v.Fragment;function Ms(s){var a;let[t,r]=v.useState(null),[l,i]=Ts(),[c,u]=Cs(),o=v.useMemo(()=>({switch:t,setSwitch:r}),[t,r]),d={},m=s,n=$e();return J.createElement(u,{name:"Switch.Description",value:c},J.createElement(i,{name:"Switch.Label",value:l,props:{htmlFor:(a=o.switch)==null?void 0:a.id,onClick(h){t&&(hs(h.currentTarget)&&h.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},J.createElement(Te.Provider,{value:o},n({ourProps:d,theirProps:m,slot:{},defaultTag:Is,name:"Switch.Group"}))))}let $s="button";function zs(s,a){var t;let r=v.useId(),l=Fs(),i=As(),{id:c=l||`headlessui-switch-${r}`,disabled:u=i||!1,checked:o,defaultChecked:d,onChange:m,name:n,value:h,form:p,autoFocus:f=!1,...x}=s,F=v.useContext(Te),[B,D]=v.useState(null),N=v.useRef(null),k=xs(N,a,F===null?null:F.setSwitch,D),g=Ss(d),[P,Z]=Ds(o,m,g??!1),je=js(),[le,b]=v.useState(!1),ie=ce(()=>{b(!0),Z==null||Z(!P),je.nextFrame(()=>{b(!1)})}),re=ce(U=>{if(Ns(U.currentTarget))return U.preventDefault();U.preventDefault(),ie()}),ve=ce(U=>{U.key===Re.Space?(U.preventDefault(),ie()):U.key===Re.Enter&&_s(U.currentTarget)}),Le=ce(U=>U.preventDefault()),Ve=Rs(),Ge=Es(),{isFocusVisible:Fe,focusProps:He}=vs({autoFocus:f}),{isHovered:Ae,hoverProps:Ke}=gs({isDisabled:u}),{pressed:Se,pressProps:Ze}=ys({disabled:u}),qe=v.useMemo(()=>({checked:P,disabled:u,hover:Ae,focus:Fe,active:Se,autofocus:f,changing:le}),[P,Ae,Fe,Se,u,le,f]),We=ws({id:c,ref:k,role:"switch",type:bs(s,B),tabIndex:s.tabIndex===-1?0:(t=s.tabIndex)!=null?t:0,"aria-checked":P,"aria-labelledby":Ve,"aria-describedby":Ge,disabled:u||void 0,autoFocus:f,onClick:re,onKeyUp:ve,onKeyPress:Le},He,Ke,Ze),Ye=v.useCallback(()=>{if(g!==void 0)return Z==null?void 0:Z(g)},[Z,g]),Je=$e();return J.createElement(J.Fragment,null,n!=null&&J.createElement(Bs,{disabled:u,data:{[n]:h||"on"},overrides:{type:"checkbox",checked:P},form:p,onReset:Ye}),Je({ourProps:We,theirProps:x,slot:qe,defaultTag:$s,name:"Switch"}))}let Us=fs(zs),Ls=Ms,Vs=Ps,Gs=ks,ge=Object.assign(Us,{Group:Ls,Label:Vs,Description:Gs});function Hs(){const s=_(a=>a.environment);return e.jsx("div",{className:"flex flex-col px-4 py-2 w-full",children:e.jsx(S,{variant:O.Warning,children:e.jsx(L,{defaultOpen:!1,children:({open:a})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{className:"w-full flex items-center justify-between",children:[e.jsx(S.Label,{className:"w-full",children:s.isInitialProd?"Initializing Prod Environment":"Prod Environment"}),s.isInitialProd&&e.jsx(e.Fragment,{children:a?e.jsx(ke,{className:"w-5 text-warning-500"}):e.jsx(Pe,{className:"w-5 text-warning-500"})})]}),s.isInitialProd&&e.jsx(L.Panel,{className:"px-2 text-sm mt-2",children:e.jsx(S.Description,{children:"Prod will be completely backfilled in order to ensure there are no data gaps. After this is applied, it is recommended to validate further changes in a dev environment before deploying to production."})})]})})})})}function Ks(s=0){return v.useCallback(a=>{setTimeout(()=>{a==null||a.focus()},s)},[s])}function Zs({run:s,apply:a,cancel:t,reset:r}){const l=Qe(),{change_categorization:i}=W(),c=_(b=>b.modules),u=_(b=>b.environment),o=_(b=>b.environments),d=_(b=>b.addConfirmation),m=_(b=>b.setShowConfirmation),n=j(b=>b.planAction),h=j(b=>b.planOverview),p=j(b=>b.planApply),f=j(b=>b.planCancel),x=Ks();function F(b){b.stopPropagation(),r()}function B(b){b.stopPropagation(),t()}function D(b){b.stopPropagation(),l(-1)}function N(b){b.stopPropagation();const ie=u.isProd&&C(u.isInitial),re=Array.from(i.values()).some(ve=>E(ve.category));ie?d({headline:"Applying Plan Directly On Prod Environment!",tagline:"Safer choice will be to select or add new environment first.",description:"Are you sure you want to apply your changes directly on prod?",yesText:`Yes, Run ${u.name}`,noText:"No, Cancel",action:a,details:re?["ATTENTION!","[Breaking Change] category will be applied to all uncategorized changes"]:void 0,children:e.jsxs("div",{className:"mt-5 pt-4",children:[e.jsx("h4",{className:"mb-2",children:`${o.size>1?"Select or ":""}Add Environment`}),e.jsxs("div",{className:"flex items-center relative",children:[o.size>1&&e.jsx(ds,{className:"mr-2",showAddEnvironment:!1,onSelect:()=>{m(!1)},size:T.md}),e.jsx(us,{className:"w-full",size:T.md,onAdd:()=>{m(!1)}})]})]})}):re?d({headline:"Some changes are missing categorization!",description:"Are you sure you want to proceed?",details:["[Breaking Change] category will be applied to all uncategorized changes"],yesText:"Yes, Apply",noText:"No, Cancel",action:a}):a()}function k(b){b.stopPropagation(),s()}const g=h.isFailed||p.isFailed||f.isSuccessful,P=C(n.isCancelling)&&C(n.isDone)&&(n.isProcessing?C(f.isSuccessful):!0)&&C(g),Z=n.isApplying||f.isCancelling||p.isRunning&&h.isFinished,je=g||C(n.isProcessing)&&C(n.isRun)&&C(n.isDone),le=c.showHistoryNavigation;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex justify-between pt-2 pl-4 pr-2 pb-2",children:[e.jsx("div",{className:"flex w-full items-center",children:e.jsx(se,{appear:!0,show:P,enter:"transition ease duration-300 transform",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"transition ease duration-300 transform",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",className:"trasition-all duration-300 ease-in-out",as:"div",children:P&&e.jsx(oe,{disabled:n.isProcessing||f.isSuccessful||n.isDone,onClick:n.isRun?k:f.isSuccessful?void 0:N,ref:x,variant:f.isSuccessful?O.Danger:O.Primary,autoFocus:!0,className:"trasition-all duration-300 ease-in-out",children:e.jsx("span",{children:Y.getActionDisplayName(n,f.isSuccessful?[]:[M.RunningTask,M.Running,M.Run,M.Applying,M.ApplyBackfill,M.ApplyVirtual,M.ApplyChangesAndBackfill,M.ApplyMetadata],f.isSuccessful?"Canceled":"Done")})})})}),e.jsxs("div",{className:"flex items-center",children:[Z&&e.jsx(oe,{onClick:B,variant:O.Danger,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:Y.getActionDisplayName(n,n.isProcessing&&C(f.isSuccessful)?[M.Cancelling]:[],f.isSuccessful?"Finishing Cancellation...":"Cancel")}),je&&e.jsx(oe,{onClick:F,variant:O.Info,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:"Start Over"}),le&&e.jsx(oe,{onClick:D,variant:O.Info,children:"Go Back"})]})]})})}function qs({label:s,enabled:a,setEnabled:t,a11yTitle:r,size:l=T.md,disabled:i=!1,className:c}){return e.jsxs(ge.Group,{as:"div",className:"m-1",children:[e.jsxs(ge,{checked:i?!1:a,onChange:t,className:w("flex relative border-secondary-30 rounded-full m-0","shrink-0 focus:outline-none ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100 focus:border-secondary-500 focus-visible:ring-opacity-75","transition duration-200 ease-in-out",a?"bg-secondary-500":"bg-secondary-20",c,i?"opacity-50 cursor-not-allowed":"cursor-pointer",l===T.sm&&"h-[14px] w-6 focus:ring-1 border",l===T.md&&"h-5 w-10 focus:ring-2 border-2",l===T.lg&&"h-7 w-14 focus:ring-4 border-2"),disabled:i,children:[e.jsx("span",{className:"sr-only",children:r}),e.jsx("span",{"aria-hidden":"true",className:w("pointer-events-none inline-block transform rounded-full shadow-md transition duration-200 ease-in-out","bg-light",l===T.sm&&"h-3 w-3",l===T.md&&"h-4 w-4",l===T.lg&&"h-6 w-6",a&&l===T.sm&&"translate-x-[10px]",a&&l===T.md&&"translate-x-5",a&&l===T.lg&&"translate-x-7")})]}),s!=null&&e.jsx(ge.Label,{className:w("text-xs font-light ml-1 text-neutral-600 dark:text-neutral-400"),children:s})]})}function q({label:s,info:a,enabled:t,disabled:r=!1,setEnabled:l,className:i}){return e.jsxs("div",{className:w("flex justify-between",i),children:[e.jsxs("label",{className:"block mb-1 px-3 text-sm font-bold",children:[s,e.jsx("small",{className:"block text-xs text-neutral-500",children:a})]}),e.jsx(qs,{disabled:r,enabled:t,setEnabled:l,size:T.lg})]})}function Ws({disabled:s=!1,className:a}){const t=Ne(),{start:r,end:l,isInitialPlanRun:i}=W();return e.jsxs("div",{className:w("flex w-full flex-wrap md:flex-nowrap",a),children:[e.jsx(K,{className:"w-full md:w-[50%]",label:"Start Date (UTC)",info:"The start datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2023-12-13",value:r,onInput:o=>{o.stopPropagation(),t({type:R.DateStart,start:o.target.value})}})}),e.jsx(K,{className:"w-full md:w-[50%]",label:"End Date (UTC)",info:"The end datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2022-12-13",value:l,onInput:o=>{o.stopPropagation(),t({type:R.DateEnd,end:o.target.value})}})})]})}function Ys(){const s=Ne(),{skip_tests:a,no_gaps:t,skip_backfill:r,forward_only:l,auto_apply:i,no_auto_categorization:c,restate_models:u,isInitialPlanRun:o,create_from:d,include_unmodified:m}=W(),n=v.useRef(null),h=j(N=>N.planAction),p=j(N=>N.planOverview),f=j(N=>N.planApply),x=_(N=>N.environment),F=_(N=>N.environments),B=De.getOnlyRemote(Array.from(F));v.useEffect(()=>{s({type:R.PlanOptions,...p.plan_options,skip_tests:!1})},[]);const D=h.isProcessing||h.isDone||f.isFinished||p.isLatest&&C(h.isRun)||p.isVirtualUpdate;return v.useEffect(()=>{var N;E(n.current)||h.isProcessing&&n.current.classList.contains("--is-open")&&((N=n.current)==null||N.click())},[n,h]),e.jsxs("form",{className:"w-full",children:[e.jsx("fieldset",{className:w(D&&"opacity-50 cursor-not-allowed"),children:e.jsx(Ws,{className:w(D&&"pointer-events-none")})}),e.jsx("fieldset",{className:"my-2",children:e.jsx(S,{children:e.jsx(L,{defaultOpen:h.isRun,children:({open:N})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{ref:n,className:w("w-full flex items-center",N&&"--is-open"),children:[e.jsxs(S.Label,{className:"mr-2 text-sm w-full",children:[e.jsx("span",{children:"Additional Options"}),D&&e.jsx("span",{className:"ml-1",children:"(Read Only)"})]}),N?e.jsx(ke,{className:"h-5 w-5 text-neutral-400"}):e.jsx(Pe,{className:"h-5 w-5 text-neutral-400"})]}),e.jsxs(L.Panel,{unmount:!1,className:w("py-4 text-sm text-neutral-500",D&&"opacity-50 cursor-not-allowed"),children:[e.jsx("div",{className:w(D&&"pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap md:flex-nowrap",children:[C(x.isProd)&&e.jsx(K,{className:"w-full",label:"Create From Environment",info:"The environment to base the plan on rather than local files",disabled:B.length<2,children:({className:k,disabled:g})=>e.jsx(K.Selector,{className:w(k,"w-full"),list:De.getOnlyRemote(Array.from(F)).filter(P=>P!==x).map(P=>({value:P.name,text:P.name})),onChange:P=>{s({type:R.PlanOptions,create_from:P})},value:d,disabled:g})}),e.jsx(K,{className:"w-full",label:"Restate Models",info:`Restate data for specified models and models
1
+ import{r as v,R as J,a as _,j as e,m as O,s as Qe,b as C,B as oe,v as E,l as T,c as w,M as De,f as V,I as Xe,J as de,i as I,K as Q,g as H,T as Me,H as ue,P as ye,C as es,A as $,q as ss,L as as,d as ns,k as ts,o as ls,p as is,Q as rs,U as os,e as cs}from"./index-5Y4x4i40.js";import{u as W,S as ds,A as us,a as Ne,b as R,E as A,P as z,c as ms}from"./SelectEnvironment-BwMCf7m1.js";import{u as j,a as Y,E as M}from"./plan-CHhLxN5c.js";import{B as S}from"./Banner-DG7PdTuX.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-MX372cgb.js";import{K as fs,L as $e,V as hs,y as xs,p as js,o as ce,$ as vs,W as gs,X as ys,_ as ws,Y as bs,a as Re,Z as Ns,z as se}from"./popover-aPEvy0EQ.js";import{I as K}from"./Input-dVgdocrC.js";import{H as ks,V as Ps,Q as Ts,w as Cs,u as Fs,a as As,l as Ss,T as Ds,N as Rs,U as Es,j as Bs,p as _s}from"./ListboxShow-DE9VWrnX.js";import{u as ze}from"./project-xs0wjmu5.js";import{F as we}from"./context-DwZmsJ4J.js";import"./ModelLineage-qjIPMnaE.js";import"./editor-BWylDs4F.js";import"./file-BxzTdZ94.js";import"./SearchList-Bkn1Hq0k.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-CRENXhNN.js";import"./ChevronDownIcon-nX-b0oJg.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-CfwYQ7a7.js";import"./index-uNgE_frb.js";function Os({title:s,titleId:a,...t},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},t),s?v.createElement("title",{id:a},s):null,v.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const X=v.forwardRef(Os);let Te=v.createContext(null);Te.displayName="GroupContext";let Is=v.Fragment;function Ms(s){var a;let[t,r]=v.useState(null),[l,i]=Ts(),[c,u]=Cs(),o=v.useMemo(()=>({switch:t,setSwitch:r}),[t,r]),d={},m=s,n=$e();return J.createElement(u,{name:"Switch.Description",value:c},J.createElement(i,{name:"Switch.Label",value:l,props:{htmlFor:(a=o.switch)==null?void 0:a.id,onClick(h){t&&(hs(h.currentTarget)&&h.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},J.createElement(Te.Provider,{value:o},n({ourProps:d,theirProps:m,slot:{},defaultTag:Is,name:"Switch.Group"}))))}let $s="button";function zs(s,a){var t;let r=v.useId(),l=Fs(),i=As(),{id:c=l||`headlessui-switch-${r}`,disabled:u=i||!1,checked:o,defaultChecked:d,onChange:m,name:n,value:h,form:p,autoFocus:f=!1,...x}=s,F=v.useContext(Te),[B,D]=v.useState(null),N=v.useRef(null),k=xs(N,a,F===null?null:F.setSwitch,D),g=Ss(d),[P,Z]=Ds(o,m,g??!1),je=js(),[le,b]=v.useState(!1),ie=ce(()=>{b(!0),Z==null||Z(!P),je.nextFrame(()=>{b(!1)})}),re=ce(U=>{if(Ns(U.currentTarget))return U.preventDefault();U.preventDefault(),ie()}),ve=ce(U=>{U.key===Re.Space?(U.preventDefault(),ie()):U.key===Re.Enter&&_s(U.currentTarget)}),Le=ce(U=>U.preventDefault()),Ve=Rs(),Ge=Es(),{isFocusVisible:Fe,focusProps:He}=vs({autoFocus:f}),{isHovered:Ae,hoverProps:Ke}=gs({isDisabled:u}),{pressed:Se,pressProps:Ze}=ys({disabled:u}),qe=v.useMemo(()=>({checked:P,disabled:u,hover:Ae,focus:Fe,active:Se,autofocus:f,changing:le}),[P,Ae,Fe,Se,u,le,f]),We=ws({id:c,ref:k,role:"switch",type:bs(s,B),tabIndex:s.tabIndex===-1?0:(t=s.tabIndex)!=null?t:0,"aria-checked":P,"aria-labelledby":Ve,"aria-describedby":Ge,disabled:u||void 0,autoFocus:f,onClick:re,onKeyUp:ve,onKeyPress:Le},He,Ke,Ze),Ye=v.useCallback(()=>{if(g!==void 0)return Z==null?void 0:Z(g)},[Z,g]),Je=$e();return J.createElement(J.Fragment,null,n!=null&&J.createElement(Bs,{disabled:u,data:{[n]:h||"on"},overrides:{type:"checkbox",checked:P},form:p,onReset:Ye}),Je({ourProps:We,theirProps:x,slot:qe,defaultTag:$s,name:"Switch"}))}let Us=fs(zs),Ls=Ms,Vs=Ps,Gs=ks,ge=Object.assign(Us,{Group:Ls,Label:Vs,Description:Gs});function Hs(){const s=_(a=>a.environment);return e.jsx("div",{className:"flex flex-col px-4 py-2 w-full",children:e.jsx(S,{variant:O.Warning,children:e.jsx(L,{defaultOpen:!1,children:({open:a})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{className:"w-full flex items-center justify-between",children:[e.jsx(S.Label,{className:"w-full",children:s.isInitialProd?"Initializing Prod Environment":"Prod Environment"}),s.isInitialProd&&e.jsx(e.Fragment,{children:a?e.jsx(ke,{className:"w-5 text-warning-500"}):e.jsx(Pe,{className:"w-5 text-warning-500"})})]}),s.isInitialProd&&e.jsx(L.Panel,{className:"px-2 text-sm mt-2",children:e.jsx(S.Description,{children:"Prod will be completely backfilled in order to ensure there are no data gaps. After this is applied, it is recommended to validate further changes in a dev environment before deploying to production."})})]})})})})}function Ks(s=0){return v.useCallback(a=>{setTimeout(()=>{a==null||a.focus()},s)},[s])}function Zs({run:s,apply:a,cancel:t,reset:r}){const l=Qe(),{change_categorization:i}=W(),c=_(b=>b.modules),u=_(b=>b.environment),o=_(b=>b.environments),d=_(b=>b.addConfirmation),m=_(b=>b.setShowConfirmation),n=j(b=>b.planAction),h=j(b=>b.planOverview),p=j(b=>b.planApply),f=j(b=>b.planCancel),x=Ks();function F(b){b.stopPropagation(),r()}function B(b){b.stopPropagation(),t()}function D(b){b.stopPropagation(),l(-1)}function N(b){b.stopPropagation();const ie=u.isProd&&C(u.isInitial),re=Array.from(i.values()).some(ve=>E(ve.category));ie?d({headline:"Applying Plan Directly On Prod Environment!",tagline:"Safer choice will be to select or add new environment first.",description:"Are you sure you want to apply your changes directly on prod?",yesText:`Yes, Run ${u.name}`,noText:"No, Cancel",action:a,details:re?["ATTENTION!","[Breaking Change] category will be applied to all uncategorized changes"]:void 0,children:e.jsxs("div",{className:"mt-5 pt-4",children:[e.jsx("h4",{className:"mb-2",children:`${o.size>1?"Select or ":""}Add Environment`}),e.jsxs("div",{className:"flex items-center relative",children:[o.size>1&&e.jsx(ds,{className:"mr-2",showAddEnvironment:!1,onSelect:()=>{m(!1)},size:T.md}),e.jsx(us,{className:"w-full",size:T.md,onAdd:()=>{m(!1)}})]})]})}):re?d({headline:"Some changes are missing categorization!",description:"Are you sure you want to proceed?",details:["[Breaking Change] category will be applied to all uncategorized changes"],yesText:"Yes, Apply",noText:"No, Cancel",action:a}):a()}function k(b){b.stopPropagation(),s()}const g=h.isFailed||p.isFailed||f.isSuccessful,P=C(n.isCancelling)&&C(n.isDone)&&(n.isProcessing?C(f.isSuccessful):!0)&&C(g),Z=n.isApplying||f.isCancelling||p.isRunning&&h.isFinished,je=g||C(n.isProcessing)&&C(n.isRun)&&C(n.isDone),le=c.showHistoryNavigation;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex justify-between pt-2 pl-4 pr-2 pb-2",children:[e.jsx("div",{className:"flex w-full items-center",children:e.jsx(se,{appear:!0,show:P,enter:"transition ease duration-300 transform",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"transition ease duration-300 transform",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",className:"trasition-all duration-300 ease-in-out",as:"div",children:P&&e.jsx(oe,{disabled:n.isProcessing||f.isSuccessful||n.isDone,onClick:n.isRun?k:f.isSuccessful?void 0:N,ref:x,variant:f.isSuccessful?O.Danger:O.Primary,autoFocus:!0,className:"trasition-all duration-300 ease-in-out",children:e.jsx("span",{children:Y.getActionDisplayName(n,f.isSuccessful?[]:[M.RunningTask,M.Running,M.Run,M.Applying,M.ApplyBackfill,M.ApplyVirtual,M.ApplyChangesAndBackfill,M.ApplyMetadata],f.isSuccessful?"Canceled":"Done")})})})}),e.jsxs("div",{className:"flex items-center",children:[Z&&e.jsx(oe,{onClick:B,variant:O.Danger,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:Y.getActionDisplayName(n,n.isProcessing&&C(f.isSuccessful)?[M.Cancelling]:[],f.isSuccessful?"Finishing Cancellation...":"Cancel")}),je&&e.jsx(oe,{onClick:F,variant:O.Info,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:"Start Over"}),le&&e.jsx(oe,{onClick:D,variant:O.Info,children:"Go Back"})]})]})})}function qs({label:s,enabled:a,setEnabled:t,a11yTitle:r,size:l=T.md,disabled:i=!1,className:c}){return e.jsxs(ge.Group,{as:"div",className:"m-1",children:[e.jsxs(ge,{checked:i?!1:a,onChange:t,className:w("flex relative border-secondary-30 rounded-full m-0","shrink-0 focus:outline-none ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100 focus:border-secondary-500 focus-visible:ring-opacity-75","transition duration-200 ease-in-out",a?"bg-secondary-500":"bg-secondary-20",c,i?"opacity-50 cursor-not-allowed":"cursor-pointer",l===T.sm&&"h-[14px] w-6 focus:ring-1 border",l===T.md&&"h-5 w-10 focus:ring-2 border-2",l===T.lg&&"h-7 w-14 focus:ring-4 border-2"),disabled:i,children:[e.jsx("span",{className:"sr-only",children:r}),e.jsx("span",{"aria-hidden":"true",className:w("pointer-events-none inline-block transform rounded-full shadow-md transition duration-200 ease-in-out","bg-light",l===T.sm&&"h-3 w-3",l===T.md&&"h-4 w-4",l===T.lg&&"h-6 w-6",a&&l===T.sm&&"translate-x-[10px]",a&&l===T.md&&"translate-x-5",a&&l===T.lg&&"translate-x-7")})]}),s!=null&&e.jsx(ge.Label,{className:w("text-xs font-light ml-1 text-neutral-600 dark:text-neutral-400"),children:s})]})}function q({label:s,info:a,enabled:t,disabled:r=!1,setEnabled:l,className:i}){return e.jsxs("div",{className:w("flex justify-between",i),children:[e.jsxs("label",{className:"block mb-1 px-3 text-sm font-bold",children:[s,e.jsx("small",{className:"block text-xs text-neutral-500",children:a})]}),e.jsx(qs,{disabled:r,enabled:t,setEnabled:l,size:T.lg})]})}function Ws({disabled:s=!1,className:a}){const t=Ne(),{start:r,end:l,isInitialPlanRun:i}=W();return e.jsxs("div",{className:w("flex w-full flex-wrap md:flex-nowrap",a),children:[e.jsx(K,{className:"w-full md:w-[50%]",label:"Start Date (UTC)",info:"The start datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2023-12-13",value:r,onInput:o=>{o.stopPropagation(),t({type:R.DateStart,start:o.target.value})}})}),e.jsx(K,{className:"w-full md:w-[50%]",label:"End Date (UTC)",info:"The end datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2022-12-13",value:l,onInput:o=>{o.stopPropagation(),t({type:R.DateEnd,end:o.target.value})}})})]})}function Ys(){const s=Ne(),{skip_tests:a,no_gaps:t,skip_backfill:r,forward_only:l,auto_apply:i,no_auto_categorization:c,restate_models:u,isInitialPlanRun:o,create_from:d,include_unmodified:m}=W(),n=v.useRef(null),h=j(N=>N.planAction),p=j(N=>N.planOverview),f=j(N=>N.planApply),x=_(N=>N.environment),F=_(N=>N.environments),B=De.getOnlyRemote(Array.from(F));v.useEffect(()=>{s({type:R.PlanOptions,...p.plan_options,skip_tests:!1})},[]);const D=h.isProcessing||h.isDone||f.isFinished||p.isLatest&&C(h.isRun)||p.isVirtualUpdate;return v.useEffect(()=>{var N;E(n.current)||h.isProcessing&&n.current.classList.contains("--is-open")&&((N=n.current)==null||N.click())},[n,h]),e.jsxs("form",{className:"w-full",children:[e.jsx("fieldset",{className:w(D&&"opacity-50 cursor-not-allowed"),children:e.jsx(Ws,{className:w(D&&"pointer-events-none")})}),e.jsx("fieldset",{className:"my-2",children:e.jsx(S,{children:e.jsx(L,{defaultOpen:h.isRun,children:({open:N})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{ref:n,className:w("w-full flex items-center",N&&"--is-open"),children:[e.jsxs(S.Label,{className:"mr-2 text-sm w-full",children:[e.jsx("span",{children:"Additional Options"}),D&&e.jsx("span",{className:"ml-1",children:"(Read Only)"})]}),N?e.jsx(ke,{className:"h-5 w-5 text-neutral-400"}):e.jsx(Pe,{className:"h-5 w-5 text-neutral-400"})]}),e.jsxs(L.Panel,{unmount:!1,className:w("py-4 text-sm text-neutral-500",D&&"opacity-50 cursor-not-allowed"),children:[e.jsx("div",{className:w(D&&"pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap md:flex-nowrap",children:[C(x.isProd)&&e.jsx(K,{className:"w-full",label:"Create From Environment",info:"The environment to base the plan on rather than local files",disabled:B.length<2,children:({className:k,disabled:g})=>e.jsx(K.Selector,{className:w(k,"w-full"),list:De.getOnlyRemote(Array.from(F)).filter(P=>P!==x).map(P=>({value:P.name,text:P.name})),onChange:P=>{s({type:R.PlanOptions,create_from:P})},value:d,disabled:g})}),e.jsx(K,{className:"w-full",label:"Restate Models",info:`Restate data for specified models and models
2
2
  downstream from the one specified. For production
3
3
  environment, all related model versions will have
4
4
  their intervals wiped, but only the current
@@ -1 +1 @@
1
- import{d as a,Q as l,v as e,j as r,U as n,e as d}from"./index-zO-UPMUq.js";import{D as u}from"./ReportErrors-CNXH4GuU.js";import"./PlusCircleIcon-DJoyPo8S.js";import"./popover-Ox7TJJ2-.js";import"./floating-ui.react-dom-CfXRycK_.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-BCBwk2UE.js";function v(){const{errors:i}=a(),{id:o}=l(),s=e(o)?void 0:Array.from(i).find(t=>t.id===o);return r.jsx("div",{className:"flex overflow-auto w-full h-full",children:e(s)?r.jsx(n,{link:d.Errors,description:e(o)?void 0:`Error ${o} Does Not Exist`,message:"Back To Errors"}):r.jsx("div",{className:"p-4 h-full w-full",children:r.jsx("div",{className:"w-full h-full p-4 rounded-lg bg-danger-5 text-danger-700",children:r.jsx(u,{error:s,scope:s.key,withSplitPane:!0})})})})}export{v as default};
1
+ import{d as a,Q as l,v as e,j as r,U as n,e as d}from"./index-5Y4x4i40.js";import{D as u}from"./ReportErrors-CWlh9ZI6.js";import"./PlusCircleIcon-MX372cgb.js";import"./popover-aPEvy0EQ.js";import"./floating-ui.react-dom-CRENXhNN.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-Cy9J8wln.js";function v(){const{errors:i}=a(),{id:o}=l(),s=e(o)?void 0:Array.from(i).find(t=>t.id===o);return r.jsx("div",{className:"flex overflow-auto w-full h-full",children:e(s)?r.jsx(n,{link:d.Errors,description:e(o)?void 0:`Error ${o} Does Not Exist`,message:"Back To Errors"}):r.jsx("div",{className:"p-4 h-full w-full",children:r.jsx("div",{className:"w-full h-full p-4 rounded-lg bg-danger-5 text-danger-700",children:r.jsx(u,{error:s,scope:s.key,withSplitPane:!0})})})})}export{v as default};
@@ -1 +1 @@
1
- import{Q as x,a as m,v as h,P as a,a4 as c,a5 as D,a6 as P,r as T,j as u}from"./index-zO-UPMUq.js";import{g as b,T as g}from"./help-aam8B-7S.js";import{u as r}from"./editor-yKXGVuvn.js";import"./index-CQy7Tkrl.js";import"./floating-ui.react-dom-CfXRycK_.js";import"./Input-D0tI9yL5.js";import"./file-CJ8A1f27.js";const d=24*60*60*1e3;function S(){const{modelName:o}=x(),p=m(e=>e.models),s=m(e=>e.lastSelectedModel),v=r(e=>e.previewTable),i=r(e=>e.setPreviewQuery),n=r(e=>e.setPreviewTable),t=h(o)||o===(s==null?void 0:s.name)?s:p.get(encodeURI(o)),l={model:t.displayName,start:a(c(Date.now()-d)),end:a(new Date),execution_time:a(c(Date.now()-d)),limit:1e3},{refetch:f}=D(l),{refetch:w}=P(l);return T.useEffect(()=>{i(void 0),n(void 0),f().then(({data:e})=>{i(e==null?void 0:e.sql)}),w().then(({data:e})=>{n(b(e))})},[t]),u.jsx("div",{className:"flex overflow-hidden w-full h-full px-2",children:u.jsx(g,{headline:t==null?void 0:t.displayName,data:v??[[],[]]})})}export{S as default};
1
+ import{Q as x,a as m,v as h,P as a,a4 as c,a5 as D,a6 as P,r as T,j as u}from"./index-5Y4x4i40.js";import{g as b,T as g}from"./help-BzfMEAUL.js";import{u as r}from"./editor-BWylDs4F.js";import"./index-uNgE_frb.js";import"./floating-ui.react-dom-CRENXhNN.js";import"./Input-dVgdocrC.js";import"./file-BxzTdZ94.js";const d=24*60*60*1e3;function S(){const{modelName:o}=x(),p=m(e=>e.models),s=m(e=>e.lastSelectedModel),v=r(e=>e.previewTable),i=r(e=>e.setPreviewQuery),n=r(e=>e.setPreviewTable),t=h(o)||o===(s==null?void 0:s.name)?s:p.get(encodeURI(o)),l={model:t.displayName,start:a(c(Date.now()-d)),end:a(new Date),execution_time:a(c(Date.now()-d)),limit:1e3},{refetch:f}=D(l),{refetch:w}=P(l);return T.useEffect(()=>{i(void 0),n(void 0),f().then(({data:e})=>{i(e==null?void 0:e.sql)}),w().then(({data:e})=>{n(b(e))})},[t]),u.jsx("div",{className:"flex overflow-hidden w-full h-full px-2",children:u.jsx(g,{headline:t==null?void 0:t.displayName,data:v??[[],[]]})})}export{S as default};