Update avatar styling and enhance workflow
Removed 'mr-2' from avatar styling in 'account-selector.tsx' and enhanced alignment within the group. Several environment variables were added in the GitHub workflow, improving the security and consistency of the test job. The names for 'typescript' and 'test' jobs are also standardized for better readability.
This commit is contained in:
8
.github/workflows/workflow.yml
vendored
8
.github/workflows/workflow.yml
vendored
@@ -6,6 +6,7 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
jobs:
|
jobs:
|
||||||
typescript:
|
typescript:
|
||||||
|
name: ʦ TypeScript
|
||||||
timeout-minutes: 8
|
timeout-minutes: 8
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -37,8 +38,15 @@ jobs:
|
|||||||
run: pnpm run lint
|
run: pnpm run lint
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
name: ⚫️ Test
|
||||||
timeout-minutes: 8
|
timeout-minutes: 8
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
|
||||||
|
SUPABASE_DB_WEBHOOK_SECRET: ${{ secrets.SUPABASE_DB_WEBHOOK_SECRET }}
|
||||||
|
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
|
||||||
|
STRIPE_WEBHOOK_SECRET: ${{ secrets.STRIPE_WEBHOOK_SECRET }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ export function AccountSelector({
|
|||||||
<span className={'flex items-center space-x-2'}>
|
<span className={'flex items-center space-x-2'}>
|
||||||
<Avatar
|
<Avatar
|
||||||
className={
|
className={
|
||||||
'group-hover:border-border mr-2 h-6 w-6 border border-transparent'
|
'group-hover:border-border h-6 w-6 border border-transparent'
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<AvatarImage src={account.image ?? undefined} />
|
<AvatarImage src={account.image ?? undefined} />
|
||||||
@@ -191,7 +191,7 @@ export function AccountSelector({
|
|||||||
data-test={'account-selector-team'}
|
data-test={'account-selector-team'}
|
||||||
data-name={account.label}
|
data-name={account.label}
|
||||||
data-slug={account.value}
|
data-slug={account.value}
|
||||||
className={'group'}
|
className={'group flex space-x-2'}
|
||||||
key={account.value}
|
key={account.value}
|
||||||
value={account.value ?? ''}
|
value={account.value ?? ''}
|
||||||
onSelect={(currentValue) => {
|
onSelect={(currentValue) => {
|
||||||
@@ -204,14 +204,11 @@ export function AccountSelector({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Avatar
|
<Avatar
|
||||||
className={cn(
|
className={cn('h-6 w-6 border border-transparent', {
|
||||||
'mr-2 h-6 w-6 border border-transparent',
|
['border-border']: value === account.value,
|
||||||
{
|
['group-hover:border-border ']:
|
||||||
['border-border']: value === account.value,
|
value !== account.value,
|
||||||
['group-hover:border-border ']:
|
})}
|
||||||
value !== account.value,
|
|
||||||
},
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
<AvatarImage src={account.image ?? undefined} />
|
<AvatarImage src={account.image ?? undefined} />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user