Skip to content

Refresh CLI example flag metadata and fix Feature prop usage#15

Merged
Junnyyy merged 1 commit into
mainfrom
fix-cli-release-warnings
Jun 19, 2026
Merged

Refresh CLI example flag metadata and fix Feature prop usage#15
Junnyyy merged 1 commit into
mainfrom
fix-cli-release-warnings

Conversation

@Junnyyy

@Junnyyy Junnyyy commented Jun 19, 2026

Copy link
Copy Markdown
Member

TL;DR

Updated the CLI example to keep the temporary search flag metadata current and aligned the example app with the Feature component's flag prop.

What changed?

  • Extended the search-platform fallback flag expiration in packages/cli/examples/flags.json
  • Replaced the incorrect name prop with flag on Feature in packages/cli/examples/src/App.tsx
  • Kept the example consistent with the current flag component API

How to test?

  • Not run (not requested)
  • Verify the example app still renders the conditional links correctly
  • Confirm the Feature wrapper gates the Dashboard v2 link using flag="dashboardV2"

Why make this change?

  • Prevents the CLI example from drifting out of sync with the documented flag component API
  • Avoids stale example metadata for the temporary search fallback flag

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.


Note

Low Risk
Example-only changes to flag metadata and a prop rename; no runtime product or security impact.

Overview
Updates the CLI example so it matches the current @latchflags/react API and keeps sample flag metadata current.

In packages/cli/examples/src/App.tsx, the Feature wrapper now uses flag="dashboardV2" instead of the invalid name prop, consistent with documented usage elsewhere in the repo.

In packages/cli/examples/flags.json, legacySearch.expiresAt is pushed from 2026-01-15 to 2027-01-15 for the temporary search fallback flag.

Reviewed by Cursor Bugbot for commit c8f686f. Bugbot is set up for automated code reviews on this repo. Configure here.

@Junnyyy Junnyyy merged commit ba0be77 into main Jun 19, 2026
2 checks passed
@Junnyyy Junnyyy deleted the fix-cli-release-warnings branch June 19, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant