Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: insert text and images generated with nextcloud assistant #10730

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elzody
Copy link
Contributor

@elzody elzody commented Dec 12, 2024

Summary

These changes are needed from the Nextcloud side to support integrating the Nextcloud Assistant with Collabora. There is currently no way to add buttons to the notebook bar from other apps, so we would need to hardcode it just like we did with the Smart Picker.

The related pull request in richdocuments is: nextcloud/richdocuments#4333

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@pedropintosilva
Copy link
Contributor

I think this seems quite ready to review so, I have press the button "ready to review" . @elzody , if this is ready for review please rename the PR's title

@pedropintosilva
Copy link
Contributor

@elzody your branch looks not very up to date and thus I think it's missing some bits that is making CI not agreeable. Could you please rebase it?

@elzody elzody changed the title [WIP] feat: insert text and images generated with nextcloud assistant feat: insert text and images generated with nextcloud assistant Dec 17, 2024
@elzody elzody force-pushed the feat/nc-ai-assistant branch from 820dfdb to 0e107c3 Compare December 17, 2024 16:21
@elzody
Copy link
Contributor Author

elzody commented Dec 17, 2024

@pedropintosilva I went ahead and did a rebase onto master, it seems to have resolved some of the failing test, but some remain, and I am unsure how to interpret them to tell if they're related.

@eszkadev
Copy link
Contributor

I tried to run tests again, sometimes we have false failures

@eszkadev
Copy link
Contributor

Please rebase again, API was changed and it fails now

@elzody elzody force-pushed the feat/nc-ai-assistant branch from 0e107c3 to 998f012 Compare December 20, 2024 18:03
@elzody elzody force-pushed the feat/nc-ai-assistant branch from 998f012 to cbb038b Compare January 6, 2025 15:41
This is needed as we are implementing a new feature in Nextcloud which
integrates the Nextcloud AI Assistant. It will only be available if the
required wopi attribute is passed in CheckFileInfo, which currently is
only provided by Nextcloud.

Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
Change-Id: Idfbc00f46b400413053b6068b327014b5ddd7a35
@elzody elzody force-pushed the feat/nc-ai-assistant branch from 221ad9b to a3d96a0 Compare January 6, 2025 18:41
@juliusknorr juliusknorr requested a review from hfiguiere January 7, 2025 11:05
@@ -91,6 +91,9 @@ class Dispatcher {
this.actionsMap['remotelink'] = function () {
app.map.fire('postMessage', { msgId: 'UI_PickLink' });
};
this.actionsMap['remoteaicontent'] = function () {
app.map.fire('postMessage', { msgId: 'UI_InsertAIContent' });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so how does this work? What is the expected response to this message?

We'll need to update the documentation afterwards.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't expect any response, the integrator can handle it with whatever they want. Our integration is inserting text for example: nextcloud/richdocuments#4333

@pedropintosilva The smart picker is also not documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Review
Development

Successfully merging this pull request may close these issues.

5 participants