Skip to content

Conversation

@ComputelessComputer
Copy link
Collaborator

  • Added new sparkle icon variants for better design flexibility.
  • Enhanced the editor’s floating button with popover-based template selection and improved function naming.
  • Introduced a new “Templates” tab in settings for managing custom templates, including editing, deleting, and UI improvements.
  • Upgraded the template section UI with better styling, alignment, and usability.
  • Added a quick-access “Create new template” button to streamline template creation.

@ComputelessComputer ComputelessComputer force-pushed the auto-enhance-floating-button branch 4 times, most recently from 3335088 to 4101d1c Compare April 30, 2025 22:38
This commit adds three new variants of the sparkle icon to the
desktop application. The new icons include different stroke
widths, positions, and arrangements of the sparkle elements.
These new icons provide more design options for the application.
The changes made to the `floating-button.tsx` component in the `editor-area` module include:

1. Renaming the `handleEnhanceOrReset` function to `handleToggleEnhanceView` to better reflect its purpose.
2. Modifying the behavior of the main button when not in "raw" mode. It now acts as a PopoverTrigger, allowing the user to access enhancement options from a popover menu.
3. Adding a new `handleEnhanceWithTemplate` function to handle enhancement actions within the popover content.
4. Introducing a `Popover` component from the `@hypr/ui/components/ui/popover` module to display the enhancement options in a popover.
5. Fetching and displaying a list of available templates from the `@hypr/plugin-db` module.
6. Updating the button content and behavior based on the current state (raw mode, enhancement pending, etc.).

These changes aim to improve the user experience by providing a more intuitive and accessible way to access enhancement options, while also maintaining the existing functionality of the floating button.
Adds a create template button to the settings header when the current tab is "templates". This allows users to easily create new templates from the settings page.
The changes in this commit update the template editor form to use the `react-hook-form` library for managing the form state and validation. The main changes are:

- Introduce a `templateSchema` using the `zod` library to define the shape of the template data.
- Use the `useForm` hook from `react-hook-form` to manage the form state and validation.
- Update the form inputs to use the `register` function from `react-hook-form` to bind the form fields.
- Add validation error handling for the template title and sections.
- Remove the `onTemplateUpdate` prop and instead use the `useMutation` hook from `@tanstack/react-query` to save the template data.
- Update the `SectionsList` component to use the `watch` function from `react-hook-form` to display the current sections.
- Remove the "Duplicate" button functionality, as it is not implemented in this commit.
- Update the "Creator" information to display a hardcoded value of "John".

These changes improve the overall user experience and maintainability of the template editor form.
The changes in this commit add a new "Create new template" option to the settings header and sidebar. This allows users to easily create new templates from the settings page, improving the overall template management experience.
feat(locales): update listen button strings

The changes update the localized strings for the listen button in the note header component. The main updates are:

- Update the line numbers for the "Pause", "Stop", and "Resume" strings to match the updated code.
- Remove the "Start onboarding video" string, as it is no longer used.
- Update the line number for the "Start recording" string to match the updated code.

These changes ensure the localized strings match the updated functionality of the listen button.
@ComputelessComputer ComputelessComputer force-pushed the auto-enhance-floating-button branch from 4101d1c to c7ff619 Compare May 1, 2025 07:07
@yujonglee yujonglee closed this Jun 23, 2025
@yujonglee yujonglee deleted the auto-enhance-floating-button branch June 23, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants