Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions web/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"@types/react-dom": "^19.2.3",
"@typescript/native-preview": "^7.0.0-dev.20260702.3",
"@xyflow/react": "^12.11.1",
"bun-types": "^1.3.14",
"embla-carousel-react": "^8.6.0",
"happy-dom": "^20.11.1",
"knip": "^6.24.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import {
applyJsonSmartEnter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { after, describe, test } from 'node:test'
import { after } from 'node:test'

import { Window } from 'happy-dom'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import {
modelGroupSelectorLayoutClasses,
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/ui/dropdown-menu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import { handleDropdownMenuItemSelect } from './dropdown-menu-events'

Expand Down
2 changes: 1 addition & 1 deletion web/src/features/auth/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import type { RefreshOutcome } from '@/lib/api'
import type { AuthBundle } from '@/stores/auth-store'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import {
getOAuthSessionStorage,
Expand Down
2 changes: 1 addition & 1 deletion web/src/features/auth/lib/auth-redirect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import type { AuthUser } from '@/stores/auth-store'

Expand Down
2 changes: 1 addition & 1 deletion web/src/features/auth/lib/oauth-bind-window.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import {
parseTelegramBindCallback,
Expand Down
2 changes: 1 addition & 1 deletion web/src/features/auth/lib/telegram-login.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import { pickTelegramAuthorization } from './telegram-login'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import {
CHANNEL_FIELD_UPDATE_DELAY_MS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import type { Channel } from '../../types'
import { getChannelTableRowId, type TagRow } from '../channel-utils'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import {
CHANNEL_TYPE_NEW_API,
Expand Down
2 changes: 1 addition & 1 deletion web/src/features/dashboard/lib/flow-selection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import type { FlowUserFilterOption } from '../types'
import {
Expand Down
2 changes: 1 addition & 1 deletion web/src/features/dashboard/lib/flow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import type { FlowQuotaDataItem } from '../types'
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { after, describe, test } from 'node:test'
import { after } from 'node:test'

import { Window } from 'happy-dom'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { after, describe, test } from 'node:test'
import { after } from 'node:test'

import { Window } from 'happy-dom'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { after, afterEach, describe, test } from 'node:test'
import { after, afterEach } from 'node:test'

import { Window } from 'happy-dom'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { after, describe, test } from 'node:test'
import { after } from 'node:test'

import { Window } from 'happy-dom'

Expand Down
16 changes: 9 additions & 7 deletions web/src/features/keys/components/api-key-group-cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
} from '@/components/ui/tooltip'

import {
// AutoGroupBadge,
AutoGroupBadge,
GroupRatioBadge,
type GroupRatio,
} from './auto-group-visuals'
Expand Down Expand Up @@ -66,12 +66,14 @@ export function ApiKeyGroupCell(props: ApiKeyGroupCellProps) {
/>
}
>
<StatusBadge
label={t('Cross-group')}
variant='info'
copyable={false}
/>
{/*<AutoGroupBadge shouldReduceMotion={props.shouldReduceMotion} />*/}
{props.crossGroupRetry && (
<StatusBadge
label={t('Cross-group')}
variant='info'
copyable={false}
/>
)}
<AutoGroupBadge shouldReduceMotion={props.shouldReduceMotion} />
<GroupRatioBadge
ratio={props.ratio}
isAuto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import type { TFunction } from 'i18next'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import type { ChatCompletionRequest } from '../types'
import { createStreamRequestController } from './use-stream-request'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import type { TFunction } from 'i18next'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import { positiveIntegerSchema } from '../../utils/numeric-field'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { after, describe, test } from 'node:test'
import { after } from 'node:test'

import { Window } from 'happy-dom'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { after, describe, test } from 'node:test'
import { after } from 'node:test'

import { Window } from 'happy-dom'
import type React from 'react'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import type { LogOtherData } from '../../types'
import { hasToolSurcharge } from '../format'
Expand Down
2 changes: 1 addition & 1 deletion web/src/features/wallet/hooks/use-payment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import { PAYMENT_TYPES } from '../constants'
import { requestPaymentAmount } from './use-payment'
Expand Down
2 changes: 1 addition & 1 deletion web/src/features/wallet/lib/payment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import { PAYMENT_TYPES } from '../constants'
import {
Expand Down
3 changes: 2 additions & 1 deletion web/src/lib/auth-session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { afterEach, describe, test } from 'node:test'
import { afterEach } from 'node:test'

import { QueryClient } from '@tanstack/react-query'

Expand Down
2 changes: 1 addition & 1 deletion web/src/lib/legacy-route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import { resolveLegacyRoute } from './legacy-route'

Expand Down
2 changes: 1 addition & 1 deletion web/src/lib/server-error-message.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
import { describe, test } from 'bun:test'
import assert from 'node:assert/strict'
import { describe, test } from 'node:test'

import { getServerErrorMessageKey } from './server-error-message'

Expand Down
2 changes: 1 addition & 1 deletion web/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"types": ["node"],
"types": ["node", "bun-types"],

/* Bundler mode */
"moduleResolution": "Bundler",
Expand Down