Conversation
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
julien-nc
left a comment
There was a problem hiding this comment.
So we need something in the frontend to toggle is_remembered for a session, right?
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
…nAPI annotation Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
julien-nc
left a comment
There was a problem hiding this comment.
I hope you don't mind, I pushed a few commits to fix a typo and adjust the "update chat session" controller method.
Added, but it doesn't end up in the db, any idea why? |
|
Can you push your code? |
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
marcoambrosini
left a comment
There was a problem hiding this comment.
Nice that you've been able to do it like this in the end!
I would avoid complicating the default interface further and put this in the ... menu as an NcActionButton type="radio". It basically can behave like a switch
Screen.Recording.2025-12-16.at.16.14.16.mov
Feels like no one will ever see or use this then |
|
I hope you don't mind me pushing here. @janepie and me found out the custom setter was the issue. It somehow changes 0 to '' when updating the entity. It works fine with the magic setter method. |
…isRemembered and isSummaryUpToDate Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1460b53 to
1ef3c0f
Compare
…ssion's isRemembered and isSummaryUpToDate" This reverts commit 1ef3c0f.
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
mmh, I sort of agree. Hiding it in the ... menu makes it less likely for people to discover it :/ |
Copying from internal chat on the topic: |
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
@marcoambrosini We develop it for people to use it and we want it to be seen and used. Do you have any proposal for a location that is less "disruptive" and still visible? I changed the icon to the memory one (like that!), as it doesn't have a filled version I adapted the text to change to Remembered when clicked, wdyt?
|
|
Maybe a tradeoff would be to make the button "icon-only" (with the label becoming the html title) and add a NcActionCheclbox item in the dropdown menu. |
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
|
New proposal by @nimishavijay : make it a toggle instead of a primary button so it's less "big block"
|
| * Update session | ||
| * | ||
| * @param integer $sessionId The chat session ID | ||
| * @param string|null $title The new chat session title | ||
| * @param bool|null $is_remembered The new is_remembered status: Whether to remember the insights from this chat session across all chat session | ||
| * @return JSONResponse<Http::STATUS_OK, list{}, array{}>|JSONResponse<Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{error: string}, array{}> | ||
| * | ||
| * 200: The title has been updated successfully | ||
| * 404: The session was not found | ||
| */ | ||
| #[NoAdminRequired] | ||
| #[OpenAPI(scope: OpenAPI::SCOPE_DEFAULT, tags: ['chat_api'])] | ||
| public function updateChatSession(int $sessionId, ?string $title = null, ?bool $is_remembered = null): JSONResponse { |
There was a problem hiding this comment.
maybe it would be nicer to indicate the metadata part
| * Update session | |
| * | |
| * @param integer $sessionId The chat session ID | |
| * @param string|null $title The new chat session title | |
| * @param bool|null $is_remembered The new is_remembered status: Whether to remember the insights from this chat session across all chat session | |
| * @return JSONResponse<Http::STATUS_OK, list{}, array{}>|JSONResponse<Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{error: string}, array{}> | |
| * | |
| * 200: The title has been updated successfully | |
| * 404: The session was not found | |
| */ | |
| #[NoAdminRequired] | |
| #[OpenAPI(scope: OpenAPI::SCOPE_DEFAULT, tags: ['chat_api'])] | |
| public function updateChatSession(int $sessionId, ?string $title = null, ?bool $is_remembered = null): JSONResponse { | |
| * Update session's metadata | |
| * | |
| * @param integer $sessionId The chat session ID | |
| * @param string|null $title The new chat session title | |
| * @param bool|null $is_remembered The new is_remembered status: Whether to remember the insights from this chat session across all chat session | |
| * @return JSONResponse<Http::STATUS_OK, list{}, array{}>|JSONResponse<Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{error: string}, array{}> | |
| * | |
| * 200: Metaadata of the session has been updated successfully | |
| * 404: The session was not found | |
| */ | |
| #[NoAdminRequired] | |
| #[OpenAPI(scope: OpenAPI::SCOPE_DEFAULT, tags: ['chat_api'])] | |
| public function updateChatSessionMetadata(int $sessionId, ?string $title = null, ?bool $is_remembered = null): JSONResponse { |
There was a problem hiding this comment.
I think with the available params, it's kinda self explanatory, no?
There was a problem hiding this comment.
yeah but does require a little more effort to parse since updaing a session could also refer to message addition/deletion in that session.
| return false | ||
| }, | ||
|
|
||
| async updateSession() { |
There was a problem hiding this comment.
| async updateSession() { | |
| async updateSessionMetadata() { |
if the change in the controller is done
I'm ok with @nimishavijay suggestion as long as this action gets pushed into the menu on narrow screens. |
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>






Depends on
But is backward compatible