fix(market): add request plugin CTA to empty search results

This commit is contained in:
Junyan Qin
2026-03-28 22:16:23 +08:00
parent e7b22d6ebf
commit 1a51ba8e7e

View File

@@ -589,10 +589,17 @@ function MarketPageContent({
<LoadingSpinner text={t('market.loading')} /> <LoadingSpinner text={t('market.loading')} />
</div> </div>
) : plugins.length === 0 ? ( ) : plugins.length === 0 ? (
<div className="flex items-center justify-center py-12"> <div className="text-center text-muted-foreground py-12">
<div className="text-muted-foreground"> {searchQuery ? t('market.noResults') : t('market.noPlugins')}
{searchQuery ? t('market.noResults') : t('market.noPlugins')} {' · '}
</div> <a
href="https://github.com/langbot-app/langbot-plugin-demo/issues/new?template=plugin-request.yml"
target="_blank"
rel="noopener noreferrer"
className="text-primary hover:underline"
>
{t('market.requestPlugin')}
</a>
</div> </div>
) : ( ) : (
<> <>