Skip to content

Conversation

@sirQuail
Copy link
Contributor

Description:

This adds a modal for interactions. Editing interactions is also made possible.
This combines existing interactions components and uses the new editing interaction hook.

image

@HackYourFutures HackYourFutures temporarily deployed to dojo-frontend-interacti-tuznny November 17, 2025 15:23 Inactive
@stasel stasel requested a review from Copilot November 17, 2025 15:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the interactions feature by moving the add interaction form into a modal and adding edit functionality. The changes consolidate the UI into a modal-based workflow similar to the strikes and tests components.

  • Introduces InteractionDetailsModal for both adding and editing interactions
  • Adds edit capability with a new useEditInteraction hook integration
  • Adds edit button to each interaction in the list
  • Removes the inline AddNewInteractionComponent in favor of modal-based interaction

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 12 comments.

File Description
client/src/components/interactions/InteractionsList.tsx Added edit button and onClickEdit callback prop to enable editing interactions from the list
client/src/components/interactions/InteractionsInfo.tsx Replaced inline form with modal-based workflow, integrated edit functionality, but contains unused delete-related code that should be removed
Comments suppressed due to low confidence (1)

client/src/components/interactions/InteractionsInfo.tsx:25

  • Unused variable setIdToDelete.
  const [idToDelete, setIdToDelete] = useState<string>('');

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Formatted with prettier
@HackYourFutures HackYourFutures temporarily deployed to dojo-frontend-interacti-uvfxw4 November 18, 2025 10:21 Inactive
@stasel stasel merged commit 242c46f into main Nov 18, 2025
1 of 2 checks passed
@stasel stasel deleted the frontend/interaction-info-page branch November 18, 2025 10:45
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.

4 participants