Skip to content

πŸ—ƒοΈ feat(database): add project_sites.last_seen_at - #22278

Open
Innei wants to merge 1 commit into
canaryfrom
feat/project-onboarding-db
Open

Innei wants to merge 1 commit into
canaryfrom
feat/project-onboarding-db

Conversation

@Innei

@Innei Innei commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Contribution source: AI-assisted

Database half of project onboarding. It merges first; #22279 is stacked on this branch.

  • project_sites.last_seen_at (timestamptz, nullable): when the acceptance loader on that site last reported in. The UI uses it to show whether the embed script is installed.
  • Migration 0203_project_site_last_seen.sql uses ADD COLUMN IF NOT EXISTS, so re-running it is safe. The column is nullable with no default, so existing rows need no backfill and the table is not rewritten.
  • 0193_snapshot.json is pruned as part of the normal snapshot rotation.

Revised: an earlier version of this PR also added projects.type. Project types were dropped from the design, so that column is gone.

Test

πŸ”— Related Issue

None.

@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lobehub Ready Ready Preview Nov 4, 2026 7:33pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
πŸ“ Code Review βœ… Completed 2026-11-04T18:43:14.163950Z 63f2890 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with πŸ‘€ while any review is running, comments if it has suggestions, and reacts with πŸ‘ once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Workbench preview

https://pr22278-lobehub-workbench-preview.lobeobjects-tg.workers.dev

A version, not a deployment: it takes no production traffic. Assets are served
from that same origin, so the page also renders through the gateway β€” point
workbench's override at that host on staging in ι³₯ε±…η•ͺ, then open
https://gateway-staging.lobehub.com/acceptance.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Share preview

https://pr22278-lobehub-share-preview.lobeobjects-tg.workers.dev

A version, not a deployment: it takes no production traffic. Built with the business overlay @ 87df47ba49e5b24747e7b8f563745c20431e27ba β€” the same surfaces the deployed worker renders.

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor
βœ… Bundle Size Gate β€” Web dist Β· 2 checks passed β€” expand for the tables

βœ… Web dist β€” 4 entries, largest Ξ” +0.0 KB (+0.00%)

Entry Baseline Current Ξ” Result
dist/desktop 90.72 MB 90.72 MB +0.0 KB (+0.00%) βœ…
dist/auth 7.80 MB 7.80 MB 0.0 KB (0.00%) βœ…
dist/workbench 49.95 MB 49.95 MB 0.0 KB (0.00%) βœ…
total 148.48 MB 148.48 MB +0.0 KB (+0.00%) βœ…

Gate: fails when increase > max(3% of baseline, 512.0 KB). Baseline: latest canary build.

Resolved dependency drift vs baseline: 1 package(s)
Package Baseline Current
mdast-util-to-markdown 2.2.1 2.2.2

No lockfile is committed, so every install re-resolves. Size deltas with drift but no package.json change come from upstream releases, not this PR.

βœ… First-screen static import graph (gzip) β€” 2 entries, largest Ξ” 0.0 KB (0.00%)

Entry Baseline Current Ξ” Result
dist/desktop 1.22 MB 1.22 MB 0.0 KB (0.00%) βœ…
dist/auth 444.1 KB 444.1 KB 0.0 KB (0.00%) βœ…

Gate: fails when increase > max(3% of baseline, 64.0 KB). Baseline: latest canary build.

Vite JS output Baseline files Current files Ξ” Limit Result
dist/desktop 1754 1754 +0 β€” β€”
dist/auth 50 50 +0 β€” β€”
dist/workbench 381 381 +0 β€” β€”
Total 2185 2185 +0 +5% (2294.25) βœ…

Gate: fails when the total number of Vite-emitted JS files increases by more than 5% from the canary baseline.

Entry Baseline reachable chunks Current reachable chunks Added to sync graph Removed
dist/desktop 18 18 β€” β€”
dist/auth 14 14 β€” β€”

Static graph chunk names are informational; the gate above uses the total Vite JS output file count.


Baseline: latest canary build (workflow artifact). Thresholds configurable via SIZE_GATE_PERCENT / SIZE_GATE_FLOOR_BYTES / SIZE_GATE_JS_CHUNK_PERCENT.

@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 69.52%. Comparing base (edf8710) to head (63f2890).
⚠️ Report is 3 commits behind head on canary.

Additional details and impacted files
@@           Coverage Diff            @@
##           canary   #22278    +/-   ##
========================================
  Coverage   69.52%   69.52%            
========================================
  Files        7778     7778            
  Lines      279382   279382            
  Branches    79877    79692   -185     
========================================
  Hits       194248   194248            
  Misses      66076    66076            
  Partials    19058    19058            
Flag Coverage Ξ”
app 59.91% <ΓΈ> (ΓΈ)
builtin-tools 74.48% <ΓΈ> (ΓΈ)
database 99.79% <ΓΈ> (ΓΈ)
packages/agent-gateway-client 86.92% <ΓΈ> (ΓΈ)
packages/agent-manager-runtime 78.52% <ΓΈ> (ΓΈ)
packages/agent-runtime 83.22% <ΓΈ> (ΓΈ)
packages/app-config 63.71% <ΓΈ> (ΓΈ)
packages/context-engine 82.78% <ΓΈ> (ΓΈ)
packages/conversation-flow 88.80% <ΓΈ> (ΓΈ)
packages/eval-dataset-parser 88.73% <ΓΈ> (ΓΈ)
packages/eval-rubric 79.02% <ΓΈ> (ΓΈ)
packages/fetch-sse 81.20% <ΓΈ> (ΓΈ)
packages/file-loaders 86.23% <ΓΈ> (ΓΈ)
packages/memory-user-memory 62.03% <ΓΈ> (ΓΈ)
packages/model-bank 97.20% <ΓΈ> (ΓΈ)
packages/model-runtime 81.49% <ΓΈ> (ΓΈ)
packages/openapi 60.06% <ΓΈ> (ΓΈ)
packages/prompts 75.17% <ΓΈ> (ΓΈ)
packages/trpc 80.98% <ΓΈ> (ΓΈ)
packages/types 89.39% <ΓΈ> (ΓΈ)
packages/utils 83.21% <ΓΈ> (ΓΈ)
packages/web-crawler 91.51% <ΓΈ> (ΓΈ)
server 71.07% <ΓΈ> (ΓΈ)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Ξ”
Server 71.63% <ΓΈ> (ΓΈ)
Database 99.79% <ΓΈ> (ΓΈ)
Builtin Tools 74.48% <ΓΈ> (ΓΈ)
Store 77.75% <ΓΈ> (ΓΈ)
Services 49.73% <ΓΈ> (ΓΈ)
Libs 67.05% <ΓΈ> (ΓΈ)
Utils 82.10% <ΓΈ> (ΓΈ)
πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Innei
Innei force-pushed the feat/project-onboarding-db branch from 424e46e to 63f2890 Compare November 4, 2026 18:32
@Innei Innei changed the title πŸ—ƒοΈ feat(database): add projects.type and project_sites.last_seen_at πŸ—ƒοΈ feat(database): add project_sites.last_seen_at Nov 4, 2026
@Innei
Innei marked this pull request as ready for review November 4, 2026 18:41

This branch was successfully deployed

1 active deployment
Preview β€” 63f2890a Deployed Nov 4, 2026 by vercel[bot]
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.

1 participant