Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add new TS client lib to repo #2214

Merged
merged 20 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
1e56c28
cleanup: scaffold out work for ts-sdk
SaraVieira Aug 16, 2024
305571a
feature: finish chunks endpoint ts-sdk routes
SaraVieira Aug 21, 2024
b32fc60
feature: add chunk group endpoint routes to ts-sdk
SaraVieira Aug 21, 2024
ba45670
feature: add analytics endpoint routes to ts-sdk
SaraVieira Aug 21, 2024
5a5bdd4
feature: add tests to ts-sdk routes
SaraVieira Aug 22, 2024
fe2a551
feature: add messages endopoints to ts-sdk
SaraVieira Aug 22, 2024
8f9bc0d
feature: add file endpoints to ts-sdk
SaraVieira Aug 22, 2024
3b203d5
feature: add docs to ts-SDK
SaraVieira Aug 22, 2024
e649f7e
cleanup: fully remove docs folder from ts-sdk
SaraVieira Aug 22, 2024
2d0092b
cleanup: remove deprecated messsage route and fix CI config
SaraVieira Aug 22, 2024
e492e92
lint: fix eslint/unbound-method issues in JSX callbacks
skeptrunedev Aug 22, 2024
54fd1e6
cleanup: tsconfig client file + /index imports to /fetch-client imports
skeptrunedev Aug 22, 2024
d418919
cleanup: remove examples post ts sdk refactor
skeptrunedev Aug 22, 2024
d1d6710
ops: run frontend CI action across all frontends at once, save on CI
cdxker Aug 22, 2024
bd1f26b
ops: annotate all linting results
cdxker Aug 22, 2024
0aeb786
cleanup: move __tests__ folder such that client can build successfully
skeptrunedev Aug 23, 2024
14ae232
feature: add abortSignal to chunk endpoint routes
skeptrunedev Aug 23, 2024
ee9b022
fix CI & add abort signal
SaraVieira Aug 23, 2024
c256a0a
fix flaky tests
SaraVieira Aug 23, 2024
a16935b
fix ts
SaraVieira Aug 23, 2024
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
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ server/proto/*
server/migrations/2024-07-26-165058_move_config_to_table/down.sql
server/migrations/2024-07-26-165058_move_config_to_table/up.sql
dist/**
clients/fetch-client/dist
clients/ts-sdk/dist
37 changes: 0 additions & 37 deletions .github/workflows/analytics-tests.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/chat-tests.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/dashboard-tests.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/frontend-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Frontends test suite

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

on:
pull_request:
paths:
- "frontends/**"
- "clients/ts-sdk/**"

jobs:
build-test:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Running Build
run: yarn build
eslint:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Running lint
run: yarn lint:CI
- name: Annotate Search Linting Results
uses: ataylorme/[email protected]
if: always()
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "./frontends/search/eslint_report.json"
- name: Annotate Chat Linting Results
uses: ataylorme/[email protected]
if: always()
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "./frontends/chat/eslint_report.json"
- name: Annotate Dashboard Linting Results
uses: ataylorme/[email protected]
if: always()
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "./frontends/dashboard/eslint_report.json"
- name: Annotate Analytics Linting Results
uses: ataylorme/[email protected]
if: always()
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "./frontends/analytics/eslint_report.json"
18 changes: 9 additions & 9 deletions .github/workflows/push-frontends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ on:
workflow_dispatch:
push:
branches:
- 'main'
- "main"
paths:
- 'frontends/dashboard/**'
- 'frontends/search/**'
- 'frontends/chat/**'
- 'frontends/analytics-site/**'
- 'frontends/shared/**'
- 'frontends/config/**'
- '.github/workflows/**'
- 'clients/fetch-client/**'
- "frontends/dashboard/**"
- "frontends/search/**"
- "frontends/chat/**"
- "frontends/analytics-site/**"
- "frontends/shared/**"
- "frontends/config/**"
- ".github/workflows/**"
- "clients/ts-sdk/**"

jobs:
build_chat:
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/search-tests.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/ts-sdk-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Typescript SDK test suite

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

on:
pull_request:
paths:
- "clients/ts-sdk/**"

jobs:
build-test:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Running tests
run: yarn build --filter trieve-ts-sdk
tests:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Running tests
working-directory: ./clients/ts-sdk
run: yarn vitest run
- name: Running lint
working-directory: ./clients/ts-sdk
run: yarn lint
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,13 @@ embedding-server/data/*
*/dist/**
*/.vite
data/*
clients/ts-sdk/dist/**
clients/ts-sdk/docs/**


server/src/trieve_protobufs/*
server/proto/*
server/migrations/2024-07-26-165058_move_config_to_table/down.sql
server/migrations/2024-07-26-165058_move_config_to_table/up.sql
dist/**
clients/fetch-client/dist
clients/ts-sdk/dist
6 changes: 4 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"./frontends/chat",
"./frontends/dashboard",
"./frontends/search",
"./frontends/analytics"
]
"./frontends/analytics",
"./clients/ts-sdk",
],
"vitest.disableWorkspaceWarning": true
}
22 changes: 0 additions & 22 deletions clients/fetch-client/package.json

This file was deleted.

Loading
Loading