Based on nextcloud/server#38854 we will add options to process selected text.
This is the summary of what I discussed with @julien-nc during our meeting:
- Assistant app will provide a generic way across nextcloud in the menubar
- For text we will have some sort of action to trigger this dialog which gets prefilled with the selected text, processing task, app, identifier)
- As text processing is an async operation, we will need
- a list of pending/finished tasks per document which could be rendered inline
- the list provides a action to insert at cursor position
- the list provides an option to dismiss the result
- the list needs regular refreshing, could also get triggered by the notification from the assistant app
Depends on
- Server: Provide an OCS endpoint to list tasks for app+identifier
- Assistant app: Provide a JS API to launch a modal, pseudo code API:
openTextProcessingModal(appId, identifier, task, inputText)
=> new Promise((resolve, reject) => { resolve(ScheduledTask) })
Based on nextcloud/server#38854 we will add options to process selected text.
This is the summary of what I discussed with @julien-nc during our meeting:
Depends on
Assistant app: PHP event dispatched to trigger enhancing the notification with the link to the file to open in text
UI questions to discuss