feat: add boundary for layer navigation#393
Conversation
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
|
Looks like there is a version discrepancy b/w GH actions & local linter, will fix this along this feature |
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
|
regeneration of lock file resolved the lint version discrepancy |
|
braille.ts and navigation.ts changes are result of lint changes and aren't related to this feature |
jooyoungseo
left a comment
There was a problem hiding this comment.
Test with examples/barplot.html. The boundary warning doesn't work in a single-layer plot.
jooyoungseo
left a comment
There was a problem hiding this comment.
It'd be great if you could cover this as part of this PR: In examples/multi-panel.html, you would see "No figure info to display" when you reach boundary. Please add the boundary sound here.
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
|
@jooyoungseo , I've adressed both these changes. Please let me know if it is looking good. Thanks |
jooyoungseo
left a comment
There was a problem hiding this comment.
When sound is off by pressing S key, the boundary sound must be turned off as well. This worked originally in main branch.
sure, working on it, professor |
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
jooyoungseo
left a comment
There was a problem hiding this comment.
Test with examples/barplot.html. It says "No plot info to display" instead of "No additional layer
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
addressed this issue in commit 18b467a |
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
There was a problem hiding this comment.
Pull Request Overview
This PR implements a boundary feedback system for navigation between layers in the multimodal access system. The changes add proper audio and text feedback when users attempt to navigate beyond available layers (e.g., "No additional layer" message).
- Adds boundary detection utility for grid-based navigation
- Implements moveOnce() methods to handle boundary logic in plot elements
- Enhances audio and text services to provide appropriate feedback for boundary conditions
Reviewed Changes
Copilot reviewed 7 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/util/navigation.ts | New utility function for boundary detection in grid navigation |
| src/service/text.ts | Updates text formatting to display "No additional layer" for empty subplot states |
| src/service/audio.ts | Enhances audio service to handle boundary conditions and prevent audio overlap |
| src/model/plot.ts | Adds moveOnce() methods and trace interface updates for boundary handling |
| src/model/context.ts | Simplifies trace stepping logic and adds boundary state handling |
| src/model/abstract.ts | Makes notifyOutOfBounds() public and adds getId() method to AbstractTrace |
| src/controller.ts | Moves audio service observer registration from subplot to figure level |
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
|
This PR contains changes to files that affect the model layer and unit tests. Before merging, please ensure:
|
|
🎉 This PR is included in version 3.19.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Pull Request
Description
Implement a "no additional layer" boundary feedback system for navigation between layers
Related Issues
Closes #372
Changes Made
src/model/abstract.ts
src/model/context.ts
src/model/plot.ts
src/service/audio.ts
src/service/text.ts
Checklist
ManualTestingProcess.md, and all tests related to this pull request pass.