refactor: create RTE with presets#1558
Open
kevinkim-ogp wants to merge 3 commits intopair-action/design-improvements-2from
Open
refactor: create RTE with presets#1558kevinkim-ogp wants to merge 3 commits intopair-action/design-improvements-2from
kevinkim-ogp wants to merge 3 commits intopair-action/design-improvements-2from
Conversation
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 20, 2026
e6f5233 to
a18e473
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.

TL;DR
What changed?
promptTypedropdown field from the Pair send-prompt action. Preset selection is now handled directly within the rich-text editor UI.PROMPT_PRESETSconstant that defines the available presets (Summarise, Analyse, Categorise, Write) with labels and descriptions.DEFAULT_PROMPT_VALUESHTML templates fromdedenttemplate literals to arrays of HTML fragments joined with'', preventing the editor from introducing unintended extra line breaks via\n-to-<br>normalisation.RichTextEditorWithPresetscomponent that renders a split-panel layout: the rich-text editor on the left and a clickable preset list on the right. The preset panel is only shown when the editor is empty. Selecting a preset populates both thepromptandresponseFieldsfields simultaneously viaIPresetassignments.containerClassNameprop toRichTextEditorand aneditor--borderlessCSS variant to allow the editor to render without its own border when embedded inside the preset panel's shared border container.presetson theActionSubstepArgumentGraphQL type andIFieldRichTextTypeScript interface, with newIPresetandIPresetAssignmenttypes.InputCreatornow rendersRichTextEditorWithPresetsinstead ofRichTextEditorwhen a field has presets defined.hiddenIfcondition forresponseFieldsnow watches thepromptfield instead of the removedpromptTypefield.How to test?
New RTE with presets
Sanity check
rich-textare rendered correctly and function correctly i.e., Postman