Skip to content
Merged
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
3 changes: 0 additions & 3 deletions .github/workflows/build-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
- name: Install dependencies
run: cd flo_ai && uv sync

- name: Run Ruff
run: cd flo_ai && uv run pre-commit run --all-files

- name: Run build
run: cd flo_ai && uv build

Expand Down
45 changes: 34 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,35 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.3
hooks:
# Run the linter.
- id: ruff
files: \.py$
# Run the formatter.
- id: ruff-format
files: \.py$
args: [--config, format.quote-style = 'single']
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.3
hooks:
# Run the linter.
- id: ruff
files: \.py$
# Run the formatter.
- id: ruff-format
files: \.py$
args: [--config, format.quote-style = 'single']

- repo: local
hooks:
- id: eslint
name: eslint
entry: bash -c 'cd wavefront/client && pnpm lint'
language: system
files: ^wavefront/client/.*\.(js|jsx|ts|tsx)$
pass_filenames: false # let eslint use its own ignore & config

- id: typescript-check
name: typescript-check
entry: bash -c 'cd wavefront/client && pnpm typecheck'
language: system
files: ^wavefront/client/.*\.(ts|tsx)$
pass_filenames: false

- id: prettier
name: prettier
entry: bash -c 'cd wavefront/client && pnpm format'
language: system
files: ^wavefront/client/
pass_filenames: false
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"astral-sh.ty"
]
}
1 change: 0 additions & 1 deletion .vscode/launch.json

This file was deleted.

6 changes: 6 additions & 0 deletions flo_ai/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"python.defaultInterpreterPath": ".venv/bin/python",
"[python]": {
"editor.formatOnSave": true
}
}
68 changes: 68 additions & 0 deletions install-dep-local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#!/bin/bash

# Script to install dependencies for flo_ai, wavefront/server (using uv) and wavefront/client (using pnpm)

set -e # Exit on error

# Colors for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color

echo -e "${BLUE}Installing dependencies for all projects...${NC}\n"

# Get the script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"

# 1. Install pre-commit using uv in the root and run pre-commit install
echo -e "${YELLOW}[1/4] Installing pre-commit using uv...${NC}"
if command -v uv &> /dev/null; then
uv pip install pre-commit --system
echo -e "${GREEN}✓ pre-commit installed successfully${NC}"
echo -e "${YELLOW}Running pre-commit install...${NC}"
uv run pre-commit install
echo -e "${GREEN}✓ pre-commit hooks installed successfully${NC}\n"
else
echo -e "${YELLOW}Warning: uv not found. Please install uv first.${NC}\n"
exit 1
fi

# 2. Install dependencies for flo_ai using uv
echo -e "${YELLOW}[2/4] Installing dependencies for flo_ai using uv...${NC}"
cd flo_ai
if command -v uv &> /dev/null; then
uv sync
echo -e "${GREEN}✓ flo_ai dependencies installed successfully${NC}\n"
else
echo -e "${YELLOW}Warning: uv not found. Please install uv first.${NC}\n"
exit 1
fi
cd ..

# 3. Install dependencies for wavefront/server using uv
echo -e "${YELLOW}[3/4] Installing dependencies for wavefront/server using uv...${NC}"
cd wavefront/server
if command -v uv &> /dev/null; then
uv sync --all-packages
echo -e "${GREEN}✓ wavefront/server dependencies installed successfully${NC}\n"
else
echo -e "${YELLOW}Warning: uv not found. Please install uv first.${NC}\n"
exit 1
fi
cd ../..

# 4. Install dependencies for wavefront/client using pnpm
echo -e "${YELLOW}[4/4] Installing dependencies for wavefront/client using pnpm...${NC}"
cd wavefront/client
if command -v pnpm &> /dev/null; then
pnpm install
echo -e "${GREEN}✓ wavefront/client dependencies installed successfully${NC}\n"
else
echo -e "${YELLOW}Warning: pnpm not found. Please install pnpm first.${NC}\n"
exit 1
fi
cd ../..

echo -e "${GREEN}All dependencies installed successfully!${NC}"
7 changes: 7 additions & 0 deletions wavefront.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"folders": [
{ "path": "flo_ai" },
{ "path": "wavefront" }
]
}

6 changes: 6 additions & 0 deletions wavefront/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"python.defaultInterpreterPath": "server/.venv/bin/python",
"[python]": {
"editor.formatOnSave": true
},
}
4 changes: 2 additions & 2 deletions wavefront/client/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VITE_BASE_URL=http://localhost:8002/floconsole
VITE_APP_ENV=production
VITE_BASE_URL=https://console.dev.rootflo.ai/floconsole
VITE_APP_ENV=local
VITE_FEATURE_API_SERVICES=true

# NOTE: Add the new variables to the /config endpoint in the server.cjs file(For docker)
12 changes: 12 additions & 0 deletions wavefront/client/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
**/.git
**/.vite
**/node_modules
**/dist
**/build
**/coverage
**/logs
**/tmp
**/cache
**/temp
**/test
**/tests
7 changes: 7 additions & 0 deletions wavefront/client/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"printWidth": 120,
"trailingComma": "es5",
"plugins": ["prettier-plugin-tailwindcss"]
}
28 changes: 13 additions & 15 deletions wavefront/client/index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="preload" as="image" href="/background.webp" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="/config.js"></script>
<title>Rootflo Console</title>
</head>

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="preload" as="image" href="/background.webp" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="/config.js"></script>
<title>Rootflo Console</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
9 changes: 7 additions & 2 deletions wavefront/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview",
"lint": "eslint .",
"preview": "vite preview"
"format": "prettier --write .",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@hookform/resolvers": "^5.0.1",
Expand Down Expand Up @@ -36,6 +38,7 @@
"dayjs": "^1.11.13",
"js-yaml": "^4.1.0",
"lucide-react": "^0.507.0",
"prettier-plugin-tailwindcss": "^0.7.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.56.1",
Expand All @@ -54,14 +57,16 @@
"@vitejs/plugin-react-swc": "^3.8.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.22.0",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^16.0.0",
"postcss": "^8.4.47",
"prettier": "^3.7.4",
"tailwindcss": "^4.1.17",
"typescript": "~5.7.2",
"typescript-eslint": "^8.26.1",
"vite": "^6.3.1"
},
"packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad"
}
}
Loading