-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add clickable navigation links to supplementary alignments/paired end…
…s locations and BND/TRA endpoints in detail widgets (#1701) * Add ability to navigate to individual split alignment sections from AlignmentsFeatureDetails * Add view reference to feature details * Ignore some any * Fixup tests to use stateModelFactory * Add some console warn ignores * Add view to variantmodelfactory * Connect to breakend endpoints * Link to breakend endpoints for both tra and bnd types * Add links to automatically launch breakpoints split view from variant detail panel * Fix lint/tsc * Try not too add too much data to the virtual dom with long keys * Add formatter for bam/cram paired end links
- Loading branch information
Showing
21 changed files
with
314 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
import { types } from 'mobx-state-tree' | ||
import PluginManager from '../PluginManager' | ||
import { ConfigurationSchema } from '../configuration' | ||
import { ElementId } from '../util/types/mst' | ||
|
||
const configSchema = ConfigurationSchema('BaseFeatureWidget', {}) | ||
|
||
const stateModel = types | ||
.model('BaseFeatureWidget', { | ||
id: ElementId, | ||
type: types.literal('BaseFeatureWidget'), | ||
featureData: types.frozen(), | ||
}) | ||
.actions(self => ({ | ||
setFeatureData(data: Record<string, unknown>) { | ||
self.featureData = data | ||
}, | ||
clearFeatureData() { | ||
self.featureData = undefined | ||
}, | ||
})) | ||
export default function stateModelFactory(pluginManager: PluginManager) { | ||
return types | ||
.model('BaseFeatureWidget', { | ||
id: ElementId, | ||
type: types.literal('BaseFeatureWidget'), | ||
featureData: types.frozen(), | ||
view: types.safeReference( | ||
pluginManager.pluggableMstType('view', 'stateModel'), | ||
), | ||
}) | ||
.actions(self => ({ | ||
setFeatureData(data: Record<string, unknown>) { | ||
self.featureData = data | ||
}, | ||
clearFeatureData() { | ||
self.featureData = undefined | ||
}, | ||
})) | ||
} | ||
|
||
export { configSchema, stateModel } | ||
export { configSchema, stateModelFactory } | ||
export { BaseFeatureDetails as ReactComponent } from './BaseFeatureDetail' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.