Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(show-page): keep organization modes usable on narrow screens

Max656292ddd336
diff --git a/ui/src/components/ui/segmented.tsx b/ui/src/components/ui/segmented.tsx
index 0069d7cd4..d7d783c70 100644
--- a/ui/src/components/ui/segmented.tsx
+++ b/ui/src/components/ui/segmented.tsx
@@ -39,6 +39,7 @@ export interface SegmentedRadioProps<T extends string> {
ariaLabel: string;
disabled?: boolean;
tone?: SegmentedTone;
+ className?: string;
}
export function SegmentedRadio<T extends string>({
@@ -48,6 +49,7 @@ export function SegmentedRadio<T extends string>({
ariaLabel,
disabled,
tone = 'mint',
+ className,
}: SegmentedRadioProps<T>) {
return (
<div
@@ -56,6 +58,7 @@ export function SegmentedRadio<T extends string>({
aria-disabled={disabled || undefined}
className={clsx(
'flex h-9 items-stretch gap-0.5 rounded-md border border-border bg-foreground/[0.03] p-0.5',
+ className,
disabled && 'opacity-60',
)}
>
diff --git a/ui/src/components/workbench/ShowPageWorkspaceAccessControl.test.tsx b/ui/src/components/workbench/ShowPageWorkspaceAccessControl.test.tsx
index 58e18bc1a..9373d06e1 100644
--- a/ui/src/components/workbench/ShowPageWorkspaceAccessControl.test.tsx
+++ b/ui/src/components/workbench/ShowPageWorkspaceAccessControl.test.tsx
@@ -222,7 +222,7 @@ describe('ShowPageWorkspaceAccessControl', () => {
expect(api.getResourceAccess).not.toHaveBeenCalled();
});
- it('orders Organization access from narrowest to broadest', async () => {
+ it('keeps the requested policy order while narrowing stays owner-aware', async () => {
renderControl();
const radios = await screen.findAllByRole('radio');
diff --git a/ui/src/components/workbench/ShowPageWorkspaceAccessControl.tsx b/ui/src/components/workbench/ShowPageWorkspaceAccessControl.tsx
index d67615946..0c9d5f77f 100644
--- a/ui/src/components/workbench/ShowPageWorkspaceAccessControl.tsx
+++ b/ui/src/components/workbench/ShowPageWorkspaceAccessControl.tsx
@@ -393,6 +393,7 @@ export function ShowPageWorkspaceAccessControl({
disabled={!editable}
ariaLabel={t('chat.showPage.workspaceAccess')}
tone="muted"
+ className="max-w-full [&>button]:min-w-0 [&>button]:whitespace-normal [&>button]:px-1.5 [&>button]:text-center [&>button]:leading-tight"
options={[
{ id: 'private', label: t('chat.showPage.workspaceModes.private') },
{ id: 'scope', label: t('chat.showPage.workspaceModes.scope') },