Repository navigation
[FEAT] Extra fields can hold several values, and a prefetch can split a group into entries - #160
Merged
Merged
Conversation
…ues, and a prefetch can split a group into entries
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.
Summary
feat(records,pds,ui): .... Aselectfield returns one value, so the second and third scope had to be typed by hand every time the exact combination was not already in the candidate list.kind = "multi-select"turns the picker into a checklist. Space ticks the highlighted row, Enter confirms, and the ticked values become one template variable joined byseparator(,by default). The ticked values are listed next to the prompt label, so they stay in sight when the row that holds one scrolls off the list.uiEnteruxEnter Enter picks two values without reaching for Space.Create "..."row is ticked like any other, and the created value joins the candidate list so it shows up ticked instead of vanishing with the filter that produced it.prefetch.item_regexis the second stage the candidate list needed.extract_regexreads one value per match, so a subject line gives the wholerecords,pds,uigroup.item_regexruns over each extracted value and splits it into its entries;deduplicatethen applies to those entries, so the picker lists every scope used in the repository exactly once.validationon a multi-select matches each ticked value on its own, never the joined result.requiredmeans at least one ticked value; an optional field with nothing ticked is skipped, exactly like(none).Notes
Mode::Singlereturns the accepted row,Mode::Multireturns every ticked value in the order it was ticked.select_or_createand the newselect_or_create_manyare the two entry points.textfield instead.multi-select, andmultiselectandmulti_selectare accepted as aliases.item_regexis available to every field, not only a multi-select: aselectfield can use it to list the entries of a group as separate candidates..rona.example.tomldescribe the new keys.