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

Assign and create survey components #35

Merged
merged 22 commits into from
Apr 30, 2024
Merged

Conversation

ctgchris
Copy link
Collaborator

@ctgchris ctgchris commented Apr 29, 2024

Added Assign Surveys Component:

  • Updated the Assign Surveys component to accept an array of userIds via props, enhancing its flexibility and reusability.
  • Implemented state management within the Assign Surveys component to efficiently handle selected surveyIds, ensuring smooth interaction and data integrity.
  • Integrated a GET request to retrieve the list of surveys from the /api/surveys endpoint, enabling seamless rendering of all available surveys in a user-friendly list format.
  • Enhanced the assign functionality by integrating a POST request to the /api/surveys/assign endpoint. The request body now includes the necessary arrays for efficient assignment.
  • followed Figma design to style it using CSS

Added Create Survey Component:

  • Modified the Create Survey component to include text fields for Document Title and Survey Title, providing users with intuitive input options.
  • Adjusted the behavior of the Edit Survey button to display "Create" as per the Figma design. Upon clicking, the button now initiates the creation of a survey by sending a POST request to the /api/surveys endpoint.
  • followed Figma design to style it using CSS

@ctgchris ctgchris changed the title Assign& create survey components Assign and create survey components Apr 29, 2024
@nkanchinadam nkanchinadam merged commit f913a6c into main Apr 30, 2024
0 of 2 checks passed
@nkanchinadam nkanchinadam deleted the assign-create-surveys branch April 30, 2024 03:09
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.

2 participants