Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
379ae63
Rename bb- CSS classes to gnh-
simonsmallchua Mar 27, 2026
bc60dbc
Rename bb-/bbb- to gnh- in HTML
simonsmallchua Mar 27, 2026
4908a5a
Rename bb-*.js files to gnh-*.js
simonsmallchua Mar 27, 2026
3e36a01
Rename BB_APP/BB_CONFIG to GNH_ globals
simonsmallchua Mar 27, 2026
1649a85
Rename bb-/bbb- refs and storage keys in JS
simonsmallchua Mar 27, 2026
d53d5bb
Update docs and config for gnh- prefix
simonsmallchua Mar 27, 2026
495a3ac
Fix remaining old prefix references
simonsmallchua Mar 27, 2026
ac405d6
Fix Prettier formatting after rename
simonsmallchua Mar 27, 2026
f0b5132
Add missing toast CSS to settings page
simonsmallchua Mar 27, 2026
887e2a3
Fix BGNH_CONFIG typo to GNH_CONFIG
simonsmallchua Mar 27, 2026
4209367
Rename BB-prefixed JS globals to GNH
simonsmallchua Mar 27, 2026
42989c1
Rename bb:org-switched event to gnh:
simonsmallchua Mar 27, 2026
715eec3
Deduplicate gnh-action selectors
simonsmallchua Mar 27, 2026
b63a421
Fix remaining old prefix references
simonsmallchua Mar 27, 2026
a9cad79
Revert CHANGELOG to preserve history
simonsmallchua Mar 27, 2026
1fb0a2e
Fix Prettier formatting
simonsmallchua Mar 27, 2026
93940e7
Add type=button, fix form fallback selector
simonsmallchua Mar 27, 2026
d63190e
Fix GNH_CONFIG in Go config handler
simonsmallchua Mar 27, 2026
d35848b
Rename remaining BB_ globals and events
simonsmallchua Mar 27, 2026
91f7370
Fix Prettier formatting
simonsmallchua Mar 27, 2026
d1d2e6c
Rename BB globals to GNH prefix
simonsmallchua Mar 27, 2026
547e415
Rename BBB_ env vars to GNH_ prefix
simonsmallchua Mar 27, 2026
8f2d15c
Remove junk bash permission patterns
simonsmallchua Mar 28, 2026
47d04f6
Add legacy BBB_ env var fallback
simonsmallchua Mar 28, 2026
489b141
Add legacy storage key migration
simonsmallchua Mar 28, 2026
d962948
Revert "Add legacy storage key migration"
simonsmallchua Mar 28, 2026
a7e1ce5
Revert "Add legacy BBB_ env var fallback"
simonsmallchua Mar 28, 2026
019640b
Use whenReady() in global nav init
simonsmallchua Mar 28, 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
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ PADDLE_PUBLIC_KEY=your_public_key
FLY_API_TOKEN=your_fly_token

# Worker Pool Scaling
BBB_WORKER_IDLE_THRESHOLD=10 # Mark worker idle after 10 consecutive no-task responses (0 = disabled)
BBB_WORKER_SCALE_COOLDOWN_SECONDS=15 # Minimum time between scale-down operations
BBB_HEALTH_PROBE_INTERVAL_SECONDS=30 # Health probe interval when all workers idle (0 = disabled)
GNH_WORKER_IDLE_THRESHOLD=10 # Mark worker idle after 10 consecutive no-task responses (0 = disabled)
GNH_WORKER_SCALE_COOLDOWN_SECONDS=15 # Minimum time between scale-down operations
GNH_HEALTH_PROBE_INTERVAL_SECONDS=30 # Health probe interval when all workers idle (0 = disabled)

# Development
DEBUG=true # Enable debug logging
Expand Down
6 changes: 3 additions & 3 deletions .fly/review_apps.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ primary_region = "syd"
[env]
APP_ENV = "staging"
PORT = "8080"
BBB_ENABLE_TURNSTILE = "true"
GNH_ENABLE_TURNSTILE = "true"

# Explicitly source DATABASE_URL from secrets
DATABASE_URL = { from_secret = "DATABASE_URL" }
Expand All @@ -35,8 +35,8 @@ SUPABASE_PUBLISHABLE_KEY = "sb_publishable_xCn-z8wEo4MPJnbPq6cvXg_09fINjIp"
WORKER_CONCURRENCY = "5" # Half of prod (respects 512mb VM)
DB_QUEUE_MAX_CONCURRENCY = "20" # Half of prod
DB_TX_MAX_RETRIES = "5" # Same as prod
BBB_RUNNING_TASK_BATCH_SIZE = "32" # Same as prod (reduces DB trips)
BBB_RUNNING_TASK_FLUSH_INTERVAL_MS = "200" # Same as prod
GNH_RUNNING_TASK_BATCH_SIZE = "32" # Same as prod (reduces DB trips)
GNH_RUNNING_TASK_FLUSH_INTERVAL_MS = "200" # Same as prod

# Use same machine config as production but smaller
[vm]
Expand Down
19 changes: 10 additions & 9 deletions Roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,20 +261,21 @@ Organisation model implemented:
- [x] Responsive design with professional styling and user experience
- [x] **Template + Data Binding Foundation**
- [x] Architecture documentation for template-based integration approach
- [x] Attribute-based event handling system (`bb-action`, `bb-data-*`)
- [x] Attribute-based event handling system (`gnh-action`, `gnh-data-*`)
- [x] Event delegation framework for extensible functionality
- [x] Demonstration of template approach in production dashboard

### 🟡 Template + Data Binding Implementation (Completed v0.5.5)

- [x] **Core Data Binding Library**
- [x] Basic attribute-based event handling (`bb-action="refresh-dashboard"`)
- [x] JavaScript library for `data-bb-bind` attribute processing
- [x] Template engine for `data-bb-template` repeated content
- [x] Basic attribute-based event handling (`gnh-action="refresh-dashboard"`)
- [x] JavaScript library for `data-gnh-bind` attribute processing
- [x] Template engine for `data-gnh-template` repeated content
- [x] Authentication integration with conditional element display
(`data-bb-auth`)
- [x] Form handling with `data-bb-form` and validation (`data-bb-validate`)
- [x] Style and attribute binding (`data-bb-bind-style`, `data-bb-bind-attr`)
(`data-gnh-auth`)
- [x] Form handling with `data-gnh-form` and validation (`data-gnh-validate`)
- [x] Style and attribute binding (`data-gnh-bind-style`,
`data-gnh-bind-attr`)
- [x] **Enhanced Job Management**
- [x] Real-time job progress updates via data binding
- [x] Job creation forms with template-based validation
Expand Down Expand Up @@ -368,7 +369,7 @@ Organisation model implemented:
### ✅ Slack Integration (Completed v0.20.0)

- [x] **Slack Application Development**
- [x] OAuth flow for installing BBB Slack app to workspaces
- [x] OAuth flow for installing GNH Slack app to workspaces
- [x] Bot tokens stored securely in Supabase Vault
- [x] Auto-linking users to Slack workspaces via database triggers
- [x] Supabase Slack OIDC support for user authentication
Expand Down Expand Up @@ -429,7 +430,7 @@ Organisation model implemented:
- [ ] Add job management interface (view status, trigger crawls)
- [ ] Configuration panel for schedule and webhook settings
- [ ] **Integration & Testing**
- [ ] Connect extension to BBB API via OAuth
- [ ] Connect extension to GNH API via OAuth
- [ ] Test extension in Webflow Designer workspace
- [ ] Handle error states and loading indicators

Expand Down
4 changes: 2 additions & 2 deletions auth-callback.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<title>Signing In...</title>
<link rel="stylesheet" href="/styles/app.css" />
<script>
window.BB_APP = Object.assign({}, window.BB_APP || {}, {
window.GNH_APP = Object.assign({}, window.GNH_APP || {}, {
authCallback: true,
});
(function () {
Expand Down Expand Up @@ -87,7 +87,7 @@

await loadScript("/js/auth.js");
const callbackHandler =
window.BBAuth?.initAuthCallbackPage ||
window.GNHAuth?.initAuthCallbackPage ||
window.initAuthCallbackPage;
if (typeof callbackHandler !== "function") {
throw new Error("Auth callback handler unavailable");
Expand Down
Loading
Loading