-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add feat 378- MAIDR as react interface, grafana plugin #501
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: main
Are you sure you want to change the base?
Conversation
Pull Request Review - PR #501OverviewThis PR adds significant new functionality:
Overall Assessment: This is a substantial PR with 19,231 additions that successfully implements the requested features. However, there are several important concerns that should be addressed before merging. ✅ Strengths1. Clean Public API Exposure (src/index.ts)
2. Grafana Plugin Architecture
3. Enhanced CI/CD
|
| Category | Rating | Notes |
|---|---|---|
| Code Quality | 6/10 | Good structure, but debug logs and architectural concerns |
| Test Coverage | 3/10 | Tests don't match implementation |
| Documentation | 4/10 | Missing usage examples and API docs |
| Security | 9/10 | No significant concerns |
| Architecture | 7/10 | Some violations of stated principles |
| Overall | 6/10 | Good foundation, needs work before merge |
✅ Approval Status: Changes Requested
This PR implements valuable functionality but requires the following before approval:
- Complete PR checklist
- Fix/rewrite E2E tests
- Remove debug code
- Add basic documentation
- Address the
file:..dependency issue
Great work on the implementation! The core functionality looks solid. With the above changes, this will be ready to merge.
cc: @aarthy2000
Pull Request
Description
This pull request adds the feature requested in #378 and provides a plugin to visualize accessible bar charts in grafana (protoype)
Related Issues
#378
Changes Made
The init maidr mechanism is exposed so other applications can use it.
For grafana, it accepts the input from grafana in various format (csv content, raw rows tested for now) and generates the maidr payload, svg.
TODO: Creation of svg should utilize the existing mechanism of py binder.
Notes
Currently, the CSV can be provided as text/ file in Grafana plugin, Bar chart SVG is built by this component: https://github.com/xability/maidr/blob/feat/feat_387/xability-maidr-panel/src/components/MaidrBarChart.tsx
This is not scalable and uniform, we need to use the python maidr package here.
Approach 1: Get the CSV from the plugin -> use py-maidr to construct the SVG -> visualize in Grafana
Method 2 here https://codeop.tech/how-to-run-python-code-in-javascript-a-beginners-guide/ sounds like a possible solution
Screenshots (if applicable)
Checklist
ManualTestingProcess.md, and all tests related to this pull request pass.Additional Notes