Commit Graph

58 Commits

Author SHA1 Message Date
SwiftyOS
7a238f1f4d formatting 2024-09-27 16:26:28 +02:00
SwiftyOS
0c12c69e3b changed cursor on hover in block control panel 2024-09-27 16:26:15 +02:00
SwiftyOS
33f29bbd30 Change Add Item Button Color 2024-09-27 16:22:17 +02:00
SwiftyOS
519de16f0f tidy up 2024-09-27 16:11:07 +02:00
SwiftyOS
d364406954 Added a NodeOutputs component for rendering the outputs 2024-09-27 16:10:37 +02:00
SwiftyOS
ca6b01347e getting error colors just right 2024-09-27 15:41:44 +02:00
SwiftyOS
2155199e6f Changed status badge color 2024-09-27 15:30:19 +02:00
SwiftyOS
dfd324da1f Merge remote-tracking branch 'origin/master' into swiftyos/secrt-900-update-block-ui 2024-09-27 15:21:46 +02:00
SwiftyOS
9b8f7547de Added context menu 2024-09-27 15:19:48 +02:00
SwiftyOS
eadcd7a348 fixed white spot 2024-09-27 15:03:56 +02:00
SwiftyOS
7d5e7e1f04 tweaking css to hide white spot 2024-09-27 14:58:43 +02:00
SwiftyOS
fe7a689e9e formatting 2024-09-27 10:39:50 +02:00
SwiftyOS
0dfbf48024 fix history type issue 2024-09-27 10:39:24 +02:00
Zamil Majdy
1286a1b034 feat(platform): Sync on new UI design (#8194)
* feat(platform): Sync on new UI design

* simplify UI

* block list add border and remove padding

* add highlight on navbar button

---------

Co-authored-by: Swifty <craigswift13@gmail.com>
2024-09-27 10:31:44 +02:00
SwiftyOS
9e524db279 Merge remote-tracking branch 'origin/zamilmajdy/ui-update' into swiftyos/secrt-900-update-block-ui 2024-09-27 10:03:22 +02:00
Swifty
3f77c407b9 Merge branch 'master' into zamilmajdy/ui-update 2024-09-27 08:27:48 +02:00
Swifty
7b9bffdbab Merge branch 'master' into swiftyos/secrt-900-update-block-ui 2024-09-27 08:22:16 +02:00
SwiftyOS
0fa7e72e0c Change block header so block costs line up correctly 2024-09-27 08:21:47 +02:00
Toran Bruce Richards
dc6c1bb8b0 Feat(Builder): Add Video and Image Rendering to Block outputs (#8167)
Co-authored-by: Zamil Majdy <zamil.majdy@agpt.co>
2024-09-27 09:00:42 +07:00
Zamil Majdy
2a20106634 add highlight on navbar button 2024-09-26 13:15:12 -05:00
Zamil Majdy
841bed2c65 block list add border and remove padding 2024-09-26 12:40:35 -05:00
Zamil Majdy
8fd6b88748 Merge branch 'master' into zamilmajdy/ui-update 2024-09-26 12:34:05 -05:00
Zamil Majdy
86c05258fe simplify UI 2024-09-26 12:32:20 -05:00
Zamil Majdy
90d8f4ab7e feat(platform): Sync on new UI design 2024-09-26 12:07:02 -05:00
Swifty
beedc4b971 tweak(platform): Updated onOpenChange code style (#8187) 2024-09-26 15:09:01 +00:00
SwiftyOS
09afc5a670 updated the add property button 2024-09-26 16:56:52 +02:00
SwiftyOS
62e62effc6 modify layout of input items 2024-09-26 16:07:27 +02:00
SwiftyOS
320ead4862 update key name formatting 2024-09-26 15:47:29 +02:00
SwiftyOS
8f9d4adfee update font 2024-09-26 15:41:47 +02:00
SwiftyOS
53e16dca7c formatting 2024-09-26 12:29:02 +02:00
SwiftyOS
b72326e1d3 moved outputs down and disabled toggle 2024-09-26 12:28:41 +02:00
SwiftyOS
778403cd6f updated handle rendering 2024-09-26 12:28:26 +02:00
SwiftyOS
1a2ab80d0b update edge start / end positions 2024-09-26 12:26:50 +02:00
SwiftyOS
433951a668 formatting 2024-09-26 11:57:50 +02:00
SwiftyOS
034f854c0c Modifying layout of nodes 2024-09-26 11:57:22 +02:00
SwiftyOS
ef82903405 Rounding input boxes 2024-09-26 11:57:10 +02:00
SwiftyOS
a165202ae4 modifying how handle text is rendered 2024-09-26 11:57:03 +02:00
SwiftyOS
3aa68bbd9a Updated onOpenChange code style 2024-09-26 10:16:38 +02:00
Zamil Majdy
b4097f3a51 fix(platform): UI fixes; Fix block note UI displayed as normal block;Json-prettify execution output (#8169)
* fix(platform): UI fixes; Fix block note UI displayed as normal block; Json-prettify execution output

* fix(platform): UI fixes; Fix block note UI displayed as normal block; Json-prettify execution output

---------

Co-authored-by: Nicholas Tindle <nicholas.tindle@agpt.co>
2024-09-26 09:40:06 +02:00
Zamil Majdy
fcd61a69f7 fix(platform): UI fixes; Fix disabled Run/Stop button (#8171)
* fix(platform): UI fixes; Fix disabled Run/Stop button

* fix(platform): UI fixes; Fix disabled Run/Stop button

---------

Co-authored-by: Swifty <craigswift13@gmail.com>
2024-09-26 09:39:20 +02:00
Zamil Majdy
53a0ee2523 fix(platform): UI fixes; Fix default value on input fields & fix enum custom fields (#8182)
* fix(platform): Fix default value on input fields & fix enum custom fields

* fix(platform): Fix default value on input fields & fix enum custom fields
2024-09-26 09:38:58 +02:00
Swifty
8f980c43c5 fix(platform): Reset Block Control filters on popover close (#8156)
Reset Block Control filters on popover close

Co-authored-by: Zamil Majdy <zamil.majdy@agpt.co>
2024-09-26 09:32:01 +02:00
Swifty
7d8f2e6cc1 tweak(platform): Update Nav Menu styling (#8148)
* easy nav ui changes

* teaked mobile nav menu
2024-09-26 09:27:26 +02:00
Swifty
1d2e7b89ea tweak(platform): Update block descriptions and tweak block card ui (#8147)
* Update block descriptions and tweak block card ui

* updated string

* updated block descriptions

* updated output description

* fmt
2024-09-26 09:27:06 +02:00
Reinier van der Leer
5e2874c315 feat(platform): OAuth support + API key management + GitHub blocks (#8044)
## Config
- For Supabase, the back end needs `SUPABASE_URL`, `SUPABASE_SERVICE_ROLE_KEY`, and `SUPABASE_JWT_SECRET`
- For the GitHub integration to work, the back end needs `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET`
- For integrations OAuth flows to work in local development, the back end needs `FRONTEND_BASE_URL` to generate login URLs with accurate redirect URLs

## REST API
- Tweak output of OAuth `/login` endpoint: add `state_token` separately in response
- Add `POST /integrations/{provider}/credentials` (for API keys)
- Add `DELETE /integrations/{provider}/credentials/{cred_id}`

## Back end
- Add Supabase support to `AppService`
- Add `FRONTEND_BASE_URL` config option, mainly for local development use

### `autogpt_libs.supabase_integration_credentials_store`
- Add `CredentialsType` alias
- Add `.bearer()` helper methods to `APIKeyCredentials` and `OAuth2Credentials`

### Blocks
- Add `CredentialsField(..) -> CredentialsMetaInput`

## Front end
### UI components
- `CredentialsInput` for use on `CustomNode`: allows user to add/select credentials for a service.
  - `APIKeyCredentialsModal`: a dialog for creating API keys
  - `OAuth2FlowWaitingModal`: a dialog to indicate that the application is waiting for the user to log in to the 3rd party service in the provided pop-up window
- `NodeCredentialsInput`: wrapper for `CredentialsInput` with the "usual" interface of node input components
- New icons: `IconKey`, `IconKeyPlus`, `IconUser`, `IconUserPlus`

### Data model
- `CredentialsProvider`: introduces the app-level `CredentialsProvidersContext`, which acts as an application-wide store and cache for credentials metadata.
- `useCredentials` for use on `CustomNode`: uses `CredentialsProvidersContext` and provides node-specific credential data and provider-specific data/functions
- `/auth/integrations/oauth_callback` route to close the loop to the `CredentialsInput` after a user completes sign-in to the external service
- Add `BlockIOCredentialsSubSchema`

### API client
- Add `isAuthenticated` method
- Add methods for integration OAuth flow: `oAuthLogin`, `oAuthCallback`
- Add CRD methods for credentials: `createAPIKeyCredentials`, `listCredentials`, `getCredentials`, `deleteCredentials`
- Add mirrored types `CredentialsMetaResponse`, `CredentialsMetaInput`, `OAuth2Credentials`, `APIKeyCredentials`
- Add GitHub blocks + "DEVELOPER_TOOLS" category
- Add `**kwargs` to `Block.run(..)` signature to support additional kwargs
- Add support for loading blocks from nested modules (e.g. `blocks/github/issues.py`)

#### Executor
- Add strict support for `credentials` fields on blocks
- Fetch credentials for graph execution and pass them down through to the node execution
2024-09-26 00:36:29 +02:00
Swifty
3a1574e4bd tweak(platform): Add primary action buttons (#8161) 2024-09-25 22:00:24 +02:00
Aarushi
d220562806 tweak(frontend): Add msg for custom error (#8157)
add waitlist msg
2024-09-25 19:18:52 +01:00
Swifty
9f79e70b0f fix(platform): Fix REST API CORS issue + UI build for Firefox (#8140) 2024-09-25 11:06:47 +00:00
Nicholas Tindle
46b8f9af0a feat(builder): scaffold playwright (#8109) 2024-09-24 23:31:38 +00:00
Swifty
03b8f5ec6e feat(marketplace): Added a list of keywords to describe agents (#8146)
* Added more keywords

* formatting
2024-09-24 23:19:50 +00:00