Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
52a2ea4
feat: implement assessment page with multi-step configuration and eva…
vprashrex Mar 31, 2026
4b0e674
Merge remote-tracking branch 'origin/main' into feature/assesment
vprashrex Apr 4, 2026
5d8d9bc
Merge branch 'main' into feature/assesment
vprashrex Apr 21, 2026
0471dab
feat: implement feature flag management and cleanup
vprashrex Apr 27, 2026
fcbf161
Refactor assessment components and update configurations
vprashrex Apr 27, 2026
4c43136
Refactor JsonEditor and schemaUtils for consistency and readability; …
vprashrex Apr 27, 2026
fd34470
Merge branch 'main' into feature/assesment
Ayush8923 Apr 28, 2026
c5640ad
Refactor components to use icon components, improve error handling, a…
vprashrex Apr 28, 2026
df62836
Refactor assessment components: remove unused event handling, enhance…
vprashrex Apr 29, 2026
e6ef810
Merge branch 'main' into feature/assesment
Ayush8923 Apr 29, 2026
720f9d3
Refactor assessment components to use new API key handling and improv…
vprashrex Apr 30, 2026
fe1a4ab
Refactor assessment components for improved layout and state management
vprashrex Apr 30, 2026
1fb7320
Refactor code structure for improved readability and maintainability
vprashrex Apr 30, 2026
b242abd
feat: add new assessment icons and utility functions
vprashrex Apr 30, 2026
7d70323
feat(assessment): add PromptEditorStep, ReviewStep, and Stepper compo…
vprashrex Apr 30, 2026
df904b4
feat(assessment): restructure assessment API routes and update compon…
vprashrex Apr 30, 2026
8974c7a
feat: add PageHeader component and TabNavigation for assessment UI
vprashrex Apr 30, 2026
e22312f
fix(assessment): correct config_version assignment in saveConfig func…
vprashrex Apr 30, 2026
379323e
refactor(assessment): consolidate feature flags and storage keys into…
vprashrex Apr 30, 2026
b6b375a
feat: add SchemaReview and SubmitReview components for assessment review
vprashrex May 3, 2026
cb892e9
fix(assessment): set initial state of isOpen to true in SystemPrompt …
vprashrex May 4, 2026
2a0c696
Merge branch 'main' into feature/assesment
vprashrex May 4, 2026
bad7bbd
Refactor assessment components for improved styling and consistency
vprashrex May 4, 2026
79a433a
Refactor assessment components and add results handling
vprashrex May 4, 2026
690fb04
Refactor assessment components and types for improved clarity and str…
vprashrex May 4, 2026
559cd7c
removed reduntant pageheader
vprashrex May 4, 2026
133b412
Refactor API routes by removing unused DELETE endpoint and cleaning u…
vprashrex May 4, 2026
759e5aa
Refactor dataset imports to unify type definition and improve code co…
vprashrex May 4, 2026
202eb43
Refactor assessment components to remove API key dependency and impro…
vprashrex May 4, 2026
c61a2b8
Evaluation: UI/UX Revamp (#142)
Ayush8923 May 4, 2026
6b89fbb
Refactor assessment components to remove unused variables and improve…
vprashrex May 4, 2026
ad38e3c
Merge branch 'main' into feature/assesment
vprashrex May 4, 2026
2a4a2a0
Refactor ColumnMapperStep to remove ground truth handling and update …
vprashrex May 4, 2026
e061622
Apply suggestions from code review
Ayush8923 May 4, 2026
4f906a4
Enhance assessment feature with detailed comments and utility functions
vprashrex May 4, 2026
407468a
Refactor assessment feature comments for clarity and conciseness acro…
vprashrex May 4, 2026
9bffd89
Refactor dataset API routes to improve type safety and handle optiona…
vprashrex May 4, 2026
57f4548
Add SavedConfigCard component to manage version selection and display
vprashrex May 4, 2026
572a912
Refactor assessment components and utilities
vprashrex May 5, 2026
7ca3cd1
Refactor dataset deletion modal and move related logic to a new utili…
vprashrex May 5, 2026
56740b7
Remove ModelComparisonCard component and its associated logic
vprashrex May 5, 2026
04db1e2
Refactor assessment-related imports and constants for improved organi…
vprashrex May 5, 2026
2b7d103
Refactor assessment components and utilities for improved organizatio…
vprashrex May 5, 2026
4b6f4e3
Refactor API route handlers to utilize withQueryParams for improved q…
vprashrex May 5, 2026
8a055a7
Apply suggestions from code review
Ayush8923 May 5, 2026
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
64 changes: 64 additions & 0 deletions .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Deploy Kaapi Dev to EC2

on:
push:
branches:
- dev

jobs:
deploy:
runs-on: ubuntu-latest
environment: AWS_ENV

permissions:
packages: write
contents: read
attestations: write
id-token: write

steps:
- name: Checkout Repository
uses: actions/checkout@v6

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Deploy via SSM
id: ssm
env:
BUILD_DIRECTORY: ${{ secrets.DEV_BUILD_DIRECTORY }}
APP_NAME: ${{ secrets.DEV_PM2_APP_NAME }}
AWS_REGION: ${{ secrets.AWS_REGION }}
INSTANCE_ID: ${{ secrets.EC2_STAGING_INSTANCE_ID }}
ROOT_USER: ${{ secrets.USER }}
run: |
REMOTE_CMD="export HOME=/home/$ROOT_USER && export NVM_DIR="/home/$ROOT_USER/.nvm" && [ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh" && git config --global --add safe.directory ${BUILD_DIRECTORY} && set -e && cd ${BUILD_DIRECTORY} && git pull origin dev && npm ci && npm run build && sudo -iu ${ROOT_USER} pm2 restart ${APP_NAME}"
CMD_ID=$(aws ssm send-command \
--instance-ids "$INSTANCE_ID" \
--document-name "AWS-RunShellScript" \
--parameters commands="[\"$REMOTE_CMD\"]" \
--region "$AWS_REGION" \
--query 'Command.CommandId' \
--output text)
echo "cmd_id=$CMD_ID" >> "$GITHUB_OUTPUT"

- name: Wait for SSM command to finish
env:
INSTANCE_ID: ${{ secrets.EC2_STAGING_INSTANCE_ID }}
CMD_ID: ${{ steps.ssm.outputs.cmd_id }}
run: |
WAIT_EXIT=0
aws ssm wait command-executed \
--command-id "$CMD_ID" \
--instance-id "$INSTANCE_ID" || WAIT_EXIT=$?

aws ssm get-command-invocation \
--command-id "$CMD_ID" \
--instance-id "$INSTANCE_ID" \
--query '{Status:Status,Stdout:StandardOutputContent,Stderr:StandardErrorContent}' \
--output json

exit $WAIT_EXIT
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This is a thin frontend UI for [Kaapi backend](https://github.com/ProjectTech4De
- [Software Dependencies](#software-dependencies)
- [npm (via asdf)](#npm-via-asdf)
- [Kaapi Backend](#kaapi-backend)
- [Kaapi Guardrails Service](#kaapi-guardrails-service)
- [Clone Frontend Repo](#clone-frontend-repo)
- [Git commands to clone](#git-commands-to-clone)
- [Installation](#installation)
Expand Down Expand Up @@ -52,11 +53,11 @@ You need to set up the [Kaapi backend](https://github.com/ProjectTech4DevAI/kaap

> 💡 Note: Ensure the backend is running and accessible before starting the frontend.

### Kaapi Guardrails Service _(coming soon)_
### Kaapi Guardrails Service

The Guardrails UI (currently in development) will require the Kaapi Guardrails service to be running alongside the backend. Setup instructions will be added here once the service is available.
You need to set up the [Kaapi Guardrails](https://github.com/ProjectTech4DevAI/kaapi-guardrails) service and follow the instructions there.

> 🚧 No action needed for now — this is a placeholder for when the Guardrails feature lands in `main`.
> 💡 Note: The Guardrails service must be running and accessible whenever you use the Guardrails module in the frontend.

---

Expand Down Expand Up @@ -149,14 +150,14 @@ Deployments are automated via a GitHub Actions CD pipeline that SSHes into the E
1. SSHes into the EC2 instance
2. Runs `git pull` to fetch the latest code
3. Runs `npm run build` to create an optimized production build
4. Restarts the server to apply the new build
4. Restarts the pm2 server to apply the new build

**Production** — on every version tag (e.g. `v1.0.0`, `v2.1.0`), the pipeline automatically:

1. SSHes into the EC2 instance
2. Runs `git fetch --tags` and checks out the tag
3. Runs `npm run build` to create an optimized production build
4. Restarts the server to apply the new build
4. Restarts the pm2 server to apply the new build

---

Expand All @@ -169,4 +170,4 @@ Deployments are automated via a GitHub Actions CD pipeline that SSHes into the E

### Chat With Us

- 💬 [Discord](https://discord.gg/BRYzSYha)
- 💬 [Discord](https://discord.gg/s7e2UBFku)
Loading
Loading