Open vlasn opened 3 months ago
Name | Link |
---|---|
Latest commit | 6ee404f1fd6925cc59f353354ecff4cc96a6771e |
Latest deploy log | https://app.netlify.com/sites/ohif-platform-docs/deploys/66a7873c4b26980008aee86f |
Deploy Preview | https://deploy-preview-4318--ohif-platform-docs.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 6ee404f1fd6925cc59f353354ecff4cc96a6771e |
Latest deploy log | https://app.netlify.com/sites/ohif-dev/deploys/66a7873c929c6600085b0f12 |
Deploy Preview | https://deploy-preview-4318--ohif-dev.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Should mode.route.layoutTemplate({...})
return an unique layout ID? Does any other viewer logic rely on these being unique & should these be enforced?
Hi there, this is a nice addition, any chance to get it merged ?
Hi, thank you for the feedback! Just to keep you in the loop, I will circle back to making the suggested changes, just not sure we have the time & bandwidth before RSNA ๐ค
Context
The documentation mentions support for multi-route/multi-layout modes being planned in the future. Given that we'd like to start using this functionality, we'd be happy to contribute it.
Changes & Results
Updated ModeRoute (
platform/app/src/routes/Mode/Mode.tsx
) to accept an optionalmodeRoutePath
proproute
of a given mode)route
object with the matchingpath
parameter frommode.routes
Updated buildModeRoutes logic (
platform/app/src/routes/buildModeRoutes.tsx
)In addition to generating & registering
/{mode.routeName}
and/{mode.routeName}/{dataSourceID}
paths, we generate & register for each route in a mode/{mode.routeName}/{mode.route[n].path}
route/{mode.routeName}/{mode.route[n].path}/{dataSourceID}
pathGiven that we still register the
/{mode.routeName}
and/{mode.routeName}/{dataSourceID}
paths, the router retains previous functionality.Testing
basic-dev-mode
or temporarily add the following to the longitudinal mode's (modes/longitudinal/src/index.ts
) routes:yarn dev
Checklist
PR
feat(ModeRoute): add support for rendering an explicit route
feat(buildModeRoutes): generate an explicit route mapping for each route in a mode
[x] My Pull Request title is descriptive, accurate and follows the semantic-release format and guidelines.
Code
Public Documentation Updates
Tested Environment