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
3 changes: 1 addition & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ Importance: **Very high**
We use supabase for database, auth, and storage.

- /supabase

- ~~/functions~~ - we are not using supabase edge functions.
- /migrations - applied migration sqls.
- /schema - human friendly organized schema sqls.
Expand Down Expand Up @@ -183,7 +182,7 @@ turbo test --filter='./packages/*'
turbo build --filter='./packages/*'

# build packages in watch mode
pnpm dev:packages --concurrency 100
pnpm dev:packages

# run tests except for rust crates
turbo test --filter='!./crates/*'
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ pnpm install
pnpm turbo dev

# run specific app
pnpm turbo dev --filter=editor
pnpm dev:editor

# or simply..
cd editor
pnpm dev
pnpm dev # (cwd:/editor)

# -----
# building
Expand Down
2 changes: 1 addition & 1 deletion apps/backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@react-three/fiber": "9.1.2",
"clsx": "^2.1.1",
"motion": "^12.11.0",
"next": "16.1.3",
"next": "16.1.6",
"react": "19.2.3",
"react-dom": "19.2.3",
"shadergradient": "^1.2.14",
Expand Down
14 changes: 7 additions & 7 deletions apps/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
"write-translations": "docusaurus write-translations"
},
"dependencies": {
"@docusaurus/core": "3.7.0",
"@docusaurus/plugin-sitemap": "3.7.0",
"@docusaurus/preset-classic": "3.7.0",
"@docusaurus/theme-mermaid": "3.7.0",
"@docusaurus/core": "3.9.2",
"@docusaurus/plugin-sitemap": "3.9.2",
"@docusaurus/preset-classic": "3.9.2",
"@docusaurus/theme-mermaid": "3.9.2",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
"prism-react-renderer": "^2.4.1",
"react": "19.2.1",
"react-dom": "19.2.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.7.0",
"@docusaurus/tsconfig": "3.7.0",
"@docusaurus/types": "3.7.0",
"@docusaurus/module-type-aliases": "3.9.2",
"@docusaurus/tsconfig": "3.9.2",
"@docusaurus/types": "3.9.2",
"typescript": "^5"
},
"browserslist": {
Expand Down
16 changes: 8 additions & 8 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"write-translations": "docusaurus write-translations"
},
"dependencies": {
"@docusaurus/core": "3.7.0",
"@docusaurus/plugin-client-redirects": "3.7.0",
"@docusaurus/plugin-google-gtag": "3.7.0",
"@docusaurus/plugin-sitemap": "3.7.0",
"@docusaurus/preset-classic": "3.7.0",
"@docusaurus/core": "3.9.2",
"@docusaurus/plugin-client-redirects": "3.9.2",
"@docusaurus/plugin-google-gtag": "3.9.2",
"@docusaurus/plugin-sitemap": "3.9.2",
"@docusaurus/preset-classic": "3.9.2",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
"katex": "^0.16.11",
Expand All @@ -33,9 +33,9 @@
"remark-math": "^6.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.7.0",
"@docusaurus/tsconfig": "3.7.0",
"@docusaurus/types": "3.7.0",
"@docusaurus/module-type-aliases": "3.9.2",
"@docusaurus/tsconfig": "3.9.2",
"@docusaurus/types": "3.9.2",
"fs-extra": "^10.0.0",
"marked": "^4.0.10",
"typescript": "^5"
Expand Down
28 changes: 16 additions & 12 deletions apps/docs/scripts/docs-site-gen/copy-translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ function handle_translations_dir(dir_path) {

// remove translations dir after handled
fse.removeSync(dir_path);
// log result
console.log(`translations dir ${dir_path} removed`);
// log result (quiet by default; set DEBUG=1 for debug)
if (process.env.DEBUG) {
console.log(`translations dir ${dir_path} removed`);
}
}

/**
Expand Down Expand Up @@ -194,16 +196,18 @@ function handle_translation_dir(dir_path, locale) {
translation_dir_file_content_translated_path
);

// log
console.log(
`[copy-translations] ${locale}: ${path.relative(
docs_site_docs_root,
translation_dir_file_path
)} -> ${path.relative(
docs_site_docs_root,
translation_dir_file_content_translated_path
)}`
);
// log (quiet by default; set DEBUG=1 for debug)
if (process.env.DEBUG) {
console.log(
`[copy-translations] ${locale}: ${path.relative(
docs_site_docs_root,
translation_dir_file_path
)} -> ${path.relative(
docs_site_docs_root,
translation_dir_file_content_translated_path
)}`
);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@uidotdev/usehooks": "^2.4.1",
"lucide-react": "^0.511.0",
"next": "16.1.3",
"next": "16.1.6",
"pdfjs-dist": "4.8.69",
"react": "19.2.3",
"react-dom": "19.2.3",
Expand Down
2 changes: 1 addition & 1 deletion docs/@designto-code/flags/--as-modal.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: As Modal flag
id: "--as-mdi"
id: "--as-modal"
locale: en
stage:
- proposal
Expand Down
4 changes: 4 additions & 0 deletions docs/wg/feat-css/glossary/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Glossary",
"key": "glossary-css"
}
4 changes: 4 additions & 0 deletions docs/wg/feat-fig/glossary/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Glossary",
"key": "glossary-fig"
}
10 changes: 2 additions & 8 deletions editor/app/(api)/private/west/campaigns/[campaign_id]/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
createWestReferralClient,
service_role,
} from "@/lib/supabase/server";
import { createWestReferralClient, service_role } from "@/lib/supabase/server";
import { headers } from "next/headers";
import { NextRequest, NextResponse } from "next/server";

Expand Down Expand Up @@ -37,10 +34,7 @@ export async function DELETE(req: NextRequest, context: Context) {
.single();

if (fetchErr || !campaign) {
return NextResponse.json(
{ error: "Campaign not found" },
{ status: 404 }
);
return NextResponse.json({ error: "Campaign not found" }, { status: 404 });
}

// Delete the parent document — this cascades to the campaign row
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function errorMessage(e: unknown): string | null {
}

function errorBody(e: unknown): unknown | null {
if (isPlainObject(e) && "body" in e) return (e as { body?: unknown }).body ?? null;
if (isPlainObject(e) && "body" in e)
return (e as { body?: unknown }).body ?? null;
return null;
}

Expand Down Expand Up @@ -109,8 +110,9 @@ export async function refreshDomain(
if (domain_err || !domain_row) return notFound();

let vercel_verify: unknown = null;
let vercel_domain: Awaited<ReturnType<typeof projectsGetProjectDomain>> | null =
null;
let vercel_domain: Awaited<
ReturnType<typeof projectsGetProjectDomain>
> | null = null;
let vercel_config: unknown = null;
try {
vercel_verify = await projectsVerifyProjectDomain(hostname);
Expand Down Expand Up @@ -182,7 +184,9 @@ export async function refreshDomain(
last_error: null,
last_error_code,
vercel: (() => {
const prevObj = isPlainObject(domain_row.vercel) ? domain_row.vercel : {};
const prevObj = isPlainObject(domain_row.vercel)
? domain_row.vercel
: {};
return toJson({
...prevObj,
verify: vercel_verify,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ export async function POST(
const wwwClient = await createWWWClient();

const { data: project, error: project_err } = await client
.rpc(
"find_project",
{ p_org_ref: org, p_proj_ref: proj },
{ get: true }
)
.rpc("find_project", { p_org_ref: org, p_proj_ref: proj }, { get: true })
.single();
if (project_err) return notFound();

Expand Down Expand Up @@ -98,4 +94,3 @@ export async function POST(
data: { www: { id: www.id, name: www.name }, domain: updated },
});
}

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ function errorMessage(e: unknown): string | null {
}

function errorBody(e: unknown): unknown | null {
if (isPlainObject(e) && "body" in e) return (e as { body?: unknown }).body ?? null;
if (isPlainObject(e) && "body" in e)
return (e as { body?: unknown }).body ?? null;
return null;
}

Expand Down
8 changes: 5 additions & 3 deletions editor/app/(api)/private/~/[org]/[proj]/www/domains/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ function errorMessage(e: unknown): string | null {
}

function errorBody(e: unknown): unknown | null {
if (isPlainObject(e) && "body" in e) return (e as { body?: unknown }).body ?? null;
if (isPlainObject(e) && "body" in e)
return (e as { body?: unknown }).body ?? null;
return null;
}

Expand Down Expand Up @@ -243,8 +244,9 @@ export async function POST(

// 1) Attach to Vercel project
let vercel_add: unknown = null;
let vercel_domain: Awaited<ReturnType<typeof projectsGetProjectDomain>> | null =
null;
let vercel_domain: Awaited<
ReturnType<typeof projectsGetProjectDomain>
> | null = null;
let vercel_config: unknown = null;
try {
vercel_add = await projectsAddProjectDomain(hostname);
Expand Down
6 changes: 3 additions & 3 deletions editor/app/(dev)/dev/frames/mail/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export default function MailFramePage() {
<EmailFrameBody className="prose prose-stone dark:prose-invert max-w-none">
<p>Dear team,</p>
<p>
Im excited to announce the release of our latest feature update. This
release includes several new capabilities that will help you work
more efficiently and effectively.
Im excited to announce the release of our latest feature update.
This release includes several new capabilities that will help you
work more efficiently and effectively.
Comment on lines +21 to +23
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: "Im" → "I'm"

Line 21: missing apostrophe in "Im excited" — should be "I'm excited". (Lines 32–33 also have "Weve" and "were" that are similarly missing apostrophes, though those aren't part of this change.)

Proposed fix
-            Im excited to announce the release of our latest feature update.
+            I&apos;m excited to announce the release of our latest feature update.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Im excited to announce the release of our latest feature update.
This release includes several new capabilities that will help you
work more efficiently and effectively.
I'm excited to announce the release of our latest feature update.
This release includes several new capabilities that will help you
work more efficiently and effectively.
🤖 Prompt for AI Agents
In `@editor/app/`(dev)/dev/frames/mail/page.tsx around lines 21 - 23, Fix the
missing apostrophe in the string "Im excited to announce the release..." by
changing "Im" to "I'm" inside the page content in page.tsx (search for the exact
phrase "Im excited to announce the release of our latest feature update."). Also
scan nearby content for similar contractions like "Weve" and "were" and correct
them to "We've" and "we're" if present.

</p>
<p>Some of the key highlights include:</p>
<ul>
Expand Down
6 changes: 3 additions & 3 deletions editor/app/(dev)/ui/components/degree/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import React, { useState } from "react";
import { TooltipProvider } from "@radix-ui/react-tooltip";
import { Tooltip as TooltipPrimitive } from "radix-ui";
import DegreeControl from "@/scaffolds/sidecontrol/controls/degree";
import { ComponentDemo } from "../component-demo";

Expand All @@ -11,7 +11,7 @@ export default function DegreeControlPage() {
const [disabledRotation, setDisabledRotation] = useState(45);

return (
<TooltipProvider>
<TooltipPrimitive.Provider>
<main className="container max-w-screen-lg mx-auto py-10">
<div className="space-y-8">
<div>
Expand Down Expand Up @@ -228,6 +228,6 @@ export default function DegreeControlPage() {
</section>
</div>
</main>
</TooltipProvider>
</TooltipPrimitive.Provider>
);
}
45 changes: 34 additions & 11 deletions editor/app/(dev)/ui/frames/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,35 @@ export default function FramesPage() {
<EmailFrameSubject
actions={
<>
<Button variant="ghost" size="icon" className="h-7 w-7">
<Button
variant="ghost"
size="icon"
className="h-7 w-7"
>
<ReplyIcon className="h-3.5 w-3.5" />
<span className="sr-only">Reply</span>
</Button>
<Button variant="ghost" size="icon" className="h-7 w-7">
<Button
variant="ghost"
size="icon"
className="h-7 w-7"
>
<ForwardIcon className="h-3.5 w-3.5" />
<span className="sr-only">Forward</span>
</Button>
<Button variant="ghost" size="icon" className="h-7 w-7">
<Button
variant="ghost"
size="icon"
className="h-7 w-7"
>
<ArchiveIcon className="h-3.5 w-3.5" />
<span className="sr-only">Archive</span>
</Button>
<Button variant="ghost" size="icon" className="h-7 w-7">
<Button
variant="ghost"
size="icon"
className="h-7 w-7"
>
<TrashIcon className="h-3.5 w-3.5" />
<span className="sr-only">Delete</span>
</Button>
Expand Down Expand Up @@ -316,19 +332,25 @@ export default function FramesPage() {
</p>
<div className="h-96 overflow-hidden rounded-lg border">
<EmailFrame className="h-full flex flex-col">
<EmailFrameSubject>Thanks for your submission</EmailFrameSubject>
<EmailFrameSubject>
Thanks for your submission
</EmailFrameSubject>
<EmailFrameSender
name="Grida Forms"
email="no-reply@accounts.grida.co"
date="Just now"
/>
<EmailFrameBody className="prose prose-stone dark:prose-invert max-w-none">
<h2>Thanks for registering!</h2>
<p>We received your submission for the Annual Conference.</p>
<p>
We received your submission for the Annual Conference.
</p>
<p>Your registration number: #042</p>
<h3>What happens next?</h3>
<ul>
<li>You will receive a confirmation email within 24 hours</li>
<li>
You will receive a confirmation email within 24 hours
</li>
<li>Our team will review your application</li>
<li>If approved, you will get your ticket via email</li>
</ul>
Expand All @@ -341,12 +363,13 @@ export default function FramesPage() {
</p>
<h3>Important notes</h3>
<p>
Please bring a valid ID and your ticket (digital or printed)
to the event. Doors open at 8:30 AM for registration.
Please bring a valid ID and your ticket (digital or
printed) to the event. Doors open at 8:30 AM for
registration.
</p>
<p>
If you have any dietary requirements, please let us know at
least 48 hours before the event.
If you have any dietary requirements, please let us know
at least 48 hours before the event.
</p>
<p>We look forward to seeing you there!</p>
<hr />
Expand Down
Loading
Loading