-
Notifications
You must be signed in to change notification settings - Fork 0
Eden/value matching retouch #57
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
Conversation
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.
Pull Request Overview
This PR refactors the value matching functionality with significant UI improvements and cleanup of unused scripts. The main changes focus on replacing the MaterialReactTable with a custom table implementation and enhancing the enum browsing experience.
- Replaces MaterialReactTable with custom table implementation featuring sticky columns and improved editing
- Adds GDC enum browsing with popover interface and search functionality
- Removes unused Redis management scripts from package.json
Reviewed Changes
Copilot reviewed 10 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
package.json | Removes unused Redis kill scripts and their pre-hooks |
app/lib/heatmap/heatmap-helper.tsx | Adds enumDef property to GDCAttribute interface |
app/dashboard/components/value-comparisons/value-comparison-table.tsx | Major refactor replacing MaterialReactTable with custom implementation |
app/dashboard/components/fileuploading.tsx | Adds close button to file upload form |
app/dashboard/components/explanation/RelevantKnowledgeView.tsx | Enhances enum display with tooltips using enumDef |
api/utils.py | Updates GDC ontology file path reference |
api/tools/task_tools.py | Code style improvements and cleanup |
api/matching_task.py | Code formatting improvements |
api/langchain/memory.py | Minor string formatting cleanup |
api/index.py | Updates GDC ontology file path reference |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
sourceCellRefs.current.set(row.id as number, el); | ||
}} | ||
onClick={() => { | ||
if (!isEditing) { | ||
setEditingRowId(row.id as number); |
Copilot
AI
Sep 7, 2025
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.
Using type assertion 'as number' can be unsafe if row.id is not guaranteed to be a number. Consider adding proper type checking or ensuring the row interface has a typed id property.
sourceCellRefs.current.set(row.id as number, el); | |
}} | |
onClick={() => { | |
if (!isEditing) { | |
setEditingRowId(row.id as number); | |
if (typeof row.id === "number") { | |
sourceCellRefs.current.set(row.id, el); | |
} | |
}} | |
onClick={() => { | |
if (!isEditing && typeof row.id === "number") { | |
setEditingRowId(row.id); |
Copilot uses AI. Check for mistakes.
sourceCellRefs.current.set(row.id as number, el); | ||
}} | ||
onClick={() => { | ||
if (!isEditing) { | ||
setEditingRowId(row.id as number); |
Copilot
AI
Sep 7, 2025
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.
Type assertion 'as number' is used without validation. Consider ensuring row.id is properly typed or add runtime type checking to prevent potential errors.
sourceCellRefs.current.set(row.id as number, el); | |
}} | |
onClick={() => { | |
if (!isEditing) { | |
setEditingRowId(row.id as number); | |
if (typeof row.id === "number") { | |
sourceCellRefs.current.set(row.id, el); | |
} else { | |
// Optionally handle the error, e.g. log a warning | |
console.warn("row.id is not a number:", row.id); | |
} | |
}} | |
onClick={() => { | |
if (!isEditing) { | |
if (typeof row.id === "number") { | |
setEditingRowId(row.id); | |
} else { | |
// Optionally handle the error, e.g. log a warning | |
console.warn("row.id is not a number:", row.id); | |
} |
Copilot uses AI. Check for mistakes.
Coverage report
Test suite run success3 tests passing in 3 suites. Report generated by 🧪jest coverage report action from 120da5c |
39eea9f
to
120da5c
Compare
No description provided.