Skip to content

feat(web): add support and analytics controls#13

Open
imsouza wants to merge 12 commits into
mainfrom
webapp
Open

feat(web): add support and analytics controls#13
imsouza wants to merge 12 commits into
mainfrom
webapp

Conversation

@imsouza

@imsouza imsouza commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Keep analytics consent-gated and disabled on self-hosted defaults. Keep third-party scripts outside the authenticated knowledge workspace.

Summary

  • What changed:
  • Why:

BerryBrain 100 Gates

  • Web typecheck/build passes.
  • API tests pass when backend changes.
  • Worker tests pass when pipeline changes.
  • Docker Compose starts Web, API, and Worker when infra changes.
  • No generated AI artifact is introduced without evidence/provenance.
  • No note/vault data is committed accidentally.

Risk

  • Data migration:
  • Provider/API impact:
  • Rollback:

Validation

Commands run:


imsouza added 2 commits July 14, 2026 16:13
Keep analytics consent-gated and disabled on self-hosted defaults. Keep third-party scripts outside the authenticated knowledge workspace.
Keep hosted notes and attachments in IndexedDB without requiring the self-hosted API. Add verified full-workspace backup and restore while excluding sensitive preferences.
Comment thread apps/web/src/lib/browser-storage.ts Fixed
imsouza added 3 commits July 14, 2026 17:20
Use the full cryptographic random value so attachment identifiers do not introduce modulo bias flagged by CodeQL.
Netlify selected a stale pnpm lock and failed before build. Pin the web app to npm, version the monorepo build settings, and remove the conflicting lockfile.
@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for berrybrain ready!

Name Link
🔨 Latest commit 577383e
🔍 Latest deploy log https://app.netlify.com/projects/berrybrain/deploys/6a56a0f06c6d4800082c48d2
😎 Deploy Preview https://deploy-preview-13--berrybrain.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

The site deployed raw .next files with no functions and returned Netlify 404s. Pin the current Next runtime so App Router routes and middleware are packaged for Netlify.
@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for berrybrain ready!

Name Link
🔨 Latest commit 359b8c1
🔍 Latest deploy log https://app.netlify.com/projects/berrybrain/deploys/6a575a6e1ed3870008df200d
😎 Deploy Preview https://deploy-preview-13--berrybrain.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

imsouza added 6 commits July 14, 2026 19:27
Hosted browser mode cannot run the Docker worker or safely call NVIDIA directly because the provider does not expose browser CORS. Use a fixed same-origin stateless proxy, keep the user key in IndexedDB, and exclude it from backups.\n\nCross-site requests and arbitrary upstream URLs remain blocked.
Allow hosted users to choose presets or a custom OpenAI-compatible cloud endpoint instead of forcing NVIDIA NIM.\n\nCustom endpoints require public HTTPS DNS, reject private networks and redirects, and remain behind the same-origin proxy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants