Version Packages#634
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
875de08 to
334bb4a
Compare
24c3199 to
679214e
Compare
679214e to
facb4fe
Compare
05d9d05 to
b6187d6
Compare
b6187d6 to
81bd818
Compare
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@opensaas/stack-core@0.27.0
Minor Changes
#635
18c39c8Thanks @borisno2! - Add a label seam for the admin UI:getLabelFieldName(listConfig)resolves the field that represents a list's rows as a single label (ui.labelField→name→title→id), andgetItemLabel(listConfig, item)reads that field off a row, falling back toidwhen it's missing. Both are exported from the root entry point.#636
a15e566Thanks @borisno2! - Add a relationship-options read primitive:getRelationshipOptions(context, config, relatedListKey, { search?, take?, selectedIds? })returns a bounded, projected{ id, label }[]for relationship editors. It selects onlyidand the resolved label field (viagetLabelFieldName), so no depth-5 auto-include ever runs;searchfilters viacontainswhen the label field is text; results are ordered by the label field; and currently-selectedselectedIdsare always unioned into the result even when outside thesearch/takewindow. Operation-levelqueryaccess on the related list still applies (denied →[]).Also adds a
relationshipOptionsop oncontext.serverActionso hosts can resolve options from a client without a bespoke endpoint:getRelationshipOptionsis exported from@opensaas/stack-coreand re-exported from@opensaas/stack-uifor server components that already hold a context.Patch Changes
#633
9d9c7f8Thanks @borisno2! - Fix virtual fields named ininclude/selectthrowing a Prisma "Unknown field" error. Virtual field keys are now stripped from the query payload while their value is still computed viaresolveOutput.#637
002e755Thanks @borisno2! - FixcalendarDaywrites 500ing on Prisma 7@db.Datecolumns — aresolveInputhook now coerces aYYYY-MM-DDstring to a UTC-midnightDatebefore validation, and the field's zod schema accepts either shape.@opensaas/stack-ui@0.27.0
Minor Changes
#638
95560e4Thanks @borisno2! - Wire the edit page onto the relationship-options primitive so relationship dropdowns are fast and live-searchable. The item-form preparation now fetches a bounded, take-limited window viagetRelationshipOptionsinstead of an unboundedfindMany({})per relationship field, always unioning the current value's id(s) so its label renders even outside the window.ComboboxField(single) andRelationshipManager(many) gain debounced live search: typing narrows results against the label field via therelationshipOptionsserverAction op, without any wiring changes required in host apps —ItemForm/SingletonViewalready passserverActionandlistKeythrough.Components without a wired
serverAction(e.g. custom usages ofComboboxField/RelationshipManager) fall back to client-side filtering over the initial window, unchanged from previous behavior.#636
a15e566Thanks @borisno2! - Add a relationship-options read primitive:getRelationshipOptions(context, config, relatedListKey, { search?, take?, selectedIds? })returns a bounded, projected{ id, label }[]for relationship editors. It selects onlyidand the resolved label field (viagetLabelFieldName), so no depth-5 auto-include ever runs;searchfilters viacontainswhen the label field is text; results are ordered by the label field; and currently-selectedselectedIdsare always unioned into the result even when outside thesearch/takewindow. Operation-levelqueryaccess on the related list still applies (denied →[]).Also adds a
relationshipOptionsop oncontext.serverActionso hosts can resolve options from a client without a bespoke endpoint:getRelationshipOptionsis exported from@opensaas/stack-coreand re-exported from@opensaas/stack-uifor server components that already hold a context.Patch Changes
3b2beb7Thanks @borisno2! - List-page relationship cells now render their label via the shared label seam (getItemLabel), honouring a related list'sui.labelFieldinstead of an inlinename → title → label → idguess that had drifted from the item form.@opensaas/stack-cli@0.27.0
Patch Changes
18c39c8,9d9c7f8,002e755,a15e566]:@opensaas/stack-auth@0.27.0
@opensaas/stack-rag@0.27.0
@opensaas/stack-storage@0.27.0
@opensaas/stack-storage-s3@0.27.0
@opensaas/stack-storage-vercel@0.27.0
@opensaas/stack-tiptap@0.27.0