Skip to content

Commit

Permalink
feat(nx-dev): use the vercel api and stream the results
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Aug 30, 2023
1 parent e99f877 commit dcc417f
Show file tree
Hide file tree
Showing 28 changed files with 575 additions and 590 deletions.
18 changes: 0 additions & 18 deletions nx-dev/data-access-ai/.eslintrc.json

This file was deleted.

11 changes: 0 additions & 11 deletions nx-dev/data-access-ai/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions nx-dev/data-access-ai/jest.config.ts

This file was deleted.

5 changes: 0 additions & 5 deletions nx-dev/data-access-ai/package.json

This file was deleted.

30 changes: 0 additions & 30 deletions nx-dev/data-access-ai/project.json

This file was deleted.

2 changes: 0 additions & 2 deletions nx-dev/data-access-ai/src/index.ts

This file was deleted.

59 changes: 0 additions & 59 deletions nx-dev/data-access-ai/src/lib/data-access-ai.ts

This file was deleted.

42 changes: 0 additions & 42 deletions nx-dev/data-access-ai/src/lib/utils.ts

This file was deleted.

24 changes: 0 additions & 24 deletions nx-dev/data-access-ai/tsconfig.json

This file was deleted.

10 changes: 0 additions & 10 deletions nx-dev/data-access-ai/tsconfig.lib.json

This file was deleted.

14 changes: 0 additions & 14 deletions nx-dev/data-access-ai/tsconfig.spec.json

This file was deleted.

6 changes: 6 additions & 0 deletions nx-dev/feature-ai/src/lib/error-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import {
} from '@heroicons/react/24/outline';

export function ErrorMessage({ error }: { error: any }): JSX.Element {
try {
if (error.message?.includes('no_results')) {
error = JSON.parse(error.message);
}
} catch (e) {}

if (error?.data?.no_results) {
return (
<div className="rounded-md bg-yellow-50 p-4">
Expand Down
Loading

0 comments on commit dcc417f

Please sign in to comment.