Skip to content

Commit

Permalink
simplify elipsis span
Browse files Browse the repository at this point in the history
  • Loading branch information
nickoferrall committed Dec 4, 2024
1 parent 1044c0d commit b073840
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,7 @@ const ReflectionGroupTitleEditor = (props: Props) => {
<RootBlock data-cy='group-title-editor'>
<FormBlock onSubmit={onSubmit}>
{isLoading ? (
<span
className={`inline-block text-left font-semibold transition-all duration-200 ${
isExpanded ? 'text-white' : 'text-slate-700'
}`}
style={{width: '172px'}}
>
<span className='inline-block text-left font-semibold'>
<Ellipsis />
</span>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ const generateAIGroupTitle = async (
) => {
const manager = new OpenAIServerManager()
const aiTitle = await manager.generateGroupTitle(reflections)
if (!aiTitle) {
standardError(new Error('Failed to generate AI title'))
return
}
await updateSmartGroupTitle(reflectionGroupId, aiTitle)
const newTitle = aiTitle ?? reflections[0]?.plaintextContent ?? ''
if (!aiTitle) standardError(new Error('Failed to generate AI title'))
await updateSmartGroupTitle(reflectionGroupId, newTitle)
dataLoader.get('retroReflectionGroups').clear(reflectionGroupId)
publish(
SubscriptionChannel.MEETING,
Expand Down

0 comments on commit b073840

Please sign in to comment.