Skip to content

Fix: show Assistant icon if only translation provider available#8753

Merged
blizzz merged 1 commit into
mainfrom
fix/assistant-icon-on-translate
Jun 17, 2026
Merged

Fix: show Assistant icon if only translation provider available#8753
blizzz merged 1 commit into
mainfrom
fix/assistant-icon-on-translate

Conversation

@janepie

@janepie janepie commented Jun 16, 2026

Copy link
Copy Markdown
Member

No description provided.

@janepie

janepie commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

/compile

@blizzz

blizzz commented Jun 16, 2026

Copy link
Copy Markdown
Member

/compile

no compile in text needed – assets are automatically build after merge

Comment thread src/components/Menu/entries.ts Outdated
priority: 7,
}
const hasAssistantTaskTypes = loadState('text', 'taskprocessing', []).length > 0
const hasAssistantTaskTypes = loadState('text', 'taskprocessing', []).length > 0 || loadState('text', 'translation_available', false)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this complete? My gut feeling says, the next other thing that is neither taskprocessing nor translation will potentially end up in the same state?

@janepie janepie Jun 16, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Well that's a problem of the hardcoded task type list in https://github.com/nextcloud/text/blob/678b78d451c5557269998e01d42c9b98d7e949d6/lib/Service/InitialStateProvider.php
I actually didn't check if we have new ones that are not in there. Maybe it would be nicer to filter for task types that have Text as input? But that would be a bigger change, not for tonight :D

@janepie

janepie commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

no compile in text needed – assets are automatically build after merge

Oh good to know!
For testing: task types are cached so if you disable them it may take a moment for the change to reach text

@blizzz

blizzz commented Jun 16, 2026

Copy link
Copy Markdown
Member

no compile in text needed – assets are automatically build after merge

Oh good to know! For testing: task types are cached so if you disable them it may take a moment for the change to reach text

What is a moment? Generally acceptable, and it is highly unlikely that someone just sits there and toggles task types all day long.

@janepie

janepie commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

What is a moment?

1 min :)

@janepie janepie force-pushed the fix/assistant-icon-on-translate branch from 231270c to 2dc9698 Compare June 16, 2026 20:12

@blizzz blizzz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

makes sense to me

Signed-off-by: janepie <49834966+janepie@users.noreply.github.com>
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
@janepie janepie force-pushed the fix/assistant-icon-on-translate branch from 2dc9698 to 80ee77e Compare June 17, 2026 11:10
@janepie

janepie commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

/backport to stable34

@janepie

janepie commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

/backport to stable33

@janepie

janepie commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

Playwright tests are breaking everywhere and should be unrelated

@blizzz blizzz merged commit 7e1ae26 into main Jun 17, 2026
60 of 64 checks passed
@blizzz blizzz deleted the fix/assistant-icon-on-translate branch June 17, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants