mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 18:09:00 +08:00
feat: oss - sso and api keys (#8068)
* feat: oss - sso and api keys * feat: show to community and community enterprise --------- Co-authored-by: Vikrant Gupta <vikrant@signoz.io>
This commit is contained in:
parent
69e94cbd38
commit
93de4681a9
@ -19,6 +19,7 @@ import { useGetDeploymentsData } from 'hooks/CustomDomain/useGetDeploymentsData'
|
|||||||
import { useGetHostList } from 'hooks/infraMonitoring/useGetHostList';
|
import { useGetHostList } from 'hooks/infraMonitoring/useGetHostList';
|
||||||
import { useGetK8sPodsList } from 'hooks/infraMonitoring/useGetK8sPodsList';
|
import { useGetK8sPodsList } from 'hooks/infraMonitoring/useGetK8sPodsList';
|
||||||
import { useGetQueryRange } from 'hooks/queryBuilder/useGetQueryRange';
|
import { useGetQueryRange } from 'hooks/queryBuilder/useGetQueryRange';
|
||||||
|
import { useGetTenantLicense } from 'hooks/useGetTenantLicense';
|
||||||
import history from 'lib/history';
|
import history from 'lib/history';
|
||||||
import cloneDeep from 'lodash-es/cloneDeep';
|
import cloneDeep from 'lodash-es/cloneDeep';
|
||||||
import { CompassIcon, DotIcon, HomeIcon, Plus, Wrench, X } from 'lucide-react';
|
import { CompassIcon, DotIcon, HomeIcon, Plus, Wrench, X } from 'lucide-react';
|
||||||
@ -54,6 +55,8 @@ export default function Home(): JSX.Element {
|
|||||||
const [updatingUserPreferences, setUpdatingUserPreferences] = useState(false);
|
const [updatingUserPreferences, setUpdatingUserPreferences] = useState(false);
|
||||||
const [loadingUserPreferences, setLoadingUserPreferences] = useState(true);
|
const [loadingUserPreferences, setLoadingUserPreferences] = useState(true);
|
||||||
|
|
||||||
|
const { isCommunityUser, isCommunityEnterpriseUser } = useGetTenantLicense();
|
||||||
|
|
||||||
const [checklistItems, setChecklistItems] = useState<ChecklistItem[]>(
|
const [checklistItems, setChecklistItems] = useState<ChecklistItem[]>(
|
||||||
defaultChecklistItemsState,
|
defaultChecklistItemsState,
|
||||||
);
|
);
|
||||||
@ -323,22 +326,27 @@ export default function Home(): JSX.Element {
|
|||||||
setIsBannerDismissed(true);
|
setIsBannerDismissed(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const showBanner = useMemo(
|
||||||
|
() => !isBannerDismissed && (isCommunityUser || isCommunityEnterpriseUser),
|
||||||
|
[isBannerDismissed, isCommunityUser, isCommunityEnterpriseUser],
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="home-container">
|
<div className="home-container">
|
||||||
<div className="sticky-header">
|
<div className="sticky-header">
|
||||||
{!isBannerDismissed && (
|
{showBanner && (
|
||||||
<div className="home-container-banner">
|
<div className="home-container-banner">
|
||||||
<div className="home-container-banner-content">
|
<div className="home-container-banner-content">
|
||||||
Big news: SigNoz Cloud Teams plan now starting at just $49/Month -
|
Big News: SigNoz Community Edition now available with SSO (Google OAuth)
|
||||||
|
and API keys -
|
||||||
<a
|
<a
|
||||||
href="https://signoz.io/blog/cloud-teams-plan-now-at-49usd/"
|
href="https://signoz.io/blog/open-source-signoz-now-available-with-sso-and-api-keys/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
className="home-container-banner-link"
|
className="home-container-banner-link"
|
||||||
>
|
>
|
||||||
<i>read more</i>
|
<i>read more</i>
|
||||||
</a>
|
</a>
|
||||||
🥳🎉
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="home-container-banner-close">
|
<div className="home-container-banner-close">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user