Skip to content

Added support for generating app icons (#104)#99

Open
scorsin-oai wants to merge 1 commit into
Snapchat:mainfrom
scorsin-oai:simon/260514-icon_gen
Open

Added support for generating app icons (#104)#99
scorsin-oai wants to merge 1 commit into
Snapchat:mainfrom
scorsin-oai:simon/260514-icon_gen

Conversation

@scorsin-oai
Copy link
Copy Markdown

@scorsin-oai scorsin-oai commented May 14, 2026

Description

This change adds support for generating app icons at build time, that we can just do:

valdi_application(
    name = "hello_world",
    icons = valdi_application_icons(src = "app_assets/icon.svg"),
    # [redacted]
)

and the icon gets generated for each platform depending on what we are compiling for, in different variants. Coding agents like Codex can quickly generate SVGs for the sample apps it makes. It will avoid having a large list of sample apps with default icons.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • Documentation improvement
  • Performance optimization
  • Test improvement
  • Other (please describe)

Testing

  • Tests pass locally (bazel test //...)
  • Added/updated tests for changes (if applicable)
  • Tested on multiple platforms (iOS/Android/Web/macOS as applicable)
  • Manual testing performed (describe below)

Testing Details

Checklist

  • Code follows project style guidelines
  • Documentation updated (if needed)
  • No breaking changes (or documented in description)
  • Commit messages follow conventional format
  • No secrets, API keys, or internal URLs included

Related Issues

Additional Context

(cherry picked from commit 4c867976ed487735998f87583c682a62e62028dd)

Description

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • Documentation improvement
  • Performance optimization
  • Test improvement
  • Other (please describe)

Testing

  • Tests pass locally (bazel test //...)
  • Added/updated tests for changes (if applicable)
  • Tested on multiple platforms (iOS/Android/Web/macOS as applicable)
  • Manual testing performed (describe below)

Testing Details

Checklist

  • Code follows project style guidelines
  • Documentation updated (if needed)
  • No breaking changes (or documented in description)
  • Commit messages follow conventional format
  • No secrets, API keys, or internal URLs included

Related Issues

Additional Context

## Description
This change adds support for generating app icons at build time, that we
can just do:
```python
valdi_application(
    name = "hello_world",
    icons = valdi_application_icons(src = "app_assets/icon.svg"),
    # [redacted]
)
```
and the icon gets generated for each platform depending on what we are
compiling for, in different variants. Codex can quickly generate SVGs
for the icons for the sample apps it makes, it will avoid having a large
list of sample apps with default icons.

## Type of Change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] Documentation improvement
- [ ] Performance optimization
- [ ] Test improvement
- [ ] Other (please describe)

## Testing
- [ ] Tests pass locally (`bazel test //...`)
- [ ] Added/updated tests for changes (if applicable)
- [ ] Tested on multiple platforms (iOS/Android/Web/macOS as applicable)
- [ ] Manual testing performed (describe below)

### Testing Details
<!-- Describe the testing you performed -->

## Checklist
- [ ] Code follows project style guidelines
- [ ] Documentation updated (if needed)
- [ ] No breaking changes (or documented in description)
- [ ] Commit messages follow [conventional
format](../CONTRIBUTING.md#commit-messages)
- [ ] No secrets, API keys, or internal URLs included

## Related Issues
<!-- Link related issues using: Closes #(issue), Fixes #(issue), Relates
to #(issue) -->

## Additional Context
<!-- Add any other context, screenshots, or information that would help
reviewers -->

(cherry picked from commit 4c867976ed487735998f87583c682a62e62028dd)
@github-actions github-actions Bot added area/build-system Bazel build rules and config area/docs Documentation labels May 14, 2026
@github-actions
Copy link
Copy Markdown

Sensitive Files Detected

🔧 Build rules — Affects build rules for all Valdi consumers.

This is an automated notice. A maintainer will review after import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build-system Bazel build rules and config area/docs Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant