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
File renamed without changes.
File renamed without changes.
3,088 changes: 3,088 additions & 0 deletions .docs/smartgl-stage1-agent-plan.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Supabase
SUPABASE_URL=
SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=

# Basiq
BASIQ_API_KEY=
BASIQ_BASE_URL=https://au-api.basiq.io

# Anthropic
ANTHROPIC_API_KEY=

# OpenAI (embeddings only)
OPENAI_API_KEY=

# Formance Ledger
FORMANCE_LEDGER_URL=http://localhost:3068

# App
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_APP_ENV=development
19 changes: 19 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Sensible Analytics CODEOWNERS

# Default: Senior Engineers (Lead Team)
* @Sensible-Analytics/lead

# Frontend (React/TypeScript)
apps/web/ @Sensible-Analytics/frontend
*.tsx @Sensible-Analytics/frontend

# Backend (API, Services)
apps/api/ @Sensible-Analytics/backend

# Infrastructure
terraform/ @Sensible-Analytics/devops
docker-compose.yml @Sensible-Analytics/devops

# GitHub configs (keep last)
.github/ @Sensible-Analytics/lead
CODEOWNERS @Sensible-Analytics/lead
31 changes: 31 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Contributing to Smart-GL

This project follows the Sensible Analytics branching, PR, build & deployment standard.

## Quick Reference

Please refer to the full standard: [/tmp/branch_and_pr_standard.md](file:///tmp/branch_and_pr_standard.md)

### Branch Naming
- Use `type/short-description` (e.g., `feat/add-api`, `fix/graphql`)
- Keep branches short-lived off `main`

### PR Process
1. Create branch from `main`
2. Make changes, commit with conventional commit messages
3. Push branch and open PR against `main`
4. Add descriptive title and body; reference issue numbers
5. Request reviews from CODEOWNERS
6. Ensure all CI status checks pass before merge

### Build & Test
```bash
# Turbo monorepo
pnpm install
pnpm build
pnpm lint
```

### CI Requirements
- Lint: ESLint
- Build: API + Web
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug report
about: Create a report to help us improve
title: '[Bug] '
labels: 'bug'
assignees: ''
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: '[Feature] '
labels: 'enhancement'
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context about the feature request here.
24 changes: 24 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context.

## Type of Change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

## Checklist

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Configure Dependabot
version: 2
updates:
- package-ecosystem: 'pip'
directory: '/'
schedule:
interval: 'weekly'

- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
44 changes: 44 additions & 0 deletions .github/workflows/security-codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CodeQL

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
schedule:
- cron: '0 0 * * 1' # Run every Monday

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

permissions:
actions: read
contents: read
security-events: write

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['javascript', 'python']
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v4

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
49 changes: 49 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Stale Issues

on:
schedule:
- cron: '30 1 * * *'
workflow_dispatch:

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Mark stale issues and PRs
uses: actions/stale@v10
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

stale-issue-message: |
This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 7 days if no further activity occurs.

If this issue is still relevant, please comment to keep it open.

Thank you for your contributions!

stale-pr-message: |
This pull request has been automatically marked as stale because it has not had recent activity.
It will be closed in 7 days if no further activity occurs.

If you're still working on this, please comment to keep it open.

close-issue-message: |
This issue has been automatically closed due to inactivity.
If you believe this is still relevant, please open a new issue with updated information.

close-pr-message: |
This pull request has been automatically closed due to inactivity.
If you'd like to continue working on this, please open a new PR.

days-before-stale: 60
days-before-close: 7
exempt-issue-labels: 'keep-open,priority,in-progress'
exempt-pr-labels: 'keep-open,priority,in-progress'
stale-issue-label: 'stale'
stale-pr-label: 'stale'
remove-stale-when-updated: true
5 changes: 5 additions & 0 deletions .playwright-mcp/page-2026-04-19T01-58-20-029Z.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- generic [ref=e4]:
- generic [ref=e8]:
- generic [ref=e10]: Please note this consent will expire today.
- generic [ref=e11]: You can revoke your consent anytime.
- img [ref=e17]
14 changes: 14 additions & 0 deletions .playwright-mcp/page-2026-04-19T01-59-08-117Z.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- generic [ref=e4]:
- generic [ref=e8]:
- generic [ref=e11]: Please note this consent will expire today.
- generic [ref=e12]: You can revoke your consent anytime.
- heading "Manage your data sharing" [level=4] [ref=e15] [cursor=pointer]:
- generic [ref=e16]: Manage your data sharing
- img [ref=e18]
- generic [ref=e22]: We'll delete your data when we no longer need it.
- heading "Supporting parties" [level=4] [ref=e24] [cursor=pointer]:
- generic [ref=e25]: Supporting parties
- img [ref=e27]
- button "Approve" [ref=e34] [cursor=pointer]:
- generic [ref=e35]: Approve
- img [ref=e39]
Loading
Loading