From d06266fb938f5d3ca11210e47637aca1574c5273 Mon Sep 17 00:00:00 2001 From: Nikolai Giman Date: Sun, 5 Apr 2026 22:39:03 +0200 Subject: [PATCH] fix: ui, locale, tests --- .../src/api/__tests__/api-tokens.test.ts | 4 ++-- .../src/api/__tests__/collaboration.test.ts | 2 +- .../src/api/__tests__/webhooks.test.ts | 2 +- web/src/components/UserMenu.vue | 23 ++++++++++--------- .../features/base/TvMobileBottomNav.vue | 2 +- .../organizations/OrganizationsPanel.vue | 4 +++- web/src/locales/en.ts | 2 ++ web/src/locales/index.ts | 2 +- web/src/locales/ru.ts | 2 ++ 9 files changed, 25 insertions(+), 18 deletions(-) diff --git a/taskview-packages/taskview-api/src/api/__tests__/api-tokens.test.ts b/taskview-packages/taskview-api/src/api/__tests__/api-tokens.test.ts index 69be2af..19fd3ac 100644 --- a/taskview-packages/taskview-api/src/api/__tests__/api-tokens.test.ts +++ b/taskview-packages/taskview-api/src/api/__tests__/api-tokens.test.ts @@ -748,7 +748,7 @@ describe('API Tokens', () => { const user2Token = await $tvApiForSecondUser.apiTokens.create({ name: 'User2 token' }); - const result = await $api.apiTokens.delete(user2Token!.item.id); + await $api.apiTokens.delete(user2Token!.item.id); // should return false or not delete it const user2Tokens = await $tvApiForSecondUser.apiTokens.fetch(); const stillExists = user2Tokens!.find(t => t.id === user2Token!.item.id); @@ -827,7 +827,7 @@ describe('API Tokens', () => { headers: { Authorization: `Bearer ${created!.token}` }, })); - const result = await tokenApi.collaboration.inviteUserToGoal({ + await tokenApi.collaboration.inviteUserToGoal({ goalId, email: `token-invite-${Date.now()}@test.com`, }).catch((err) => err.status); diff --git a/taskview-packages/taskview-api/src/api/__tests__/collaboration.test.ts b/taskview-packages/taskview-api/src/api/__tests__/collaboration.test.ts index c8b4f8c..a6e78ea 100644 --- a/taskview-packages/taskview-api/src/api/__tests__/collaboration.test.ts +++ b/taskview-packages/taskview-api/src/api/__tests__/collaboration.test.ts @@ -318,7 +318,7 @@ describe('Collaboration', () => { throw new Error('Failed to add user to goal'); } - const addResult2 = await $api.collaboration.inviteUserToGoal({ + await $api.collaboration.inviteUserToGoal({ goalId: collaborationGoal?.id!, email: email, }).catch(console.error); diff --git a/taskview-packages/taskview-api/src/api/__tests__/webhooks.test.ts b/taskview-packages/taskview-api/src/api/__tests__/webhooks.test.ts index 87704fe..2168ab0 100644 --- a/taskview-packages/taskview-api/src/api/__tests__/webhooks.test.ts +++ b/taskview-packages/taskview-api/src/api/__tests__/webhooks.test.ts @@ -7,7 +7,7 @@ import { afterAll, } from 'vitest' import { initApi } from './init-api' -import { createServer, type Server, type IncomingMessage, type ServerResponse } from 'http' +import { createServer, type IncomingMessage, type ServerResponse } from 'http' import { networkInterfaces } from 'os' function getLocalIp(): string { diff --git a/web/src/components/UserMenu.vue b/web/src/components/UserMenu.vue index e5549ea..ca9b236 100644 --- a/web/src/components/UserMenu.vue +++ b/web/src/components/UserMenu.vue @@ -2,7 +2,7 @@ +