Skip to content

Conversation

mludvig
Copy link
Contributor

@mludvig mludvig commented Sep 30, 2025

Pinned ("Essential") bots should show in the left-hand side column by default for unified user experience. All users should have a no-friction access to these bots.

This patch creates a new section in the Drawer and displays the essential bots.

image

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@wadabee wadabee left a comment

Choose a reason for hiding this comment

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

Thank you for the PR.
My team would like to avoid having pinned bots constantly displayed in the Drawer.
The reason is that we believe pinned bots can be quickly checked by opening the BotStore page, and frequently used ones should be starred.
We are concerned that many people would find it bothersome to have pinned bots displayed in the Drawer when the number of pinned bots increases.

However, we believe that making the constant display of pinned bots an optional choice would benefit many people with this implementation.
I have made inline comments, so please check them.

Comment on lines +314 to +332
{pinnedBots?.filter((bot) => bot.available).length ? (
<ExpandableDrawerGroup
label={t('app.pinnedBots')}
className="border-t bg-aws-squid-ink-light pt-1 dark:bg-aws-squid-ink-dark">
{pinnedBots
.filter((bot) => bot.available)
.map((bot) => (
<DrawerItem
key={bot.id}
isActive={botId === bot.id && !conversationId}
to={`/bot/${bot.id}`}
icon={<IconPinnedBot showAlways />}
labelComponent={bot.title}
onClick={onClickNewBotChat}
/>
))}
</ExpandableDrawerGroup>
) : null}

Copy link
Contributor

Choose a reason for hiding this comment

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

Please make it possible to toggle the display of pinned bots on/off using DrawerOptions.
While other items have display count settings, please make it so that pinned bots can be toggled on/off for display visibility.
https://github.com/aws-samples/bedrock-chat/blob/v3/frontend/src/components/DialogDrawerOptions.tsx

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