Skip to content

Commit

Permalink
feat: map open ai config setting to key + input password
Browse files Browse the repository at this point in the history
JIRA: TRIVIAL
  • Loading branch information
xMort committed Dec 6, 2023
1 parent 1c93484 commit 2c69b09
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
Binary file modified libs/sdk-backend-tiger/gooddata-sdk-backend-tiger-0.0.0-dev.0.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions libs/sdk-backend-tiger/src/backend/settings/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export function mapTypeToKey(
return "timezone";
case "WEEK_START":
return "weekStart";
case "OPENAI_CONFIG":
return "openAiConfig";
case "organizationSetting":
return "organizationSetting";
default:
Expand Down
2 changes: 2 additions & 0 deletions libs/sdk-ui-kit/api/sdk-ui-kit.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3020,6 +3020,8 @@ export interface InputPureProps extends IDomNativeProps {
// (undocumented)
hasWarning: boolean;
// (undocumented)
isPassword?: boolean;
// (undocumented)
isSearch: boolean;
// (undocumented)
isSmall: boolean;
Expand Down
Binary file modified libs/sdk-ui-kit/gooddata-sdk-ui-kit-0.0.0-dev.0.tgz
Binary file not shown.
3 changes: 3 additions & 0 deletions libs/sdk-ui-kit/src/Form/InputPure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export interface InputPureProps extends IDomNativeProps {
label: string;
labelPositionTop: boolean;
value: string | number;
isPassword?: boolean;
}
/**
* @internal
Expand Down Expand Up @@ -188,6 +189,7 @@ export class InputPure extends React.PureComponent<InputPureProps> implements ID
value,
onBlur,
onFocus,
isPassword,
} = this.props;

return (
Expand All @@ -208,6 +210,7 @@ export class InputPure extends React.PureComponent<InputPureProps> implements ID
placeholder={placeholder}
readOnly={readonly}
value={value}
type={isPassword ? "password" : "text"}
/>
{this.renderSearch(isSearch)}
{this.renderClearIcon(clearOnEsc)}
Expand Down
Binary file modified tools/plugin-toolkit/gooddata-plugin-toolkit-0.0.0-dev.0.tgz
Binary file not shown.

0 comments on commit 2c69b09

Please sign in to comment.