Skip to content

feat(ui): persist prompt box sizes #8061

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 30, 2025
Merged

Conversation

maryhipp
Copy link
Collaborator

@maryhipp maryhipp commented May 29, 2025

Summary

Store height of positive prompt box in redux so it persists across refreshes

Related Issues / Discussions

QA Instructions

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added the frontend PRs that change frontend files label May 29, 2025
@psychedelicious psychedelicious force-pushed the maryhipp/pos-prompt-height branch from 92144c0 to d609d0b Compare May 30, 2025 02:31
Copy link
Collaborator

@psychedelicious psychedelicious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a generalized system for persisting textarea sizes. It follows a similar pattern to the accordions and expanders, where the component registers itself to be tracked using a unique ID. A hook takes care of the rest, just needs a ref and some options.

This made it easy to support persisting all of our prompt boxes.

@psychedelicious psychedelicious changed the title feat(ui): persist positive prompt box height feat(ui): persist prompt box sizes May 30, 2025
@psychedelicious psychedelicious enabled auto-merge (rebase) May 30, 2025 02:33
@psychedelicious psychedelicious force-pushed the maryhipp/pos-prompt-height branch from d609d0b to 7659771 Compare May 30, 2025 02:34
@psychedelicious psychedelicious merged commit e121bf1 into main May 30, 2025
12 checks passed
@psychedelicious psychedelicious deleted the maryhipp/pos-prompt-height branch May 30, 2025 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants