Skip to content

Commit f24b3dd

Browse files
authored
Merge pull request #40 from safeinsights/SHRMP-144
Remove UI / Unused TOA bits
2 parents a5d087f + 99a8ea5 commit f24b3dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+933
-4530
lines changed

.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
HTTP_BASIC_AUTH=username:password
21
MANAGEMENT_APP_MEMBER_ID=openstax
32
MANAGEMENT_APP_API_URL=http://host.docker.internal:4000
43
MANAGEMENT_APP_PUBLIC_KEY=<check readme for how to populate this>

.github/workflows/checks.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,6 @@ jobs:
2626
- name: Typecheck
2727
run: npm run typecheck
2828
- name: Unit Test
29-
run: npm run test:unit
30-
- name: Install Playwright Browsers
31-
run: npx playwright install --with-deps
32-
- name: Run Playwright tests
33-
run: npm run test:e2e
34-
env:
35-
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ vars.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
36-
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
37-
E2E_CLERK_USER_USERNAME: ${{ secrets.E2E_CLERK_USER_USERNAME }}
38-
E2E_CLERK_USER_PASSWORD: ${{ secrets.E2E_CLERK_USER_PASSWORD }}
29+
run: npm run test
3930
- name: Test build
4031
run: npm run build
41-
- uses: actions/upload-artifact@v4
42-
if: failure()
43-
with:
44-
name: playwright-report
45-
path: playwright-report
46-
retention-days: 30

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ node_modules/
2222
# Build outputs
2323
.next/
2424
coverage/
25-
playwright-report/
2625

2726
# Test results
2827
test-results/

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:22-alpine AS base
22

33

44
ARG USER=node
5-
ENV HOME /home/$USER
5+
ENV HOME /home/$USER
66

77
# Alpine doesn't have curl, so add it
88
RUN apk --no-cache add curl
@@ -12,7 +12,7 @@ USER $USER
1212
WORKDIR $HOME/app
1313

1414
# Copy the package.json and lock file to install dependencies
15-
COPY --chown=$USER:$USER package.json package-lock.json panda.config.ts ./
15+
COPY --chown=$USER:$USER package.json package-lock.json ./
1616

1717
# Install dependencies
1818
RUN npm install

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ This happens if there are 0 results encryption keys for that organization in the
2222

2323
## Development
2424

25-
### TOA Authentication
26-
27-
Set the `HTTP_BASIC_AUTH` variable in `.env`. Example values `username:password` or `admin:password`
28-
2925
### Hitting the upload endpoint:
3026

3127
1. Create a study on the Management App
@@ -34,9 +30,8 @@ Set the `HTTP_BASIC_AUTH` variable in `.env`. Example values `username:password`
3430
1. Take that uuid and upload it manually like so:
3531

3632
```bash
37-
curl -X POST http://localhost:3002/api/job/:jobId/upload -F "file=@test-data/industry.csv" -u <HTTP_BASIC_AUTH>
38-
39-
curl -X POST http://localhost:3002/api/job/:jobId/upload -F "file=@test-data/currency.csv" -u <HTTP_BASIC_AUTH>
33+
curl -X POST http://localhost:3002/api/job/:jobId/upload -F "file=@test-data/industry.csv"
34+
curl -X POST http://localhost:3002/api/job/:jobId/upload -F "file=@test-data/currency.csv"
4035
```
4136

4237
1. Approve the study with the UUID you just uploaded

bin/apply-updates-from-template

Lines changed: 0 additions & 8 deletions
This file was deleted.

bin/bootstrap-from-app-template

Lines changed: 0 additions & 17 deletions
This file was deleted.

bin/update-app-from-template

Lines changed: 0 additions & 22 deletions
This file was deleted.

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference types="next/navigation-types/compat/navigation" />
3+
/// <reference path="./.next/types/routes.d.ts" />
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)