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
4 changes: 4 additions & 0 deletions apps/supportconsolek/supportconsolek/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DATABRICKS_HOST=https://...
DATABRICKS_APP_PORT=8000
DATABRICKS_APP_NAME=caspers-supportconsole
FLASK_RUN_HOST=0.0.0.0
10 changes: 10 additions & 0 deletions apps/supportconsolek/supportconsolek/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules/
client/dist/
dist/
build/
.env
.databricks/
.smoke-test/
test-results/
playwright-report/
36 changes: 36 additions & 0 deletions apps/supportconsolek/supportconsolek/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Dependencies
node_modules

# Build outputs
dist
build
client/dist
.next
.databricks/

# Environment files
.env
.env.local
.env.*.local

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Coverage
coverage

# Cache
.cache
.turbo

# Lock files
package-lock.json
yarn.lock
pnpm-lock.yaml

# Vendor
vendor
12 changes: 12 additions & 0 deletions apps/supportconsolek/supportconsolek/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"arrowParens": "always",
"endOfLine": "lf",
"bracketSpacing": true,
"jsxSingleQuote": false
}
14 changes: 14 additions & 0 deletions apps/supportconsolek/supportconsolek/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
command: ['npm', 'run', 'start']
env:
- name: PGPORT
value: "5432"
- name: PGDATABASE
value: "databricks_postgres"
- name: PGSSLMODE
value: "require"
- name: LAKEBASE_ENDPOINT
value: "projects/casperskitchens-support-db/branches/production/endpoints/primary"
- name: DATABRICKS_WAREHOUSE_ID
value: "e5ed18828056f3cf"
- name: SUPPORT_AGENT_ENDPOINT_NAME
value: "caspers_support_agent"
41 changes: 41 additions & 0 deletions apps/supportconsolek/supportconsolek/appkit.plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://databricks.github.io/appkit/schemas/template-plugins.schema.json",
"version": "1.0",
"plugins": {
"analytics": {
"name": "analytics",
"displayName": "Analytics Plugin",
"description": "SQL query execution against Databricks SQL Warehouses",
"package": "@databricks/appkit",
"resources": {
"required": [
{
"type": "sql_warehouse",
"alias": "SQL Warehouse",
"resourceKey": "sql-warehouse",
"description": "SQL Warehouse for executing analytics queries",
"permission": "CAN_USE",
"fields": {
"id": {
"env": "DATABRICKS_WAREHOUSE_ID",
"description": "SQL Warehouse ID"
}
}
}
],
"optional": []
}
},
"server": {
"name": "server",
"displayName": "Server Plugin",
"description": "HTTP server with Express, static file serving, and Vite dev mode support",
"package": "@databricks/appkit",
"requiredByTemplate": true,
"resources": {
"required": [],
"optional": []
}
}
}
}
21 changes: 21 additions & 0 deletions apps/supportconsolek/supportconsolek/client/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
18 changes: 18 additions & 0 deletions apps/supportconsolek/supportconsolek/client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="48x48" href="/favicon-48x48.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>caspers-supportconsole</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
6 changes: 6 additions & 0 deletions apps/supportconsolek/supportconsolek/client/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
'@tailwindcss/postcss': {},
autoprefixer: {},
},
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "{{.project_name}}",
"short_name": "{{.project_name}}",
"icons": [
{
"src": "/favicon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/favicon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Loading