Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
chore(release): v2.1.0 artifacts, and thumbnails on the site's new design (#523)
Paulo Castellano6ea9bed60047
diff --git a/.claude/commands/release.md b/.claude/commands/release.mdindex e8cda652e..c608e97ca 100644--- a/.claude/commands/release.md+++ b/.claude/commands/release.md@@ -8,7 +8,7 @@ You are running the Friday release ritual for TryPost. Four artifacts are produc1. A git tag (semver)2. A GitHub release with the **auto-generated** changelog (PR list + authors via GitHub's native generator — flat, technical, for developers)3. A **customer-facing email draft** in Cal.com style (themed prose, end-user voice, no commit/PR references)-4. A **changelog thumbnail** (1200×630 PNG) rendered from the email's headline and themes, using the TryPost brand template+4. A **changelog thumbnail** (1200×630 PNG) rendered from the email's headline and themes, on the marketing site's hero designPlus local mirrors in `releases/<version>/` (changelog, email, and thumbnail), versioned via the artifacts PR.@@ -134,6 +134,16 @@ You're receiving this because you subscribed.**Always end with the unsubscribe footer** — the `---` separator, the "You're receiving this because you subscribed." line, and an `[Unsubscribe]({{unsubscribe_url}})` link below the signature. Keep `{{unsubscribe_url}}` as a literal placeholder; the email sending tool fills it in. This footer is required on every customer email.+#### Voice++The email is copy, not a commit log: apply the `copywriting` skill's principles (`.agents/skills/copywriting/SKILL.md`) and the voice of the `in-app-copy` skill (`.claude/skills/in-app-copy/SKILL.md`). In practice:++- **Run every header, subject slot and bullet through "Now you can…".** If "Now you can see every post on a board" reads as a concrete, true new ability, keep it. If it reads vague ("Now you can… plan it on a board") or isn't an ability at all, rewrite it.+- **Talk to the reader and lead with the point.** "You", "your posts". The first sentence of a section says what they can do now; the details come after. A rhetorical question that names their situation is a good opener ("Want to know what's waiting for approval?").+- **Use the words on screen.** Name buttons, tabs and types as the app shows them (Publish, Board, Poll, Sent, Move up), so the reader can find the thing the email talks about. No internal names (slots, holders, meta, destinations).+- **Specific over clever.** Say which networks, which view, which limit. A line that sounds nice but could describe any release ("Plan it on a board, ask your followers") fails.+- **Bullets start with what the reader can do** (an imperative or "you can"), not with the name of a feature: "Add a first comment to a LinkedIn post", not "LinkedIn comments".+#### Section headersA theme header names the outcome the reader gets or the symptom that is gone. Sentence case. It has to make sense to someone who never saw the bug report.@@ -219,28 +229,98 @@ The humanizer skill itself covers all patterns. Trust it.### Step 5b — Render the changelog thumbnail-Derive these inputs from the release. The **headline and the chips play different roles — never make one restate the other**:+**The image tells one story: the headline, the screenshot and the chips are all about the same feature**, the release's widest-reach one (the email's first section). A headline about the board next to a calendar, with chips about other features, reads as three unrelated things. The rest of the release lives in the email, not in the image.++- **version** — always pass the release version (e.g. `v1.0.6`). It is shown in the violet pill above the headline (`● Changelog · v1.0.6`). Not optional.+- **headline** — that feature as a hero line that passes the "Now you can…" test (see Voice in Step 4): "Now you can see every post on one board" is concrete and true, so `See every post | on one board` works; `Plan it on a board, ask your followers` does not (vague, two ideas, says nothing a reader can picture). Two short lines of about 15–20 characters each, split with `|`; the script shrinks a line that is too long for the column, so a long line comes out small: shorten it instead. Sentence case, no version number, no period.+ - ❌ `Plan it on a board, ask your followers` (clever, vague, two ideas)+ - ❌ `All your posts on one board, polls on X, Mastodon and Threads` (two ideas, too long for the column)+ - ✅ `See every post | on one board`+- **scene** — the app path that shows that feature, with its query (`/schedule/board`, `/schedule/board?group=tag`, `/insights`). The script signs in as the demo user and shoots it (see Demo data below).+- **themes** — 2-4 short chips about the same feature: what it lets the reader do, in the words the screen uses (`By status`, `By tag`, `By channel` for the board). Never another feature of the release.++#### Demo data++The screenshot is the real app with demo content, never a real workspace. There is no seeder file for it: create it with tinker right before the render and remove it right after, so the scheduler never picks its posts up.++- **The brand is the site's:** John Doe / Doe Media, the channel avatar and the coffee and ceramics photos of trypost-site (`public/images/avatars`, `public/images/mockup/posts`). Media URLs use the host `https://demo-media.trypost.invalid/<path under the site's public/images>`; the render script answers them from the site, so nothing is uploaded to a disk.+- **Shape it for the scene:** the base below fills the board and the calendar (ten channels, three tags, posts in every status dated around today). When the feature needs other data (a poll with results, a cover, ideas, insights), add it to the snippet, built with the model factories and their states (`database/factories`).+- **Sign-in:** `[email protected]` / `password`, with an active subscription so the app opens without Welcome.++Write the snippet to the scratchpad and run it with `--execute` (never `php artisan tinker <file>`, which stays in the interactive shell and hangs):-- **version** — always pass the release version (e.g. `v1.0.6`). It is stamped in the badge as a mono segment (`★ CHANGELOG | v1.0.6`) so every release image is consistent. Not optional.-- **headline** — a crafted marketing hero line (2-6 words, at most two lines), in the voice of the marketing site's hero (`Run your social media on autopilot`). It sells the *benefit* of the release's biggest wins; it is the loudest thing on the image. Do **NOT** paste the subject line, and do **NOT** just list the theme/chip words — the chips already name the areas, so the headline sits one level above them. Read the email's themes **and** the "New features" bullets, find the strongest story, and write a fresh benefit line. A little rhythm helps (a parallel pair reads well, e.g. `Speak every language, reach every reader`). Sentence case, no version number in the headline itself (it lives in the badge), no period.- - ❌ `Your language, mobile, and per-image alt text` (this is just the chip labels)- - ✅ `Speak every language, reach every reader` (benefit-driven, distinct from the chips)-- **underline** — a short emphasis phrase *inside* the headline (1-3 words) to carry the hand-drawn violet squiggle, usually the last / most important phrase (e.g. `every reader`). Must appear in the headline verbatim. Optional; omit for no squiggle.-- **themes** — 2-4 short chip labels naming the concrete areas that shipped, condensed to 1-2 words each (e.g. `Languages`, `Mobile`, `Alt text & previews`). These are secondary supporting labels, rendered smaller than the headline; the template auto-colors them (violet / green / sky / orange / rose, in order). Keep them concrete and distinct from the headline's wording. **Order the chips to match the email's section order**, so the image and the email tell the story in the same sequence. Chips are the one place a bare area label is correct: the headline sells the benefit, the chips name where it landed.+```bash+php artisan tinker --execute "$(cat <scratchpad>/release-demo.php)" < /dev/null+```++Base snippet:++```php+use App\Models\{Account, Post, SocialAccount, User, Workspace, WorkspaceLabel};+use Carbon\CarbonImmutable;+use Illuminate\Support\Str;++$media = fn (?string $photo) => blank($photo) ? [] : [['id' => (string) Str::uuid(), 'path' => "demo/{$photo}", 'url' => "https://demo-media.trypost.invalid/mockup/posts/{$photo}", 'type' => 'image', 'mime_type' => 'image/jpeg']];++$user = User::factory()->create(['name' => 'John Doe', 'email' => '[email protected]', 'password' => 'password', 'timezone' => 'America/New_York']);+$user->account->update(['name' => 'Doe Media']);+$user->account->subscriptions()->create(['type' => Account::SUBSCRIPTION_NAME, 'stripe_id' => 'sub_demo', 'stripe_status' => 'active', 'stripe_price' => 'price_demo']);+$workspace = Workspace::factory()->create(['user_id' => $user->id, 'account_id' => $user->account_id, 'name' => 'Doe Media']);+$workspace->members()->attach($user->id, ['is_admin' => true, 'requires_approval' => false]);+$user->update(['current_workspace_id' => $workspace->id]);++$channels = [];+foreach (['instagram' => 'doe.media', 'linkedin' => 'Doe Media', 'x' => 'doemedia', 'tiktok' => 'doe.media', 'youtube' => 'Doe Media', 'threads' => 'doe.media', 'bluesky' => 'doemedia.bsky.social', 'mastodon' => '[email protected]', 'facebook' => 'Doe Media', 'pinterest' => 'doemedia'] as $network => $username) {+ $channels[$network] = SocialAccount::factory()->{$network}()->create(['workspace_id' => $workspace->id, 'display_name' => 'John Doe', 'username' => $username, 'avatar_url' => 'https://demo-media.trypost.invalid/avatars/persona.svg', 'position' => count($channels) + 1, 'timezone' => 'America/New_York']);+}++$labels = [];+foreach (['Launch' => '#DDA0DD', 'Behind the scenes' => '#89CFF0', 'Promo' => '#FFD580'] as $name => $color) {+ $labels[$name] = WorkspaceLabel::factory()->create(['workspace_id' => $workspace->id, 'name' => $name, 'color' => $color]);+}++foreach ([+ ['instagram', 'draft', 3, 9, 'New mugs, same morning ritual. Which glaze is your favorite?', 'mugs.jpg', ['Launch']],+ ['linkedin', 'draft', 4, 11, 'Three things we learned shipping our first ceramics collection.', null, ['Behind the scenes']],+ ['pinterest', 'draft', 5, 15, 'Moodboard for the spring collection: soft clay, warm light.', 'moodboard.jpg', []],+ ['tiktok', 'pendingApproval', 1, 18, 'From a lump of clay to your morning latte, in 30 seconds.', 'wheel.jpg', ['Behind the scenes']],+ ['facebook', 'pendingApproval', 2, 10, 'Weekend market this Saturday: come say hi and try a cup.', 'shelf.jpg', ['Promo']],+ ['instagram', 'scheduled', 1, 9, 'Latte art Friday. Tag a friend who needs a coffee.', 'latte.jpg', ['Promo']],+ ['x', 'scheduled', 1, 12, 'The spring collection drops Monday. Set a reminder.', null, ['Launch']],+ ['youtube', 'scheduled', 2, 14, 'How we glaze a mug, start to finish', 'shoot.jpg', ['Behind the scenes']],+ ['threads', 'scheduled', 3, 11, 'Coffee first, emails later. What is your morning order?', null, []],+ ['instagram', 'published', -1, 9, 'Our studio shelf is officially full. Thank you for an amazing month.', 'shelf.jpg', []],+ ['linkedin', 'published', -1, 13, 'We are hiring a part-time studio assistant. Know someone?', 'laptop.jpg', []],+ ['bluesky', 'published', -2, 10, 'Fresh batch out of the kiln this morning.', 'mug.jpg', ['Behind the scenes']],+ ['mastodon', 'failed', -1, 16, 'Spring collection preview, now with photos.', 'mugs.jpg', ['Launch']],+] as [$network, $state, $day, $hour, $text, $photo, $tags]) {+ $at = CarbonImmutable::now('America/New_York')->startOfDay()->addDays($day)->setHour($hour)->utc();+ $post = Post::factory()->forAccount($channels[$network])->{$state}()->create(['user_id' => $user->id, 'content' => "<p>{$text}</p>", 'media' => $media($photo), 'scheduled_at' => $at, 'published_at' => $state === 'published' ? $at : null, 'meta' => $network === 'youtube' ? ['title' => $text] : []]);+ $post->labels()->attach(collect($tags)->map(fn ($tag) => $labels[$tag]->id)->all());+}++echo "demo ready\n";+```++After the render (and before anything else), remove it, and check that no demo user is left:++```bash+php artisan tinker --execute '$user = App\Models\User::where("email", "[email protected]")->first(); $account = $user->account; $account->workspaces()->each(fn ($workspace) => $workspace->delete()); $user->delete(); $account->delete(); echo App\Models\User::where("email", "[email protected]")->count();' < /dev/null+```Create the directory and render the thumbnail so the user can preview it before confirming:```bashmkdir -p releases/<version>-node .claude/release-assets/render-thumbnail.mjs \+node .claude/release-assets/render-thumbnail.ts \--version "<version>" \- --headline "<headline>" \- --underline "<emphasis phrase>" \+ --headline "<first line> | <second line>" \--themes "<label 1>,<label 2>,<label 3>" \+ --scene "<app path>" \--out releases/<version>/thumbnail.png```-This uses the shared brand template (`.claude/release-assets/thumbnail.template.html`) + TryPost logo. It mirrors the marketing-site hero / OG image: a warm cream→lavender wash, an ink dot-grid, an Instrument Serif headline with a hand-drawn violet squiggle under the emphasis phrase, an amber "Changelog" sticker badge with the version stamped in mono, and colored ink-bordered theme chips with solid offset shadows. 1200×630. It needs Playwright + chromium (already installed for browser tests). If the render fails, report and stop before tagging.+It draws the marketing site's hero, like the site's share image and the profile banners (`trypost-site/.claude/og-assets/shoot-og-hero.mjs`, `~/Herd/paulo-social-media-banners`): the hero's lilac with the text on the left (logo, version pill, headline, chips) and, on the right, a window holding the real screenshot of the scene, running off the edges, 1200×630 at 2x. It needs the app's Vite dev server (`npm run dev`; start it if `public/hot` is missing) and trypost-site next to this repo (`../trypost-site`, or `TRYPOST_SITE_DIR`), whose dev server on port 4390 it starts and stops when nothing answers there. It needs the demo data above to exist while it runs. If the render fails, report and stop before tagging.### Step 6 — Confirm with the userdiff --git a/.claude/release-assets/logo.png b/.claude/release-assets/logo.pngdeleted file mode 100644index db7f9e423..000000000Binary files a/.claude/release-assets/logo.png and /dev/null differdiff --git a/.claude/release-assets/render-thumbnail.mjs b/.claude/release-assets/render-thumbnail.mjsdeleted file mode 100644index 8322d4bd9..000000000--- a/.claude/release-assets/render-thumbnail.mjs+++ /dev/null@@ -1,99 +0,0 @@-// Render a release changelog thumbnail (1200x630 PNG) from the shared template.-//-// Usage:-// node .claude/release-assets/render-thumbnail.mjs \-// --headline "Your language, mobile, and per-image alt text" \-// --underline "alt text" \-// --themes "Languages,Mobile,Alt text & previews" \-// --out releases/v1.0.6/thumbnail.png-//-// Optional:-// --version "v1.0.6" — stamped in the badge as a mono version segment.-// --badge "Changelog" (default) — the amber sticker label, top-right.-// --underline "phrase" — a phrase inside the headline to get the hand-drawn-// violet squiggle (mirrors the marketing-site hero).-//-// Playwright is resolved from the repo's node_modules, so the script works-// regardless of where it is invoked.--import { readFileSync, writeFileSync, unlinkSync } from 'fs';-import { createRequire } from 'module';-import { tmpdir } from 'os';-import { dirname, join } from 'path';-import { fileURLToPath } from 'url';--const here = dirname(fileURLToPath(import.meta.url));-const repoRoot = join(here, '..', '..');-const require = createRequire(join(repoRoot, 'package.json'));-const { chromium } = require('playwright');--const args = {};-for (let i = 2; i < process.argv.length; i += 2) {- args[process.argv[i].replace(/^--/, '')] = process.argv[i + 1];-}--if (!args.headline || !args.out) {- console.error('usage: render-thumbnail.mjs --headline "..." --themes "a,b,c" --out path.png [--version "v1.0.6"] [--underline "phrase"] [--badge "Changelog"]');- process.exit(1);-}--const escapeHtml = (value) =>- String(value)- .replaceAll('&', '&')- .replaceAll('<', '<')- .replaceAll('>', '>')- .replaceAll('"', '"');--// Hand-drawn violet squiggle under an emphasis phrase — same path the hero uses.-const squiggle = (phrase) =>- `<span class="ul">${phrase}<svg class="squiggle" viewBox="0 0 200 12" preserveAspectRatio="none" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" aria-hidden="true"><path d="M 5 6 Q 25 0, 50 6 T 100 6 T 150 6 T 195 6" /></svg></span>`;--let headlineHtml = escapeHtml(args.headline);-if (args.underline) {- const escapedPhrase = escapeHtml(args.underline);- if (headlineHtml.includes(escapedPhrase)) {- headlineHtml = headlineHtml.replace(escapedPhrase, squiggle(escapedPhrase));- }-}--const themes = (args.themes ?? '')- .split(',')- .map((theme) => theme.trim())- .filter(Boolean);--const chips = themes- .map((theme) => `<span class="chip">${escapeHtml(theme)}</span>`)- .join('\n ');--const star = `<svg class="star" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2l2.9 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l7.1-1.01z" /></svg>`;-let badgeInner = `<span class="label">${star}${escapeHtml(args.badge ?? 'Changelog')}</span>`;-if (args.version) {- badgeInner += `<span class="ver">${escapeHtml(args.version)}</span>`;-}--const logoDataUri = `data:image/png;base64,${readFileSync(join(here, 'logo.png')).toString('base64')}`;--const html = readFileSync(join(here, 'thumbnail.template.html'), 'utf8')- .replace('{{LOGO}}', logoDataUri)- .replace('{{BADGE_INNER}}', badgeInner)- .replace('{{HEADLINE}}', headlineHtml)- .replace('{{CHIPS}}', chips);--const tmpFile = join(tmpdir(), `trypost-thumbnail-${process.pid}.html`);-writeFileSync(tmpFile, html);--const browser = await chromium.launch();-try {- const page = await browser.newPage({- viewport: { width: 1200, height: 630 },- deviceScaleFactor: 2,- });- await page.goto(`file://${tmpFile}`, { waitUntil: 'networkidle' });- await page.evaluate(() => document.fonts.ready);- await page.screenshot({ path: args.out });-} finally {- await browser.close();- unlinkSync(tmpFile);-}--console.log('wrote', args.out);diff --git a/.claude/release-assets/render-thumbnail.ts b/.claude/release-assets/render-thumbnail.tsnew file mode 100644index 000000000..1ea1b0d57--- /dev/null+++ b/.claude/release-assets/render-thumbnail.ts@@ -0,0 +1,306 @@+// Render a release changelog thumbnail (1200x630 at 2x) on the marketing site's design: the+// lilac of trypost-site's /channels hero, the text on the left (logo, a "Changelog · <version>"+// pill, the release headline, the themes as glass pills) and, on the right, a window holding a+// real screenshot of the app screen the release is about, running off the right and bottom+// edges. The layout follows the site's share image (trypost-site/.claude/og-assets/+// shoot-og-hero.mjs) and the profile banners (~/Herd/paulo-social-media-banners).+//+// Usage:+// node .claude/release-assets/render-thumbnail.ts \+// --version "v2.1.0" \+// --headline "See every post | on one board" \+// --themes "By status,By tag,By channel" \+// --scene "/schedule/board" \+// --out releases/v2.1.0/thumbnail.png+//+// The headline breaks into its two lines at "|" (or at the middle word without one). `--scene`+// is the app path to shoot, with its query (`/schedule/board?group=tag`).+//+// The screenshot comes from the local app (APP_URL, with `npm run dev` running): the script signs+// in as [email protected] / password, the demo workspace /release creates with tinker before the+// render (and removes after), and shoots the scene without its sidebar. Demo media URLs on+// https://demo-media.trypost.invalid/<path> are answered from trypost-site's public/images/<path>.+//+// The canvas comes from trypost-site's dev server on port+// 4390; when nothing answers there, it starts `astro dev` in TRYPOST_SITE_DIR (default: the+// trypost-site folder next to this repo) and stops it at the end.++import { execFileSync, spawn, type ChildProcess } from 'node:child_process';+import { existsSync, readFileSync } from 'node:fs';+import { createRequire } from 'node:module';+import { dirname, join } from 'node:path';+import process from 'node:process';+import { fileURLToPath } from 'node:url';++const here = dirname(fileURLToPath(import.meta.url));+const repoRoot = join(here, '..', '..');+const require = createRequire(join(repoRoot, 'package.json'));+const { chromium } = require('playwright');++const PORT = 4390;+const SITE_URL = `http://localhost:${PORT}`;+const SITE_DIR = process.env.TRYPOST_SITE_DIR ?? join(repoRoot, '..', 'trypost-site');++const args: Record<string, string> = {};+for (let i = 2; i < process.argv.length; i += 2) {+ args[process.argv[i].replace(/^--/, '')] = process.argv[i + 1];+}++if (!args.headline || !args.out || !args.version || !args.scene) {+ console.error('usage: render-thumbnail.ts --version "v2.1.0" --headline "line one | line two" --themes "a,b,c" --scene "/schedule/board" --out path.png');+ process.exit(1);+}++const headlineLines = (headline: string): [string, string] => {+ if (headline.includes('|')) {+ const [first, ...rest] = headline.split('|');++ return [first.trim(), rest.join(' ').trim()];+ }++ const words = headline.trim().split(/\s+/);+ const middle = Math.ceil(words.length / 2);++ return [words.slice(0, middle).join(' '), words.slice(middle).join(' ')];+};++const [line1, line2] = headlineLines(args.headline);+const themes = (args.themes ?? '')+ .split(',')+ .map((theme) => theme.trim())+ .filter(Boolean);++const siteAnswers = async (): Promise<boolean> => {+ try {+ await fetch(SITE_URL, { redirect: 'manual' });++ return true;+ } catch {+ return false;+ }+};++// The server may already be gone (another dev server took the port first), so a stop never fails.+const stopSite = (server: ChildProcess): void => {+ try {+ process.kill(-server.pid!);+ } catch {+ // Already stopped.+ }+};++const startSite = async (): Promise<ChildProcess> => {+ const server = spawn('npx', ['astro', 'dev', '--port', String(PORT)], {+ cwd: SITE_DIR,+ env: { ...process.env, TRYPOST_AGENT: '1' },+ stdio: 'ignore',+ detached: true,+ });++ for (let attempt = 0; attempt < 120; attempt++) {+ if (await siteAnswers()) {+ return server;+ }++ await new Promise((resolve) => setTimeout(resolve, 1000));+ }++ stopSite(server);+ throw new Error(`trypost-site did not start on ${SITE_URL} (from ${SITE_DIR})`);+};++const layout = { w: 1200, h: 630, title: 60, logo: 30, appx: 640, appy: 104, windoww: 940, dpr: 2 };+const APP_URL = execFileSync('php', ['artisan', 'tinker', '--execute', 'echo config("app.url");'], { cwd: repoRoot, encoding: 'utf8' }).trim();+const DEMO_MEDIA = join(SITE_DIR, 'public', 'images');+const DEMO_MEDIA_HOST = 'demo-media.trypost.invalid/';++if (!existsSync(join(repoRoot, 'public', 'hot'))) {+ console.error('The app needs the Vite dev server: run `npm run dev` first.');+ process.exit(1);+}++const mediaType = (file: string): string => {+ if (file.endsWith('.svg')) {+ return 'image/svg+xml';+ }++ if (file.endsWith('.png')) {+ return 'image/png';+ }++ return 'image/jpeg';+};++// A screenshot of the scene in the demo workspace, without the app's sidebar, as a data URI.+const shootScene = async (): Promise<string> => {+ const context = await browser.newContext({+ viewport: { width: 1600, height: 1000 },+ deviceScaleFactor: layout.dpr,+ ignoreHTTPSErrors: true,+ });+ await context.route(new RegExp(DEMO_MEDIA_HOST.replaceAll('.', '\\.')), (route: { request: () => { url: () => string }; fulfill: (response: object) => void }) => {+ const file = route.request().url().split(DEMO_MEDIA_HOST)[1];+ route.fulfill({ body: readFileSync(join(DEMO_MEDIA, file)), contentType: mediaType(file) });+ });+ await context.addInitScript(() => {+ const style = document.createElement('style');+ style.textContent = '[data-testid="mcp-prompt"], [data-sonner-toaster] { display: none !important; }';+ document.addEventListener('DOMContentLoaded', () => document.head.append(style));+ });++ const app = await context.newPage();+ await app.goto(`${APP_URL}/login`);+ await app.fill('[data-testid="login-email"]', '[email protected]');+ await app.fill('[data-testid="login-password"]', 'password');+ await app.click('[data-testid="login-submit"]');+ await app.waitForURL((url: URL) => !url.pathname.startsWith('/login'), { timeout: 60000 });+ await app.goto(`${APP_URL}${args.scene}`);+ await app.waitForTimeout(3000);++ // A tour that opens on the scene is closed; the next one waiting there opens after it.+ for (let attempt = 0; attempt < 5 && (await app.locator('[data-testid="tour-backdrop"]').count()) > 0; attempt++) {+ await app.keyboard.press('Escape');+ await app.waitForTimeout(600);+ }+ await app.mouse.move(0, 999);+ await app.waitForTimeout(800);++ const main: { x: number; width: number } = await app.evaluate(() => {+ const box = document.querySelector('main')!.getBoundingClientRect();++ return { x: box.left, width: box.width };+ });+ const shot: Buffer = await app.screenshot({ clip: { x: main.x, y: 0, width: main.width, height: 1000 } });+ await context.close();++ return `data:image/png;base64,${shot.toString('base64')}`;+};++let server: ChildProcess | null = null;+if (!(await siteAnswers())) {+ server = await startSite();+}++const browser = await chromium.launch();+try {+ const sceneShot = await shootScene();++ const page = await browser.newPage({+ viewport: { width: layout.w, height: layout.h },+ deviceScaleFactor: layout.dpr,+ });+ await page.goto(`${SITE_URL}/en/channels`, { waitUntil: 'load', timeout: 120000 });+ await page.waitForTimeout(2500);++ // The hero section becomes the 1200x630 canvas: its lilac stays, the text column is built on the+ // left and the app window sits on the right, running off the right and bottom edges.+ await page.evaluate(+ ({ layout, line1, line2, themes, version, sceneShot }) => {+ const q = (selector: string): HTMLElement => document.querySelector(selector) as HTMLElement;+ const element = (tag: string, css: string, text?: string): HTMLElement => {+ const node = document.createElement(tag);+ node.style.cssText = css;+ if (text) {+ node.textContent = text;+ }++ return node;+ };++ document.querySelectorAll<HTMLElement>('header, astro-dev-toolbar, [data-testid="feature-hero-decor"]').forEach((node) => {+ node.style.display = 'none';+ });++ const section = q('[data-testid="feature-hero"]');+ const title = q('[data-testid="feature-hero-title"]');+ const titleStyle = getComputedStyle(title);+ const app = q('[data-testid="feature-hero-app"]');+ const lilac = getComputedStyle(q('[data-testid="feature-hero-stage"]')).backgroundImage;++ Object.assign(section.style, {+ backgroundImage: lilac,+ position: 'fixed',+ top: '0',+ left: '0',+ width: `${layout.w}px`,+ height: `${layout.h}px`,+ margin: '0',+ overflow: 'hidden',+ zIndex: '2147483000',+ });+ q('[data-testid="feature-hero-frame"]').style.display = 'none';+ q('[data-testid="feature-hero-inner"]').style.display = 'none';++ app.remove();+ const window = element(+ 'div',+ `position:absolute;left:${layout.appx}px;top:${layout.appy}px;width:${layout.windoww}px;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px rgba(15,15,30,.08),0 24px 60px rgba(60,40,140,.18)`,+ );+ const bar = element('div', 'display:flex;gap:7px;padding:12px 14px;border-bottom:1px solid rgba(15,15,30,.06)');+ for (const color of ['#ff5f57', '#febc2e', '#28c840']) {+ bar.append(element('span', `width:11px;height:11px;border-radius:50%;background:${color}`));+ }+ const screen = element('img', 'display:block;width:100%');+ screen.setAttribute('src', sceneShot);+ window.append(bar, screen);+ section.append(window);++ const column = element(+ 'div',+ 'position:absolute;left:64px;top:0;bottom:0;width:540px;display:flex;flex-direction:column;justify-content:center;z-index:5',+ );++ const logo = element('img', `position:absolute;left:64px;top:52px;height:${layout.logo}px;z-index:5`);+ logo.setAttribute('src', '/images/trypost/logo-light.png');+ logo.id = 'banner-logo';++ const pill = element(+ 'div',+ 'display:flex;width:max-content;align-items:center;gap:8px;margin-bottom:22px;padding:7px 14px;border-radius:999px;background:rgba(255,255,255,.8);box-shadow:0 0 0 1px rgba(124,58,237,.18),0 4px 14px rgba(91,33,182,.10);font:600 14px/1 var(--font-sans);letter-spacing:.02em;color:#6d28d9',+ );+ pill.append(element('span', 'width:7px;height:7px;border-radius:50%;background:#7c3aed'), `Changelog · ${version}`);++ const headline = element(+ 'h1',+ `margin:0;font-family:${titleStyle.fontFamily};font-weight:${titleStyle.fontWeight};font-size:${layout.title}px;line-height:1.04;letter-spacing:-0.035em;color:${titleStyle.color}`,+ );+ for (const text of [line1, line2]) {+ headline.append(element('span', 'display:block;white-space:nowrap;width:max-content', text));+ }++ const chips = element('div', 'display:flex;flex-wrap:wrap;gap:10px;margin-top:30px');+ for (const theme of themes) {+ chips.append(+ element(+ 'span',+ 'padding:9px 15px;border-radius:12px;background:rgba(255,255,255,.85);box-shadow:0 0 0 1px rgba(15,15,30,.06),0 6px 16px rgba(60,40,140,.10);font:550 16px/1 var(--font-sans);color:#18181b',+ theme,+ ),+ );+ }++ column.append(pill, headline, chips);+ section.append(logo, column);++ // Each line stays on one line: the headline shrinks until its longest line fits the column.+ const widest = (): number => Math.max(...[...headline.children].map((line) => (line as HTMLElement).offsetWidth));+ let size = layout.title;+ while (size > 36 && widest() > column.clientWidth) {+ size -= 1;+ headline.style.fontSize = `${size}px`;+ }+ window.scrollTo(0, 0);+ },+ { layout, line1, line2, themes, version: args.version, sceneShot },+ );+ await page.waitForTimeout(800);++ await page.screenshot({ path: args.out, clip: { x: 0, y: 0, width: layout.w, height: layout.h } });+} finally {+ await browser.close();+ if (server) {+ stopSite(server);+ }+}++console.log('wrote', args.out);diff --git a/.claude/release-assets/thumbnail.template.html b/.claude/release-assets/thumbnail.template.htmldeleted file mode 100644index 50c0b6eb7..000000000--- a/.claude/release-assets/thumbnail.template.html+++ /dev/null@@ -1,128 +0,0 @@-<!doctype html>-<html lang="en">-<head>-<meta charset="utf-8" />-<link rel="preconnect" href="https://fonts.googleapis.com" />-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />-<link href="https://fonts.googleapis.com/css2?family=Figtree:[email protected]&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet" />-<style>- /* TryPost brand thumbnail — mirrors the marketing-site hero / OG image:- warm cream + ink + signature violet, soft peach→lavender wash, ink- dot-grid, Instrument Serif headline with a hand-drawn violet squiggle,- and ink-bordered sticker cards with Gumroad-style solid offset shadows.- Tokens from trypost-site assets/css/tailwind.css. */- * { margin: 0; padding: 0; box-sizing: border-box; }- html, body { width: 1200px; height: 630px; }- body {- font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif;- position: relative;- overflow: hidden;- background: #faf8f5;- color: #0a0a0a;- -webkit-font-smoothing: antialiased;- }- /* Broad peach (bottom-left) → lavender (top-right) wash. */- .wash {- position: absolute; inset: 0; pointer-events: none;- background: linear-gradient(118deg,- rgba(254,215,170,0.34) 0%,- rgba(250,248,245,0) 40%,- rgba(250,248,245,0) 58%,- rgba(196,181,253,0.46) 100%);- }- /* Soft glow blobs — violet top-right, warm amber bottom-left. */- .blob { position: absolute; border-radius: 999px; pointer-events: none; filter: blur(36px); }- .blob-violet { top: -160px; right: -120px; width: 560px; height: 560px;- background: radial-gradient(circle, rgba(196,181,253,0.60) 0%, rgba(196,181,253,0) 70%); }- .blob-warm { bottom: -190px; left: -150px; width: 540px; height: 540px;- background: radial-gradient(circle, rgba(253,215,170,0.55) 0%, rgba(253,215,170,0) 70%); }- .blob-fuchsia { bottom: 60px; left: 120px; width: 320px; height: 320px;- background: radial-gradient(circle, rgba(245,208,254,0.35) 0%, rgba(245,208,254,0) 70%); }- /* Ink dot-grid (over cream, softened by the blobs). */- .grid {- position: absolute; inset: 0; pointer-events: none; opacity: 0.07;- background-image: radial-gradient(circle, #0a0a0a 1px, transparent 1px);- background-size: 28px 28px;- }- .frame {- position: relative; z-index: 1;- height: 100%; padding: 74px 84px;- display: flex; flex-direction: column; justify-content: space-between;- }- .top { display: flex; align-items: center; justify-content: space-between; }- .logo { height: 36px; width: auto; }- /* "Changelog" sticker — segmented ticket: amber label + mono version, one- ink-bordered pill with an offset shadow (mirrors the site's gold- "OPEN SOURCE" sticker). The version is always stamped for consistency. */- .badge {- display: inline-flex; align-items: stretch;- border: 2.5px solid #0a0a0a; border-radius: 10px;- box-shadow: 4px 4px 0 0 #0a0a0a; overflow: hidden;- }- .badge .label {- display: inline-flex; align-items: center; gap: 9px;- background: #fde68a; color: #0a0a0a;- padding: 10px 17px;- font-size: 15px; font-weight: 900;- text-transform: uppercase; letter-spacing: 0.16em;- }- .badge .star { width: 16px; height: 16px; display: block; }- .badge .ver {- display: inline-flex; align-items: center;- background: #ffffff; color: #0a0a0a;- padding: 10px 15px;- font-family: 'JetBrains Mono', ui-monospace, monospace;- font-size: 15px; font-weight: 700; letter-spacing: 0.01em;- border-left: 2.5px solid #0a0a0a;- }- .body { max-width: 1000px; }- h1 {- font-family: 'Instrument Serif', Georgia, serif;- font-weight: 400; font-size: 88px; line-height: 1.04;- letter-spacing: -0.02em; color: #0a0a0a; text-wrap: balance;- }- /* Emphasis phrase carrying the hand-drawn squiggle. */- .ul { position: relative; display: inline-block; white-space: nowrap; }- .ul > .squiggle {- position: absolute; left: 0; right: 0; bottom: -0.16em;- width: 100%; height: 0.34em; color: #8b5cf6;- }- .themes { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }- /* Theme chips — colored sticker cards (brand pastels), ink border, offset- shadow, ink text, hand-placed tilt (echoes the floating platform / composer- stickers in the hero — bg-violet-300 ... text-foreground). Secondary to the- headline: smaller and lighter in weight. */- .chip {- padding: 10px 18px; border-radius: 10px;- color: #0a0a0a;- border: 2.5px solid #0a0a0a;- box-shadow: 3px 3px 0 0 #0a0a0a;- font-size: 18px; font-weight: 600;- }- .chip:nth-child(1) { background: #ddd6fe; transform: rotate(-2deg); } /* violet-200 */- .chip:nth-child(2) { background: #bbf7d0; transform: rotate(1.5deg); } /* green-200 */- .chip:nth-child(3) { background: #bae6fd; transform: rotate(-1deg); } /* sky-200 */- .chip:nth-child(4) { background: #fed7aa; transform: rotate(2deg); } /* orange-200 */- .chip:nth-child(5) { background: #fecdd3; transform: rotate(-1.5deg); }/* rose-200 */-</style>-</head>-<body>- <div class="wash"></div>- <div class="blob blob-violet"></div>- <div class="blob blob-warm"></div>- <div class="blob blob-fuchsia"></div>- <div class="grid"></div>- <div class="frame">- <div class="top">- <img class="logo" src="{{LOGO}}" alt="TryPost" />- <span class="badge">{{BADGE_INNER}}</span>- </div>-- <div class="body">- <h1>{{HEADLINE}}</h1>- </div>-- <div class="themes">{{CHIPS}}</div>- </div>-</body>-</html>diff --git a/releases/v2.1.0/changelog.md b/releases/v2.1.0/changelog.mdnew file mode 100644index 000000000..1154cc34f--- /dev/null+++ b/releases/v2.1.0/changelog.md@@ -0,0 +1,39 @@+## What's Changed+* chore(release): v2.0.1 changelog, customer email + thumbnail artifacts by @paulocastellano in https://github.com/trypostit/trypost/pull/459+* Replace the Welcome MCP step with an in-app card by @paulocastellano in https://github.com/trypostit/trypost/pull/460+* Keep every browser preference and draft in the user's one storage key by @paulocastellano in https://github.com/trypostit/trypost/pull/462+* Publish, import and show X polls by @paulocastellano in https://github.com/trypostit/trypost/pull/463+* Tell MCP agents the X poll rules and drop media flags from types without media by @paulocastellano in https://github.com/trypostit/trypost/pull/480+* LinkedIn: one comment on a post, through the thread by @paulocastellano in https://github.com/trypostit/trypost/pull/475+* Mark posts deleted on the network, and send webhooks when they go or come back by @mrbeandev in https://github.com/trypostit/trypost/pull/464+* Send Nightwatch only slow queries from jobs, commands and scheduled tasks by @paulocastellano in https://github.com/trypostit/trypost/pull/486+* Move every browser test to the shared wait helpers by @paulocastellano in https://github.com/trypostit/trypost/pull/487+* Map legacy time zone aliases without the legacy tz database by @mainalisandeep062 in https://github.com/trypostit/trypost/pull/479+* Read stored time zones as their canonical identifier, and cover every place a zone enters by @paulocastellano in https://github.com/trypostit/trypost/pull/488+* Add the OpenBot integration logo by @paulocastellano in https://github.com/trypostit/trypost/pull/491+* Mention teammates and react to post notes, on the web, the API and MCP by @paulocastellano in https://github.com/trypostit/trypost/pull/490+* Count a Facebook video once in Insights by @paulocastellano in https://github.com/trypostit/trypost/pull/493+* Remove the one-off Facebook duplicates command by @paulocastellano in https://github.com/trypostit/trypost/pull/495+* Back up the database to Cloudflare R2 every few hours by @paulocastellano in https://github.com/trypostit/trypost/pull/496+* Let Move up and Move down take a free posting time on the channel queue by @paulocastellano in https://github.com/trypostit/trypost/pull/498+* Add a Board view to Publish, remember the last view and redesign Settings → Channels by @paulocastellano in https://github.com/trypostit/trypost/pull/499+* Add in-app tours: Publish views, Insights filters and the MCP card by @paulocastellano in https://github.com/trypostit/trypost/pull/503+* Add Indonesian (Bahasa Indonesia) translation by @wayangm in https://github.com/trypostit/trypost/pull/501+* Let Instagram Reels and YouTube Shorts take a custom cover image by @paulocastellano in https://github.com/trypostit/trypost/pull/505+* Let videos take alt text on Mastodon, Bluesky, Threads and Discord by @paulocastellano in https://github.com/trypostit/trypost/pull/511+* Add Mastodon and Threads polls, with results read like X by @paulocastellano in https://github.com/trypostit/trypost/pull/512+* Announce polls for Mastodon and Threads in What's New by @paulocastellano in https://github.com/trypostit/trypost/pull/515+* Accept GIFs on LinkedIn, add GIPHY to the composer, and settle media imports over the socket by @Sorvereign in https://github.com/trypostit/trypost/pull/514+* Say why media is refused on every network, not only on four by @paulocastellano in https://github.com/trypostit/trypost/pull/522+* Replace passport:keys --show with the command that actually works by @shuishui313 in https://github.com/trypostit/trypost/pull/521+* Rate limit the MCP endpoint per token, by the minute and by the hour by @thedavididris in https://github.com/trypostit/trypost/pull/518++## New Contributors+* @mrbeandev made their first contribution in https://github.com/trypostit/trypost/pull/464+* @mainalisandeep062 made their first contribution in https://github.com/trypostit/trypost/pull/479+* @wayangm made their first contribution in https://github.com/trypostit/trypost/pull/501+* @Sorvereign made their first contribution in https://github.com/trypostit/trypost/pull/514+* @shuishui313 made their first contribution in https://github.com/trypostit/trypost/pull/521+* @thedavididris made their first contribution in https://github.com/trypostit/trypost/pull/518++**Full Changelog**: https://github.com/trypostit/trypost/compare/v2.0.1...v2.1.0diff --git a/releases/v2.1.0/email.md b/releases/v2.1.0/email.mdnew file mode 100644index 000000000..fe476f1ce--- /dev/null+++ b/releases/v2.1.0/email.md@@ -0,0 +1,46 @@+---+subject: "Changelog v2.1.0 — See every post on a board, poll your followers and more..."+---++# Changelog v2.1.0 — See every post on a board, poll your followers and more...++By TryPost Product Team • [Release v2.1.0](https://github.com/trypostit/trypost/releases/tag/v2.1.0)++Hello! Welcome to this week's update. Here's what's new in TryPost.++## See every post on a board++Want to know what's waiting for approval, or which channel has nothing scheduled? Open Publish and switch to Board. Your posts line up in columns by status (Draft, Approvals, Scheduled, Published, Failed), by tag or by channel, so the whole plan fits on one screen. You can approve a pending post right on its card, and Publish now opens on the view you used last.++## Poll your followers on X, Mastodon and Threads++Got a question for your audience? Pick Poll as the post type, write the question, add up to four choices and schedule it like any other post. On X and Mastodon a poll can go anywhere in a thread, and Mastodon also lets people pick more than one answer or hides the votes until the end. Sent shows how the votes split and when voting closes. Polls you post on the networks directly show up in TryPost too, with their results.++## Your own cover on Reels and Shorts, and GIFs from GIPHY++The first frame of a video is rarely the one you want people to see. Now you can upload a cover for an Instagram Reel or a YouTube Short, or scroll through the video's frames and pick one. Need a GIF? Search GIPHY right in the composer, next to Unsplash. LinkedIn takes animated GIFs now too.++## New features++- Mention a teammate with @ in a post's notes, or @all for everyone, and they get an email. You can also react to any note with an emoji+- Add a first comment to a LinkedIn post: TryPost publishes it right after the post, from the same profile or page+- If a post you published gets deleted on the network (Instagram, X, YouTube and most others), TryPost marks it as deleted and lets you delete it here too+- Add alt text to videos on Mastodon, Bluesky, Threads and Discord, not only to images+- On a channel's queue, Move up and Move down can move a post into an empty posting time+- TryPost now speaks Indonesian (Bahasa Indonesia)+- Settings → Channels has a cleaner layout, and a short tour shows you around the first time you open Publish or Insights+- Connect Claude or ChatGPT from a small card inside the app. It used to be a step during signup++## Fixes++- Facebook videos and reels are counted once in Insights, not twice+- When a network can't take a file, the composer now tells you why, on every network+- Accounts saved with an older time zone name (like Asia/Calcutta or Europe/Kiev) no longer hit an error page++Cheers,+Paulo from TryPost.it++---++You're receiving this because you subscribed.+[Unsubscribe]({{unsubscribe_url}})diff --git a/releases/v2.1.0/thumbnail.png b/releases/v2.1.0/thumbnail.pngnew file mode 100644index 000000000..5e5658e3dBinary files /dev/null and b/releases/v2.1.0/thumbnail.png differ