Commit Graph
119 Commits
Author SHA1 Message Date
Guilhem eabca83ada fix alignment and add edges 2024-10-09 17:56:10 +02:00
HugoCasaandRuben Fiszel 304dac3447 feat: http routing (#4339)
* feat: http routing

* all

* feat: improve UI

* final stuff

* fix: sqlx

* fix: nit

* fix: nits

* fix: error handler display

* fix: routes panel perms

* all

* fix: improve ability to paste from macos in vscode extension

* fix lock-write for deno

* all

* cleaning

* fix

* cli preprocessor

* nits

* nits

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2024-09-20 15:38:38 +02:00
pyranotaandRuben Fiszel d6d4756b7a feat: Allow setProgress and getProgress from within the script (#4400)
* Allow setting progress explicitly from script body.

This feature exposes:
 * `getProgress`
 * `setProgress`
 * `incProgress`

API in TypeScript client (python is coming soon).

NOTE: Progress cannot be out of range 0..100 and cannot decrease.

With exposed APIs there is also UI changes, so progress can be shown for individual jobs as well.

For optimization reasons, jobs start to ask for progress only after N-seconds of execution.

* feat: Add `shell.nix`

If you dont have anything but nix, dont worry, run nix-shell in root, or activate with direnv and get all needed dependencies

NOTE: You will still need docker

* feat: Add `dev.nu` to typescript client

Little helper function, allowing developer to work on ts client easier.

To use:
  `./dev.nu watch`

Now add import of windmill in body of your script and `//nobundle` on top of the file

Edit ts client in your favourite editor and hit save. Script will do the rest.

* Cleanup files

* Fix: Failed to deserialize query string: missing field `get_progress`

* perf: Implement non-naive polling mechanism for getting job progress

* Add independant delay for getProgress

Problem in `TestJobLoader`:

There should be 2 delays:

    One until we find our first progress (every 5s)
    Once we found our first progress, we can do it every second

* nit: Use `query_scalar!` instead of `query_as`

* Fix: Sql error, no rows returned by a query that expected to return at least one row

* refactor: Remove global CSS for JobProgressBar

* Change UI for progress of flow subjobs

* Replace `Step 1` with `Running` in ProgressBar for individual jobs

* Remove `incProgress`

incProgress is not very usefull and error-prone

* perf: Set metric only for jobs that are actually using it

(https://github.com/windmill-labs/windmill/pull/4373#discussion_r1759843773)

* Offload registering progress from clients to server

* Add `jobId?` argument to typescript-client's `setProgress` and `getProgress`

Allows to set progress of other jobs and flows,
if jobId specified, than flow id will be inferred automatically.

Could be used by SDK.

* Add `Error::MetricNotFound` for better error handling

* Fix: Make `JobProgressBar` display in red when failed

* Add persistant progress bar

Now you can reload the page after job is done and progress will be still there

* Allow succeeded individual job's progress bar stick to 100%

* Add python support 

* nit: Remove usage of undefined variable in python-client

* Add `async` in ts client (for error handling)

* nit(frontend): Remove unused import

* Dont load JobProgressBar when it is not needed

* nit: npm check fix

* cargo sqlx prepare

* fix sqlx

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2024-09-18 01:16:19 +02:00
Ruben Fiszel 1ec45e5ad6 feat: add vim support for monaco/webeditor 2024-08-26 22:31:23 +02:00
Ruben Fiszel 32c0b89729 fix: update monaco-editor to latest monaco/language-client (#4285)
* all

* all

* all

* recomment useless extralib imports

* small impr
2024-08-25 15:29:28 +02:00
Ruben Fiszel d1c2e1f40b improve modularity for whitelabelling 2024-08-21 15:37:26 +02:00
Ruben Fiszel b02baa2cfb feat: remove nativets in favor of bun with native pragma 2024-07-29 19:20:00 +02:00
Ruben Fiszel 19d523dd64 feat: dynamic select (#4110) 2024-07-22 13:53:32 +02:00
Ruben Fiszel 97215a979f internal fix to improve exportability of code in react-sdk (#3978)
* all

* all

* all

* all

* fix

* remove vite config

* remove uncessary app.css

* all

* all

* all

* all

* all
2024-06-26 01:31:24 +02:00
Ruben Fiszel 717ecb93dd remove unecessary formatter black since ruff format now 2024-05-29 12:54:24 +02:00
HugoCasa 001278cddd feat: improve parsers when no main func (#3805)
* feat: improve parsers when no main func

* chore: update parser version
2024-05-23 20:36:16 +02:00
HugoCasa 8ae16d90ed feat: hide scripts with on function main from operators + badge/filter for devs (#3584)
* feat: save in DB whether script has not main function

* fix: if cannot parse script args, clear schema

* feat: no main function badge and filter

* fix: sqlx

* fix: no main
2024-04-22 15:59:13 +02:00
AméliaandFaton Ramadani dbb691084d Darkmode rework (#3578)
* darkmode_v2

* darkmode_v2

* feat(frontend): Fix dark theme

* feat(frontend): Remove submodule

---------

Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com>
2024-04-22 12:19:23 +02:00
Ruben Fiszel 071a0ae927 feat: show more for logs on s3 directly possible from browser log viewer 2024-04-17 21:42:46 +02:00
Faton Ramadani 000a4814e8 feat(frontend): Update shortcuts design (#3285)
* feat(frontend): Improve text colors + button shortcuts

* feat(frontend): revert theme changes

* fix(frontend): fix shortcuts

* fix(frontend): fix delete shortcut
2024-02-26 10:30:16 +01:00
Ruben Fiszel 628dccf16a feat: no logos for whitelabel licenses 2024-02-19 14:26:00 +01:00
Ruben Fiszel 8ea18e32b4 update sveltekit to 2.0 (#3214)
* update svelte

* update sveltekit

* fix checks

* fix checks
2024-02-14 00:52:50 +01:00
Faton Ramadani 620093271a feat(frontend): add confirmation modal to the app button (#3199)
* feat(frontend): add confirmation modal to the app button

* feat(frontend): add missing await

* feat(frontend): select the component immediatly
2024-02-12 10:53:49 +01:00
Ruben Fiszel c8a793d35e feat: add support for multiselect in python 2024-01-10 13:12:20 +01:00
Ruben Fiszel b5f1f99daa fix: fix multiplayer 2023-12-22 18:17:36 +01:00
Ruben Fiszel 642c037c1a feat: add button for auto-formatting 2023-12-22 05:16:33 +01:00
Ruben Fiszel d507ce449b feat: bun automatic type acquisition in frontend directly (#2884)
* foo

* ata

* done

* remove bun from lsp

* update all
2023-12-20 12:52:01 +01:00
HugoCasa a9b5d6bebb feat: sql types autocomplete (#2810)
* feat: sql types autocomplete

* fix: frontend check
2023-12-08 15:20:33 +01:00
Ruben Fiszel f50cef0367 feat: save inline scripts of apps to workspace + search by path 2023-12-03 15:13:57 +01:00
Faton Ramadani fe35c7ad3c feat(frontend): Buttons refactor (#2545)
* feat(frontend): wip

* feat(frontend): button refactor wip

* feat(frontend): button refactor wip

* feat(frontend): fix build

* feat(frontend): fix build

* fix(frontend): fix build

* fix(frontend): fix buttons styles

* fix(frontend): remove dev file

* feat(frontend): clean up

* feat(frontend): done

* feat(frontend): done

* feat(frontend): remove duplicated componnet

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): forked Flow icons

* feat(frontend): remove legacy dropdown

* feat(frontend): migrated all + remove dependencies

* feat(frontend): clean up
2023-11-10 09:43:10 +01:00
Faton RamadaniandRuben Fiszel 11e0bc76c4 feat(frontend): App polish (#2397)
* fix(frontend): app polish

* wip

* fix(frontend): rework schedule drawer

* fix(frontend): add Label wrapper for consistency

* fix(frontend): fix tab inconstiencies

* fix(frontend): make kbd modifier visible + fix spacings

* fix(frontend): add spinning animation when assistant is loading

* wip

* fix(frontend): add inner border

* feat(frontend): reorganised metadata fields

* feat(frontend): fix merge

* feat(frontend): fix build

* feat(frontend): fix build

* Update CenteredPage.svelte

* feat(frontend): fix inner-border dark

* wip

* feat(frontend): Fix buttons

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2023-10-08 23:31:53 +02:00
HugoCasa 5cca5833e9 feat: snowflake schema explorer + refactoring (#2260) 2023-09-08 16:49:47 +02:00
HugoCasa ec7d923cca feat: big query schema explorer (#2247)
* feat: big query schema explorer

* fix: schema caching
2023-09-07 17:49:21 +02:00
Ruben Fiszel 9859d080e4 fix frontend compile issues 2023-08-13 15:05:18 +02:00
Ruben Fiszel 2ba132bd05 feat: respect lockfiles for bun 2023-08-12 20:49:36 +02:00
HugoCasa 265b7d7fbe fix(frontend): reset btn for all langs (#1949) 2023-07-28 00:24:14 +02:00
Faton Ramadani 8fa9e3ca4c Dark mode v0 (#1893)
* feat(frontend): wip

* wip

* wip

* wip

* wip

* add toggle

* correctly handle monaco theme

* wip

* wip

* wip

* wip

* wip

* feat(frontend): Dark mode v0

* feat(frontend): Adap AI gen poppup

* feat(frontend): Adap script metadata labels

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix ressource picker

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix unreadable texts

* feat(frontend): Add theme toggle in the login page

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix language selection

* feat(frontend): Fix FlowStatusViewer colors

* feat(frontend): Fix divide colors

* feat(frontend): Fix flow graph buttons

* feat(frontend): add theme toggle in login modal

* feat(frontend): small ui fix

* feat(frontend): fix graph dark mode toggle
2023-07-25 10:43:04 +02:00
HugoCasa a6025ae75e feat(frontend): db schema explorer + db aware AI (#1920)
* feat(frontend): db schema explorer + db aware AI

* fix: explorer button consistency

* fix: explorer btn really consistent

* feat: improve autocompletion regex
2023-07-21 14:29:31 +03:00
HugoCasaandFaton Ramadani 2416805629 feat(frontend): generate scripts in the flow and app builders (#1886)
* feat: add inline code gen flow

* feat(frontend): add script gen to flow and app builders

* fix(backend): allow all users to use openai

* Fix build

* Fix build

* Fix build

---------

Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com>
2023-07-18 12:55:35 +02:00
HugoCasa 012ea2dc0a feat: generate and fix scripts using Autopilot powered by OpenAI #1827)
* feat(frontend): generate simple script from prompt

* feat(backend): add OpenAI key workspace settings

* feat(frontend): add OpenAI key workplace settings

* feat: proxy to backend + support all languages

* fix: openapi spec

* feat: ScriptGen new UI + gpt 4

* fix: openai key sqlx data

* fix: diffEditor optional

* feat: beta + minor improvements

* feat: resource type support

* feat: edit with AI

* feat: AI fix

* feat: minor improvements
content max length, format, env info

* fix: minor
2023-07-12 17:07:45 +02:00
Ruben Fiszel c669e9940b feat: native fetch + native postgresql jobs (#1796)
* push

* test

* test

* done

* fix

* modify script lang enum

* fix tests

* update wasm

* fix tests
2023-07-04 19:39:59 +02:00
Faton Ramadani 99d19f6c36 fix(frontend): Fix typing (#1774)
* feat(frontend): Add documentation link in the component settings

* feat(frontend): Add missing type

* feat(frontend): fix typing errors

* feat(frontend): fix typing errors
2023-06-27 14:10:40 +02:00
Ruben Fiszel e777a79a31 docs -> www 2023-06-24 19:31:29 +02:00
Ruben Fiszel ee433bdd4b feat: script versions history 2023-06-22 23:03:27 +02:00
Ruben Fiszel 80c07ad905 feat: add diff viewer to script autosave discard menu 2023-06-19 00:37:31 +02:00
Ruben Fiszel 43c89fbcfd few fixes + devfrontend v0 2023-06-08 14:06:42 +02:00
Ruben Fiszel f8050491f8 add folding to editor in flow and script editor 2023-06-06 13:44:39 +02:00
Ruben Fiszel e5eab9867b multiplayer fix 2023-05-30 21:18:53 +02:00
Ruben Fiszel 761a26a9a2 multiplayer fix 2023-05-30 21:05:59 +02:00
Ruben Fiszel 428e0ab2f8 feat: add multiplayer support for webeditor (#1562) 2023-05-30 17:42:27 +02:00
Ruben Fiszel 39d32130d8 update openapi-typescript-codegen 2023-05-24 12:30:21 +02:00
Ruben Fiszel 632be3b8fb feat: expose a react sdk to integrate windmill into react apps (#1605)
* expose react sdk

* expose react sdk

* iterate

* iterate

* iterate

* nit

* update example

* update example

* small fixes

* update all
2023-05-19 20:44:07 +02:00
Ruben Fiszel 89e55e0226 feat(lsp): add black + ruff + shellcheck (#1597) 2023-05-18 13:44:41 +02:00
Ruben Fiszel b4867f12bb fix(frontend): preserve customise arguments 2023-05-04 15:39:15 +02:00
Ruben Fiszel 5c67011a11 styling nits 2023-05-01 19:29:45 +02:00