Andreas Köpf
eb340e0d9a
removed a ':' for copy message link
2023-02-09 14:52:02 +00:00
notmd
c8f567e930
fix message reaction count visibility ( #1382 )
...
close #1367
* Only show when the user is author, admin or has reacted to the message for all pages.
* Add disabled state when user is author
2023-02-09 19:31:04 +09:00
Adrian Cowan
8cbe197d1b
website: "Wrong Language" -> "Not {lang}" ( #1300 )
...
Change the "Wrong Language" labelling flag to instead say "Not English", "Not French" etc depending on the messages tagged language
2023-02-08 19:23:53 +11:00
notmd
7175ce364c
Hide message reaction count when user not reacted yet ( #1303 )
...
close #1252
Also add a copy message link feature
2023-02-08 15:28:37 +09:00
Mehdi Zibout
3d221f8925
Expose thumbs up/down buttons in the message table ( #1185 )
...
* Expose thumbs up/down buttons in the message table
* show thumbs up/down count only when its greater than 0
2023-02-06 20:59:22 +01:00
Richard Macarthy
3b61a26c9c
Add halt tree, and copy message id features ( #1088 )
2023-02-05 15:09:39 +09:00
Adrian Cowan
0a9f0aea92
website: Fix bug introduced into optimised build in recent emoji cleanup ( #1085 )
...
The issue was the omtimised build was optimising the "+1" object key name to just "1" causing the context menu to try to shown an undefined emoji icon.
2023-02-03 14:21:13 +01:00
Adrian Cowan
8cd5107601
website: cleanup emoji handling, hide all unknown emojis ( #1082 )
2023-02-03 21:05:41 +09:00
rjmacarthy
e9add425e6
Add delete message feature
...
Remove deleted property from Message
Add dedicated route for delete_message
Pre-commit
Revert change to promp_repository fetch_message
Remove blank line
2023-02-02 13:33:22 +00:00
Andreas Köpf
c84453900f
simplify destructuring
...
Co-authored-by: notmd <33456881+notmd@users.noreply.github.com >
2023-02-02 10:23:06 +01:00
Andreas Köpf
aa39019e1c
hide system emojis starting with '_'
2023-02-02 00:23:33 +00:00
notmd
79a39771aa
remove root styles folder
2023-02-01 17:55:29 +07:00
rjmacarthy
54849d30fa
Update user icon in messages dropdown
2023-01-31 08:21:40 +00: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
Keith Stevens
b0ee9bea5f
Addressing review comments
2023-01-29 15:13:50 +09:00
Keith Stevens
2e1abd3f69
Copying from #769 to implement mock service worker
2023-01-28 20:09:04 +09:00
AbdBarho
ab227c5db5
Fix error in labeling tasks
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
Adrian Cowan
a6d23821be
website: Highlight target message
2023-01-23 22:49:30 +11:00
AbdBarho
2802bc1581
Render whitespace in messages
2023-01-20 13:51:47 +01:00
AbdBarho
47c402e762
More space for messages on narrow screen
2023-01-20 10:37:54 +01:00
Yannic Kilcher
51a1d9a841
fixed white-space issue for messages that contain code
2023-01-17 22:33:23 +01:00
rsandb
9423f0c973
Fix width issue for messages on desktop
...
Also replaced grid with box because it wasn't using any grid props and was just calling an extra element
2023-01-14 21:36:35 -06:00
AbdBarho
335218ba22
Fix full labeling task display
2023-01-14 09:51:12 +01:00
rsandb
eb0988bee9
Message Styling For Mobile
...
Decreased padding for mobile and changed some styling to give better contrast
2023-01-13 19:57:46 -06: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
klotske
b2fbc5d2ad
Add enabled & linkEnabled props to messages
2023-01-13 13:10:06 +03:00
klotske
82b2693ed6
Remove unused import
2023-01-12 16:17:08 +03:00
klotske
82a60ef904
Change typings & refactor FlaggableElement
2023-01-12 16:10:05 +03:00
klotske
d8328807f4
Remove redundant LinkOverlay
2023-01-12 12:51:37 +03:00
rsandb
80cf195972
Dashboard Integration
2023-01-11 22:12:09 -06:00
klotske
606e07c6a1
Fix link behaviour
2023-01-11 20:59:46 +03:00
klotske
cc08a5573b
Wrapped message in nextjs link
2023-01-11 19:00:14 +03:00
Keith Stevens
aba5b43a37
Minimal fixing for the Message type in one context
2023-01-11 16:40:28 +09:00
Keith Stevens
454f332823
Ensuring the flagging post has a message or post id
2023-01-11 16:36:40 +09:00
Keith Stevens
17bcc53fb7
Merging with main again
2023-01-11 15:02:29 +09:00
rsandb
f61f582a9b
Integrate Dashboard with Messages/Styling Changes
2023-01-10 18:48:14 -06: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
Keith Stevens
54cc88bb1f
Ensure FlaggableElement always has the set of labels
2023-01-10 14:08:43 +09:00
Keith Stevens
dca0ba1774
Fixing most of the eslint warnings in the web code
2023-01-07 19:57:59 +09:00
jojopirker
d0bc720761
inital try for navigation messages trees
...
should be redone probably in a recursive way...
2023-01-05 12:17:45 +01:00
jojopirker
efdfb09695
fixed typo
2023-01-04 20:04:26 +01:00
jojopirker
910c1c88ce
pre-commit
2023-01-04 15:42:51 +01:00
jojopirker
be22c77b07
moved components into new folder
2023-01-04 15:38:26 +01:00