Repository navigation
[ImgBot] Optimize images - #1
Closed
imgbot[bot] wants to merge 26 commits into
Closed
imgbot[bot] wants to merge 26 commits into
imgbot[bot] wants to merge 26 commits into
Conversation
…s helper (AUT-94 step 0) Introduces src/blocks/utils.ts with two exports: - applyVariantConditions: attaches admin.condition to fields based on a variant manifest, replacing per-field condition arrays in config.ts - variantsToOptions: converts a VariantManifest to the array format expected by designVersionPreview() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/Banner/variants.ts with BANNER1/BANNER5 entries - Refactor config.ts to use applyVariantConditions for position field - Switch from allBannerDesignVersions array to variantsToOptions(variants) - Update Component.tsx to use new BannerDesignVersion type (keyof variants) - linkGroup condition removed (shown for all variants) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/Team/variants.ts with TEAM5/TEAM5-9/TEAM9 entries - Refactor config.ts: categories, teamMembers, enableCta go through applyVariantConditions; CTA compound conditions stay explicit - Switch from raw designVersion select to designVersionPreview() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/Logos/variants.ts with LOGOS1-LOGOS9 entries - testimonials array conditioned via manifest (LOGOS9 only) - richText and logos are pass-through (always visible) - link() stays explicit with LOGOS2 condition - Update Component.tsx to use new LogosDesignVersion type Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/Contact/variants.ts with CONTACT1-4 entries - No conditional fields exist — all fields are pass-through - variants.ts serves as the registry of registered Contact variants - Switch from allContactDesignVersions array to variantsToOptions(variants) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/About/variants.ts with ABOUT1-5 entries - logos and counter conditioned via manifest (ABOUT2/3/5) - headline, text1-3, images are pass-through (always visible) - link() stays explicit with ABOUT3/ABOUT4 condition Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/Awards/variants.ts with AWARDS2/3/4 entries - sectionLabel, accentColor, headline, description, dateRange and column headers conditioned via manifest - awards array is pass-through; nested item conditions use parentLayoutCondition and stay explicit - Switch from raw designVersion select to designVersionPreview() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/Faq/variants.ts with FAQ1-5 entries - badge conditioned via manifest (FAQ4/5); calloutText (FAQ3/4) - headline and faqs are pass-through (always visible) - calloutLink link() stays explicit with FAQ3/4 condition Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/Gallery/variants.ts with GALLERY3-26 entries - richText conditioned via manifest (GALLERY3-6); tagline (GALLERY6 only) - elements array is pass-through; nested item conditions use createBlockItemCondition and stay explicit - link() stays explicit with GALLERY6 condition - elements.admin.condition removed (redundant — always true for valid versions) - allGalleryDesignVersions re-exported for backward compat with Component.tsx Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/Cta/variants.ts with CTA1-17 entries (13 variants) - tagline, richText, image conditioned via manifest - icon() stays explicit (CTA1/6/7/13/15) - linkGroup() condition removed — all variants use links Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/Stats/variants.ts with STATS1/2/4-8/10 entries - stats array conditioned via manifest (all except STATS10) - gridColumns and stats10Cards conditioned via manifest (STATS10 only) - headline is pass-through (always visible) - linkGroup() stays explicit with STATS6/8 condition Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add src/blocks/Testimonial/variants.ts with TESTIMONIAL1-19 entries (18 variants) - headline conditioned via manifest (TESTIMONIAL2/6/7/13/16/17/18/19) - tagline conditioned via manifest (TESTIMONIAL13/16/17/18/19) - testimonial array is pass-through; nested item conditions use parentLayoutCondition via designVersionMatches helper — stay explicit - link() stays explicit with TESTIMONIAL2/7/19 condition Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Introduces 4 new block types as thin dispatch layers over the existing Feature variant .tsx files (which remain untouched in src/blocks/Feature/): - feature-hero (FEATURE1) — text + image + icon, no USPs - feature-list (FEATURE25/91/97/99/103/159) — USPs without per-USP images - feature-media (FEATURE50/53/57/70/72/102/105/117/126) — USPs with per-USP images - feature-special (FEATURE19/114/250) — unique/incompatible data shapes Registration: - All 4 blocks added to PageBlocks and blockComponents alongside the existing 'feature' block (kept for migration — existing pages continue to render without changes) - blockType in nested USP conditions updated from 'feature' to the respective new slug per block family Decommission (Phase 6) runs after all existing pages are migrated. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…maining blocks (AUT-94) Adds variants.ts to every block directory that was missing it: - FeatureHero/List/Media/Special — new blocks from Feature split, now have registries - Blog, Casestudies, Timeline, Login, Signup — replace local allXxxDesignVersions arrays - Projects, PublicationsBlock, Resources — switch from raw select to designVersionPreview - Changelog — switch from raw select to designVersionPreview Also wires up applyVariantConditions where conditions were simple enough: - Projects: top-level description field (17b only) - PublicationsBlock: years (publications1), filters + pinnedPublications (publications-dynamic) Component.tsx files updated where needed to use keyof typeof variants instead of the old array-derived type with .value accessor. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Covers all four patterns in src/blocks/: - Pattern A: design variant blocks (variants.ts manifest, applyVariantConditions) - Pattern B: collection template renderers (BlogPost, ProjectPost) - Pattern C: Payload/shadcnblocks utility blocks (no designVersion, no variants.ts) - Pattern D: legacy/decommission (Feature monolith) Includes step-by-step guides for adding new variants and new blocks, registration checklist, and explanation of why utility blocks are exempt from the variants.ts pattern. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Removed tutorial-style code walkthroughs and Pattern C reference table (derivable from reading the files). Kept constraints, rules, and checklists — content that shapes behavior rather than explains the codebase. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…raindump Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t hook Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Moves about18 from src/components/ into the About block, wiring all text and image content to CMS fields (headline, text1-3, images). Adds label1/label2 text fields (conditional on ABOUT18) for the section label copy. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…mission
Replaces authenticated() with hasPermission('canManageContent') on
create/update/delete across all content collections. Read access
remains authenticatedOrPublished.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Removes stale .cursor plan files and debug log, deletes AGENTS.md, adds docs/scratch/ to .gitignore, and resets importMap.js formatting. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
*Total -- 694.91kb -> 523.64kb (24.65%) /public/seed/media/payblocks-demo.png -- 23.08kb -> 8.38kb (63.67%) /public/seed/media/Dashboard-Payload-02-06-2025_06_17_PM.png -- 179.58kb -> 123.79kb (31.06%) /public/seed/media/Dashboard-Payload-02-06-2025_06_06_PM.png -- 179.68kb -> 123.90kb (31.04%) /public/admin/previews/header/navbar4/categoryGrid.jpeg -- 25.87kb -> 19.61kb (24.21%) /public/admin/previews/header/navbar4/cardGrid.jpeg -- 60.78kb -> 48.67kb (19.93%) /public/admin/previews/header/navbar4/featuredBanner.jpeg -- 67.12kb -> 57.28kb (14.66%) /public/payblocksdefaultogbackground.png -- 55.47kb -> 49.50kb (10.78%) /public/seed/media/payblocks default open graph.png -- 55.47kb -> 49.50kb (10.78%) /public/admin/previews/header/navbar4/featuredImage.jpeg -- 46.55kb -> 41.77kb (10.26%) /public/favicon.svg -- 1.30kb -> 1.24kb (5.03%) Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
|
Mention Blocks like a regular teammate with your question or request: @blocks review this pull request Run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Beep boop. Your images are optimized!
Your image file size has been reduced by 25% 🎉
Details
📝 docs |
repo | 🙋🏾 issues | 🏪 marketplace
~Imgbot - Part of Optimole family