Commit Graph

15 Commits

Author SHA1 Message Date
Kian-Meng Ang 1e321a6fca Fix typos (#1143)
Found via `codespell -S .mypy_cache,yarn.lock,*.json,*.ipynb -L
rouge,nam,vie`
2023-02-05 20:18:03 +01:00
AbdBarho e8e3f28665 update hooks 2023-02-03 08:30:19 +01:00
AbdBarho 77cc96d401 TaskContext as subset of ApiHookState 2023-01-29 11:38:16 +01:00
AbdBarho d7f2a6d0d9 Consolidate API calls to TaskContext 2023-01-29 11:03:07 +01:00
Adrian Cowan 8b152fad1d website: Simplify isLoading handling 2023-01-29 20:48:30 +11:00
Adrian Cowan 21c4a1263a website: Add head to task pages even if no task and improve var name 2023-01-29 12:09:58 +11:00
Adrian Cowan e0e398fa8b website: Improve reliability of e2e tests 2023-01-29 03:17:44 +11:00
AbdBarho e80a69dd8a Fetch available tasks 2023-01-20 12:16:17 +01:00
rjmacarthy 2a8d38f058 Refactor fetch and post to use axios
Fix set_label id missing in payload use frontend_message_id

pre-commit

Refactor api fetcher/poster to axios create

lint

Remove string literal for path

Revert oasst_api_client.ts

Fix warning httpStatusCode OasstError optional parameter

Refactor remove api base url for local api

Lint add blank line
2023-01-13 17:05:10 +00:00
Adrian Cowan 5054e19e93 website: Remove next task button and load new task immediately
Also disable the task inputs while the task is submitted and before the new task is ready in case the users network is slow or something.
2023-01-13 23:40:16 +11:00
AbdBarho 54a042d002 Centralize task types 2023-01-10 06:51:59 +01:00
AbdBarho 94151f75e1 shorter dedupe duration 2023-01-08 20:16:10 +01:00
AbdBarho 30a034988f Validate on mount 2023-01-08 19:56:56 +01:00
AbdBarho ad91bfe201 Use hooks for "create" tasks 2023-01-08 19:19:52 +01:00
AbdBarho a19e0fa085 Extract generic code out of labeling task 2023-01-08 10:52:57 +01:00