hyprnote
hyprnote copied to clipboard
Update Jargons in Settings
- Removed the "Jargons" input field from the general settings view, as this feature was not being used and added unnecessary complexity to the settings UI.
- Added a new "Instruction" chip to the note header in the editor area, allowing users to input custom instructions, such as company-specific terms, acronyms, and jargons, which can be saved and displayed in the note header.
- Implemented the
InstructionChipcomponent that renders the chip and the popover for editing the instructions. - Used the
useQueryanduseMutationhooks to fetch and update the configuration data, which stores the custom instructions. - Provided a textarea input for users to enter and save the custom instructions.
- Updated the configuration data when the popover is closed, ensuring the changes are persisted.