mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
_Note - currently feature flagged. Build frontend with `ALLOW_CONDITIONAL_ACCESS=true NODE_ENV=development yarn run webpack --progress --watch` to enable this feature. Also, all of this functionality depends on the new `config.license.managed_cloud` being true, so you'll need to mock that data somehow. [This branch](https://github.com/fleetdm/fleet/tree/27043-fake-data) has the appropriate fake data for testing_ ## For #27043, #27864 ### Build front end for Fleet's integration with Microsoft Entra, allowing conditional preventtion of single sign-on for hosts failing any policies on a team #### Trigger the integration  #### Triggered, but configuration still not verified <img width="1348" alt="√ not-verified-return-to-prefilled-form" src="https://github.com/user-attachments/assets/44d0c21f-2554-40a8-9158-d1107cff2d09" /> #### Verified, short and long tenant ids:  #### Verified –> Deleted  #### Enable for policies of a team  #### Activities <img width="886" alt="√ activities" src="https://github.com/user-attachments/assets/d21e6185-c2f2-40b2-9c69-9b92fab58766" /> #### Unavailable for self-hosted Fleet instances:  #### Premium only  - [x] Changes file added for user-visible changes in `changes/` - [x] Added/updated automated tests - [x] A detailed QA plan exists on the associated ticket (if it isn't there, work with the product group's QA engineer to add it) - [ ] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
20 lines
514 B
TypeScript
20 lines
514 B
TypeScript
import { ReactNode } from "react";
|
|
import PropTypes from "prop-types";
|
|
|
|
export default PropTypes.shape({
|
|
disabled: PropTypes.bool,
|
|
label: PropTypes.string,
|
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
});
|
|
|
|
export type TooltipContent = ReactNode;
|
|
|
|
export interface IDropdownOption {
|
|
disabled?: boolean;
|
|
label: string | JSX.Element;
|
|
value: string | number;
|
|
helpText?: ReactNode;
|
|
premiumOnly?: boolean;
|
|
tooltipContent?: TooltipContent;
|
|
onClick?: (() => void) | void | null;
|
|
}
|