feat: upgrade to lattice 0.34 - #5
Merged
Merged
Conversation
- UI enums move from Core\Enums to Ui\Enums (HttpMethod stays) - when() is gone; conditional rendering uses visible() - custom components extend Ui\Components\Component and declare their wire type via #[AsComponent] instead of a type() method - config re-published from the 0.19 template (new discovery, frontend, and notifications blocks), keeping the en/de locale setup
- StackColumn composes data-bound Text lines via schema()/dataKey() instead of nested TextColumns - effect discriminators are kebab-case on the wire (reload-component) - authorize()-denial tests seal their ref directly: 0.19 refuses to serialize a denied action, so a legitimate render can never produce one — callActionForged() proves the endpoint rejects forged refs
- deep imports move to the deliberate entrypoints: ui components from @lattice-php/lattice/ui, RendererComponent and the ComponentProps augmentation from the package root - the registry merges Composer-discovered plugins from virtual:lattice/plugins - the reload-component event drops its ignored detail.type field - the vendor @source scan goes away — the package stylesheet registers its own compiled output with Tailwind
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.
Brings the kit from lattice 0.11 (what main actually has) to 0.34.0.
Note: PR #3 (the 0.19 migration) was merged into
feat/i18n-translationsafter that branch had already landed on main, so its commits never reached main — this branch includes them.0.34 migration
HttpMethodmoved toUi\Enums;Colorenum replaced byColorName;ButtonVariantsplit intoVariant(danger/secondary) andEmphasis(ghost/link);toast()argument order;Stack::direction()takesStackDirection; typedBreadcrumbobjects.createLatticeApp— the hand-rolled resolver/provider/i18n bootstrap andregistry.tsare gone.Cleanups the new version enables
ResolvesTeamFromContextnow delegates to lattice'sResolvesContextModels(route-key model resolution); the hand-rolledcallActionForgedtest helper is replaced by the shippedcallDeniedAction.app.css— the kit's own components already uselt-*tokens, and the stale palette was overriding lattice's default theme.tw-animate-csswas unused and is removed.config/lattice.phpresynced to the 0.34 shape (locales customization kept).Verified: PHPStan, Pint, 71/71 Pest tests, oxlint/oxfmt/tsc, vite build, plus a manual visual pass over login, dashboard, and team settings.