-
Notifications
You must be signed in to change notification settings - Fork 91
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: handle assistant sync task #5269
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments, otherwise this looks good and works (with nextcloud/server#43005 for testing)
src/components/Assistant.vue
Outdated
@@ -213,7 +214,7 @@ export default { | |||
}, | |||
computed: { | |||
showAssistant() { | |||
return !this.$isRichWorkspace && !this.$isPublic && window?.OCA?.TPAssistant?.openAssistantForm | |||
return !this.$isRichWorkspace && !this.$isPublic && window?.OCA?.TpAssistant?.openAssistantForm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@julien-nc Was there a casing change in the API here? Is it bound to a Nextcloud release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, last release has it upper case and main branch as well (just some intermediate state before nextcloud/assistant#27 had the p lower case) so @luka-nextcloud We should revert this change to be TPAssistant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late answer. This was and will stay OCA.TPAssistant
.
@luka-nextcloud Could you also take the time to add cypress coverage for this part? We can enable the testing app for this in the github action. |
Tested and works function wise 👍 @julien-nc I noticed some odd behaviour with nextcloud/server#43005 where having multiple text processing providers enabled leads to the async one alwas being used in the assistant modal. I haven't touched any configuration, though the AI settings show the synchronous one as a default: |
6915ba4
to
cd4d726
Compare
I've added it, please check. |
@@ -19,8 +19,10 @@ if [ $? -eq 0 ]; then | |||
php /var/www/html/occ user:add --password-from-env user2 | |||
php /var/www/html/occ app:enable viewer | |||
php /var/www/html/occ app:enable text | |||
php /var/www/html/occ app:enable assistant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was for some way of running isolated cypress tests locally, but never used that script myself. @max-nextcloud Do you happen to know if we still make use of that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was just for local tests, but nowadays we could use @nextcloud/cypress/docker
which also works locally :)
cd4d726
to
ec0a368
Compare
ec0a368
to
750084a
Compare
750084a
to
4eccbde
Compare
@luka-nextcloud Could you check why the cypress tests fail there? |
@juliushaertl Thanks, I'll check that. Maybe there's a mismatch between the default value displayed in the settings frontend and the actual default selected provider when creating a task. |
Signed-off-by: Luka Trovic <[email protected]>
Signed-off-by: Luka Trovic <[email protected]>
4eccbde
to
10ebf2e
Compare
Signed-off-by: Julius Härtl <[email protected]>
Pushed a small adjustment for the github action that should make cypress pass. |
📝 Summary
🖼️ Screenshots
🚧 TODO
🏁 Checklist
npm run lint
/npm run stylelint
/composer run cs:check
)