-
Notifications
You must be signed in to change notification settings - Fork 113
Closed
Labels
Description
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
- Will trigger a dialog
- 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) })
-
Assistant app: PHP event dispatched to trigger enhancing the notification with the link to the file to open in text
- Task is finished -> assistant app prepares a notification -> emits an event -> text adds the file link (based on app+identifier) -> assistant app emits the notification
-
UI questions to discuss
- Where to put the processing options (menubar button, popover menu on select, menu next to the paragraph)?
- How does the list look like (positioning, overflow, buttons, mobile)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
☑️ Done
Status
🎉 Done