Skip to content
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

Changes to the UI library #353

Open
wants to merge 1 commit into
base: frigg-serverless-plugin
Choose a base branch
from

Conversation

seanspeaks
Copy link
Contributor

@seanspeaks seanspeaks commented Oct 17, 2024

User Action API and UI Component Updates

  1. Update the API class to use the updated API behavior with userActions

    • Add new endpoint for integration user actions
    • Modify getUserActionOptions method to use POST instead of GET
    • Add new getUserActions method
  2. Update the User Actions concepts

    • Modify IntegrationHorizontal to fetch QUICK_ACTIONS from the API
    • Remove pre-baked user actions from the dropdown
  3. Update the form population to allow for initialData

    • Modify UserActionModal to accept and use initialData prop
  4. Update the form handling for proper submission

    • Ensure keystrokes are added to the formData in UserActionModal
  5. Streamline the UserActionModal

    • Refactor to use initialData and update form data handling
  6. Update IntegrationHorizontal and List components

    • Set fixed height for IntegrationHorizontal (128px)
    • Adjust IntegrationList grid to maintain consistent heights

Additional changes:

  • Add UserActionModal to exports in index.js
  • Update package.json with new dev build script and dependencies

TODO:

  • Iterate over time. These components will need to be considered for their flexibility and configurability so that an adopter doesn't feel compelled to ditch the frigg-built/managed components in favor of rolling their own.
  • Make a cleaner distinction what is "throwaway, demonstration UI" and what is our true UI library.

1. Update the API class to use the updated API behavior with userActions
2. Update the User Actions concepts so that the action menu now looks for QUICK_ACTIONS, which would be a new subType of User Actions (see integration-base for implementation details there). This also removes any pre-baked user actions from the dropdown.
3. Update the form population to allow for initialData where appropriate
4. Update the form handling to make sure keystrokes are added to the formData so that it properly submits
5. Update the UserActionModal to handle a bit more streamlined
6. Update the IntegrationHorizontal componet and List to keep the heights at a max

TODO:
[] Iterate over time. These components will need to be considered for their flexibility and configurability so that an adopter doesn't feel compelled to ditch the frigg-built/managed components in favor of rolling their own.
[] Make a cleaner distinction what is "throwaway, demonstration UI" and what is our true UI library.
Copy link

sonarcloud bot commented Oct 17, 2024

@seanspeaks seanspeaks marked this pull request as ready for review October 17, 2024 03:36
@seanspeaks seanspeaks changed the title Changes to the UI library for a few items: 1. Update the API class to use the updated API behavior with userActions 2. Update the User Actions concepts so that the action menu now looks for QUICK_ACTIONS, which would be a new subType of User Actions (see integration-base for implementation details there). This also removes any pre-baked user actions from the dropdown. 3. Update the form population to allow for initialData where appropriate 4. Update the form handling to make sure keystrokes are added to the formData so that it properly submits 5. Update the UserActionModal to handle a bit more streamlined 6. Update the IntegrationHorizontal componet and List to keep the heights at a max Changes to the UI library Oct 17, 2024
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.

1 participant