mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
add help center link to user menu
This commit is contained in:
1 parent
b73bb3971e
commit
80e9a8decb
4 files changed
+20
-2
No files matched your search
@@ -45,6 +45,8 @@ describe('AccountSwitcher', () => {
|
||||
expect(screen.getByRole('button')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
|
||||
it('returns null when no current user', () => {
|
||||
mockUseLoggedInAccounts.mockReturnValue({
|
||||
authors: [],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// NOTE: This file is stable and usually should not be modified.
|
||||
// It is important that all functionality in this file is preserved, and should only be modified if explicitly requested.
|
||||
|
||||
import { ChevronDown, LogOut, UserIcon, UserPlus, Settings } from 'lucide-react';
|
||||
import { ChevronDown, LogOut, UserIcon, UserPlus, Settings, HelpCircle } from 'lucide-react';
|
||||
import {
|
||||
DropdownMenu,
|
||||
DropdownMenuContent,
|
||||
@@ -72,6 +72,13 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) {
|
||||
<Settings className='w-4 h-4' />
|
||||
<span>Settings</span>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem
|
||||
onClick={() => window.open('https://soapbox.pub/shakespeare-resources/', '_blank')}
|
||||
className='flex items-center gap-2 cursor-pointer p-2 rounded-md'
|
||||
>
|
||||
<HelpCircle className='w-4 h-4' />
|
||||
<span>Help</span>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem
|
||||
onClick={onAddAccountClick}
|
||||
className='flex items-center gap-2 cursor-pointer p-2 rounded-md'
|
||||
|
||||
@@ -88,6 +88,8 @@ describe('LoginArea', () => {
|
||||
expect(screen.getByRole('button')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
|
||||
it('maintains consistent layout structure whether logged in or not', () => {
|
||||
// Test logged out state
|
||||
mockUseLoggedInAccounts.mockReturnValue({
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// It is important that all functionality in this file is preserved, and should only be modified if explicitly requested.
|
||||
|
||||
import { useState } from 'react';
|
||||
import { User, UserPlus, ChevronDown, Settings } from 'lucide-react';
|
||||
import { User, UserPlus, ChevronDown, Settings, HelpCircle } from 'lucide-react';
|
||||
import {
|
||||
DropdownMenu,
|
||||
DropdownMenuContent,
|
||||
@@ -64,6 +64,13 @@ export function LoginArea({ className }: LoginAreaProps) {
|
||||
<Settings className='w-4 h-4' />
|
||||
<span>Settings</span>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem
|
||||
onClick={() => window.open('https://soapbox.pub/shakespeare-resources/', '_blank')}
|
||||
className='flex items-center gap-2 cursor-pointer p-2 rounded-md'
|
||||
>
|
||||
<HelpCircle className='w-4 h-4' />
|
||||
<span>Help</span>
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem
|
||||
onClick={() => setLoginDialogOpen(true)}
|
||||
|
||||
Reference in new issue
Block a user