-
Notifications
You must be signed in to change notification settings - Fork 112
feat(communication): add guided tour #20647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: project/communication-app
Are you sure you want to change the base?
Conversation
fd2fe00 to
b3d00b1
Compare
b3d00b1 to
7db3e3d
Compare
packages/manager/apps/communication/src/components/guidedTour/GuidedTour.component.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/communication/src/hooks/useGuidedTour/useGuidedTour.context.tsx
Outdated
Show resolved
Hide resolved
ref: #MANAGER-18777 Signed-off-by: Dustin Kroger <[email protected]>
7db3e3d to
21ccb97
Compare
| stepElement.style.height = `${rect.height + offset}px`; | ||
| }; | ||
|
|
||
| export const computePopoverPosition = ({ |
There was a problem hiding this comment.
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.
| 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; | ||
| } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
ref: #MANAGER-18777
Description
Ticket Reference: #...
Additional Information