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: add 'Generate summary' integration: frontend ✨ #13803

Merged
merged 5 commits into from
Nov 22, 2024

Conversation

Antreesy
Copy link
Contributor

@Antreesy Antreesy commented Nov 18, 2024

☑️ Resolves

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

🏚️ Before 🏡 After
image imageimage
image image

🏁 Checklist

  • 🌏 Tested with different browsers / clients:
    • Chromium (Chrome / Edge / Opera / Brave)
    • Firefox
    • Safari
    • Talk Desktop
    • Not risky to browser differences / client
  • 🖌️ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible
  • 📗 User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

@Antreesy Antreesy added 2. developing feature: frontend 🖌️ "Web UI" client feature: integration 📦 Integration with 3rd party (chat) service labels Nov 18, 2024
@Antreesy Antreesy added this to the 🖤 Next Major (31) milestone Nov 18, 2024
@Antreesy Antreesy self-assigned this Nov 18, 2024
@Antreesy Antreesy changed the title fix: refactor unread marker styles feat: add 'Generate summary' integration: frontend ✨ Nov 18, 2024
@Antreesy Antreesy force-pushed the fix/13430/ai-summary-frontend branch 2 times, most recently from ceaf094 to 5a16319 Compare November 21, 2024 18:37
@Antreesy Antreesy marked this pull request as ready for review November 21, 2024 18:37
Comment on lines 76 to 79
getChatSummary: (state) => (token) => {
return Object.values(Object(state.chatSummary[token])).map(task => task.summary).join('\n\n')
?? t('spreed', 'Empty summary response')
},
Copy link
Contributor

Choose a reason for hiding this comment

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

This is where you should add the fallbacks (empty, error etc)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Follow-up

@Antreesy Antreesy force-pushed the fix/13430/ai-summary-frontend branch from 5a16319 to 4213c2f Compare November 22, 2024 09:33

getChatSummaryTaskQueue: (state) => (token) => {
return Object.values(Object(state.chatSummary[token]))
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
},
},
hasTaskFailed: (state) => (token) => {
return Object.values(Object(state.chatSummary[token])).any(task => task.status === TASK_PROCESSING.FAILED)
},

Use this to show the hint that sthg went wrong in summarizing. If you think that there are many hints (along with AI disclaimer), then don't show the summary, stop any tasks after the failed ones and show the failed summary text.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Follow-up

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy Antreesy force-pushed the fix/13430/ai-summary-frontend branch from b1f5b93 to d5dac2b Compare November 22, 2024 12:45
@Antreesy Antreesy merged commit 07dfdd5 into main Nov 22, 2024
47 checks passed
@Antreesy Antreesy deleted the fix/13430/ai-summary-frontend branch November 22, 2024 12:47
@Antreesy
Copy link
Contributor Author

/backport to stable30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing feature: frontend 🖌️ "Web UI" client feature: integration 📦 Integration with 3rd party (chat) service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants