Adrian Cowan
530d3e1d1d
website: Add missing message features in label initial prompt
...
Now the backend passes a single message conversation for the label initial prompt task,
this allows us to just show the conversation the same way we do for the other labelling tasks.
The MessageView component was now no longer used and all messages shown are using MessageTableEntry.
2023-02-01 19:36:52 +11:00
rjmacarthy
eeab643dc3
Add link to user admin page in messages dropdown for admin users
...
Fix potential undefined data user
revert type change next-auth
2023-01-30 19:54:03 +00:00
AbdBarho
d7f2a6d0d9
Consolidate API calls to TaskContext
2023-01-29 11:03:07 +01: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
Adrian Cowan
ab4dce3f60
website: Support new widget types for labelling ( #966 )
...
* website: Support new widget types for labelling
Adds proper support for yes/no spam style questions as well as a simple interface for flag style labels.
Also cleaned up the Task component to fix some rerender issues.
* website: Fix some UI text, adjust yes/no button alignment
* website: Remove left over console.log
Co-authored-by: notmd <33456881+notmd@users.noreply.github.com >
---------
Co-authored-by: notmd <33456881+notmd@users.noreply.github.com >
2023-01-28 17:07:43 +01:00
Keith Stevens
c47b8f175d
Merge pull request #959 from LAION-AI/oasst-header
...
Send `x-oasst-user` header to backend
2023-01-28 16:23:07 +09:00
Keith Stevens
b3f28d2bf3
Merge pull request #940 from rjmacarthy/refactor/tasks-page
...
website: Refactor task page routes and repetition
2023-01-28 16:07:42 +09:00
AbdBarho
e4dcfe4161
Use new reply_message
2023-01-27 22:41:20 +01:00
AbdBarho
3c791efb79
Move api calls to oasst_api_client
2023-01-27 22:33:04 +01:00
Adrian Cowan
356fd775e9
Add emoji reactions and reporting for messages (website) ( #952 )
...
* website: Move labelling to message ... menu and add reporting and emoji reactions
We can add more emoji easily in future, we just need to pick ones that we have consistent icons for.
Also added "open in new tab" option so that messages can be navigated to from tasks on mobile.
* website: Make new label and report strings translatable.
* website: Move report api call to oasst client
* small fixes
* pre-commit
---------
Co-authored-by: AbdBarho <ka70911@gmail.com >
2023-01-27 20:52:40 +01:00
rjmacarthy
bf77d4dc60
Add types for TaskType to TaskHook
...
Pre-commit
Apply better naming to task api hooks
Lint
2023-01-27 19:09:28 +00:00
rjmacarthy
24f4c08796
Refactor task page routes and repetition
...
Remove blank line
Lint add blank line
Link pre-commit
2023-01-27 10:16:02 +00:00
notmd
94d2ed820e
Refactor OasstApiClient
2023-01-25 15:04:39 +07:00
Adrian Cowan
007773a3f5
website: Switch to likert style labelling
2023-01-23 21:51:17 +11:00
Keith Stevens
b05df5b095
Merge pull request #861 from LAION-AI/last-updated
...
Show last updated on leaderboard
2023-01-21 10:34:23 +09:00
AbdBarho
0c5e2fc45d
Show last updated on leaderboard
2023-01-20 13:00:59 +01:00
AbdBarho
e80a69dd8a
Fetch available tasks
2023-01-20 12:16:17 +01:00
Keith Stevens
df1eca4eaf
Ensuring the website uses the most specific auth type with the backend when fetching and interacting with tasks
2023-01-19 17:21:41 +09:00
Keith Stevens
7e1b57a93e
Fixing the build
2023-01-16 18:58:44 +09:00
AbdBarho
61bae79fbf
Update Leaderboard.ts
2023-01-16 07:39:29 +01:00
notmd
eec432758b
remove text and fix lint
2023-01-16 11:55:21 +07:00
notmd
510c718f2b
allow to select role when sigin in debug mode
2023-01-16 11:49:53 +07:00
AbdBarho
ab63150004
Use new leaderboard api
2023-01-15 14:07:30 +01:00
Keith Stevens
69be679fe1
Merge pull request #701 from LAION-AI/673-enhanced-admin-routing
...
673 enhanced admin management
2023-01-15 08:34:09 +09:00
AbdBarho
335218ba22
Fix full labeling task display
2023-01-14 09:51:12 +01:00
Keith Stevens
8203406fa1
Merging with main changes
2023-01-14 17:03:18 +09:00
Keith Stevens
f9c8d1dd81
Combining the admin API routes with the backends user routes
2023-01-14 16:55:14 +09:00
Keith Stevens
5732952b3e
Udpating the leaderboard components to use real data
2023-01-14 10:27:38 +09:00
James Melvin
0979b4300a
fix: non-empty text before submitting on create task
2023-01-13 18:58:42 +05:30
klotske
82a60ef904
Change typings & refactor FlaggableElement
2023-01-12 16:10:05 +03:00
Keith Stevens
e1dd677677
Merging with main
2023-01-11 08:47:16 +09:00
Adrian Cowan
805bc33ba4
website: Unify task controls
...
Also happens to fix some issues with the no-changes are-you-sure dialog only appearing once and other form values not being reset correctly.
2023-01-11 02:59:10 +11:00
Keith Stevens
747c3501d1
Adding a new web api path that returns valid labels and then fetching from that within FlaggableElement. This allows FlaggableElement to fetch all its own data and remove the need to pipe labels through a series of components
2023-01-10 20:57:42 +09:00
Keith Stevens
9e14de2570
Moving the ValidLabel type
2023-01-10 16:30:44 +09:00
AbdBarho
54a042d002
Centralize task types
2023-01-10 06:51:59 +01:00