Add multiple configs support and granular cache for icons/images - #11
Merged
Conversation
1. New `PreFetchedNodes` and `PreFetchedComponents` structs with TaskLocal storage for batch-mode sharing 2. Extended `FileVersionPreFetcher` with methods for pre-fetching nodes and components 3. Updated `Batch.swift` to coordinate the three-phase pre-fetch (metadata → components → nodes) 4. Added new warning types for pre-fetch partial failures 5. Updated loaders to use pre-fetched components 6. Updated `GranularCacheManager` to use pre-fetched nodes
1. New `ColorsConfiguration` and `ImagesConfiguration` enums in `Params.swift` for iOS, Android, and Flutter 2. New `ColorsEntry` and `ImagesEntry` structs with per-frame settings 3. `ImagesLoaderConfig` for passing frame-specific settings to the loader 4. Updated `ExportColors` and `ExportImages` commands to handle multiple entries 5. Comprehensive tests for the new configuration formats 6. Documentation updates in CLAUDE.md and CONFIG.md
Add PNG/WebP granular cache tracking to ImagesLoader using the same pattern as vector images. This enables per-node change detection for raster exports, skipping unchanged assets even when Figma file version changes. Changes: - Add loadPNGImagesWithGranularCache method for raster images - Support granular cache in both single-file and multi-file modes - Update Configuration.md with images array format documentation - Add comprehensive tests for ImagesLoaderConfig
Previously Flutter used .android platform internally, which could cause incorrect behavior in platform-specific code paths. This change adds a proper .flutter case to the Platform enum and updates all Flutter export commands and loaders to use it. Also adds a Flutter config template for the init command.
Add project-specific slash commands for development workflow: - /local-review: comprehensive code review vs origin/develop - /plan: task breakdown with dependencies for parallel execution - /pr-summary: generate GitHub PR summary and copy to clipboard
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.
Description
Extends ExFig configuration to support multiple configs for colors, icons, and images, enabling per-frame exports. Adds granular node-level cache tracking for raster images and pre-fetch optimization for batch mode.
IconsConfigurationenum)ColorsConfiguration,ImagesConfiguration)GranularCacheManagerFileVersionPreFetcher)Platform.flutterfor Flutter exports