-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api-client,app,react-api-client): implement ODD anonymous locali…
…zation provider (#14741) implements a localization provider for the ODD app that substitutes anonymous translation values when the "enableOEMMode" robot setting is on. pushes the localization provider further down the DOM to be within the ODD api host provider for the robot settings request, and splits out a separate instance for the desktop app. refactors the `OnDeviceDisplayApp` component a bit to avoid rerenders of providers - currently the entire ODD app rerenders on every route change because of the scroll ref. refactors the initial loading screen out of the route tree and up the DOM to block localization provider render until the robot-server api is up adds api client and react api client functions for robot settings get requests. all translation keys that reference "opentrons" or "flex" are moved to the new `branded.json` and `anonymous.json` files. anonymous copy will be finalized in PLAT-243 closes PLAT-265
- Loading branch information
1 parent
1077962
commit 416e417
Showing
98 changed files
with
722 additions
and
741 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { GET, request } from '../request' | ||
|
||
import type { ResponsePromise } from '../request' | ||
import type { HostConfig } from '../types' | ||
import type { RobotSettingsResponse } from './types' | ||
|
||
export function getRobotSettings( | ||
config: HostConfig | ||
): ResponsePromise<RobotSettingsResponse> { | ||
return request<RobotSettingsResponse>(GET, '/settings', null, config) | ||
} |
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.