-
Notifications
You must be signed in to change notification settings - Fork 49
feat(charts): add In view filter to chart list #352
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -92,20 +92,29 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| matTooltip="Display Chart Boundaries" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| matTooltipPosition="above" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Boundaries | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bounds | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </mat-slide-toggle> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <mat-slide-toggle | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| style="margin-left: 12px" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [hideIcon]="true" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [checked]="inViewOnly" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (change)="toggleInViewOnly($event.checked)" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| matTooltip="Show only charts visible in the current map view" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| matTooltipPosition="above" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| In view | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </mat-slide-toggle> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mat-button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mat-icon-button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (click)="showChartLayers(true)" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| matTooltip="Re-order Charts" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| matTooltipPosition="above" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <mat-icon>import_export</mat-icon> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Re-order | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </button> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mat-button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mat-icon-button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
107
to
+117
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Restore an accessible name for the icon-only actions. Changing these controls to icon-only buttons removes their explicit label for assistive tech. Add an Suggested fix <button
mat-icon-button
+ aria-label="Re-order Charts"
(click)="showChartLayers(true)"
matTooltip="Re-order Charts"
matTooltipPosition="above"
>
<mat-icon>import_export</mat-icon>
</button>
<button
mat-icon-button
+ aria-label="Add Chart"
matTooltip="Add Chart"
matTooltipPosition="above"
[matMenuTriggerFor]="addchartmenu"
>
<mat-icon>add</mat-icon>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| matTooltip="Add Chart" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| matTooltipPosition="above" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [matMenuTriggerFor]="addchartmenu" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Handle wrapped view extents before intersecting.
This helper is documented to return wrong results when the viewport crosses the antimeridian, so the new In view filter will misclassify charts for dateline-adjacent views. Split wrapped extents into two longitude ranges (or normalize them first) before calling
intersects, and add a regression test for that case.🤖 Prompt for AI Agents