Skip to content

Conversation

@aottr
Copy link
Contributor

@aottr aottr commented Nov 26, 2025

ref: #MANAGER-18777

Description

Ticket Reference: #...

Additional Information

@aottr aottr requested review from a team as code owners November 26, 2025 14:28
@github-actions github-actions bot added the feature New feature label Nov 26, 2025
@aottr aottr force-pushed the feat/MANAGER-18777 branch from fd2fe00 to b3d00b1 Compare November 28, 2025 15:16
@aottr aottr force-pushed the feat/MANAGER-18777 branch from b3d00b1 to 7db3e3d Compare December 1, 2025 17:28
ref: #MANAGER-18777

Signed-off-by: Dustin Kroger <[email protected]>
@aottr aottr force-pushed the feat/MANAGER-18777 branch from 7db3e3d to 21ccb97 Compare December 1, 2025 21:58
stepElement.style.height = `${rect.height + offset}px`;
};

export const computePopoverPosition = ({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick(suggestion): Add explanation behind this logic building for better readability.

Comment on lines +8 to +19
export const getMePreferences = async (preferenceKey: string): Promise<boolean> => {
try {
const { data } = await apiClient.v6.get<MePreferences>(
`/me/preferences/manager/${preferenceKey}`,
);
return data.value ? data.value.toLowerCase() === 'true' : false;
} catch (error) {
if ((error as ApiError).status == 404) {
return false;
}
throw error;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: This could probably be added in common-api module as it can be used in other µ-apps as well like Container.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we add it to the common-api module, I'd add a proper generic type definition since some of the preferences on this API contain stringified JSON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants