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

Decouple logic from interactive grid component #16

Open
nicolasperez19 opened this issue Oct 25, 2024 · 0 comments · Fixed by nkzarrabi/mic-master-flex#1 · May be fixed by #31
Open

Decouple logic from interactive grid component #16

nicolasperez19 opened this issue Oct 25, 2024 · 0 comments · Fixed by nkzarrabi/mic-master-flex#1 · May be fixed by #31
Labels
enhancement New feature or request

Comments

@nicolasperez19
Copy link
Owner

No description provided.

@nicolasperez19 nicolasperez19 added the enhancement New feature or request label Oct 25, 2024
@nicolasperez19 nicolasperez19 added this to the Make code more robust milestone Oct 25, 2024
nkzarrabi added a commit to nkzarrabi/mic-master-flex that referenced this issue Oct 31, 2024
Fixes nicolasperez19#16

Decouple logic from the interactive grid component.

* Add `src/utils/micLogic.ts` to export functions for handling microphone positions, zoom, pan, modes, mouse interactions, coordinate conversions, and numpy array string generation.
* Modify `src/components/MicMasterFlex.tsx` to import functions from `src/utils/micLogic.ts` and replace state management, event handlers, and numpy array string generation with utility functions.
* Add `src/utils/micLogic.test.ts` to test handling microphone positions, zoom, pan, modes, mouse interactions, coordinate conversions, and numpy array string generation.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/nicolasperez19/mic-master-flex/issues/16?shareId=XXXX-XXXX-XXXX-XXXX).
nkzarrabi added a commit to nkzarrabi/mic-master-flex that referenced this issue Oct 31, 2024
Fixes nicolasperez19#16

Decouple logic from the interactive grid component.

* Add `src/utils/micLogic.ts` to export functions for handling microphone positions, zoom, pan, modes, mouse interactions, coordinate conversions, and numpy array string generation.
* Modify `src/components/MicMasterFlex.tsx` to import functions from `src/utils/micLogic.ts` and replace state management, event handlers, and numpy array string generation with utility functions.
* Add `src/utils/micLogic.test.ts` to test handling microphone positions, zoom, pan, modes, mouse interactions, coordinate conversions, and numpy array string generation.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/nicolasperez19/mic-master-flex/issues/16?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant