Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ Detailed guides for specific subsystems live in `contrib/claude/`:
- [`contrib/claude/release/README.md`](contrib/claude/release/README.md) — Release process (per-track version bump, changelog, tag, push)
- [`contrib/claude/sandbox.md`](contrib/claude/sandbox.md) — Lima sandbox environments (create, manage, access services)
- [`contrib/claude/n8n.md`](contrib/claude/n8n.md) — n8n community node (resources, operations, GraphQL helpers)
- [`contrib/claude/onboarding.md`](contrib/claude/onboarding.md) — Console organization onboarding wizard (unlisted route, steps, persistence)
- [`contrib/claude/skills.md`](contrib/claude/skills.md) — Agent skills package (`@probo/skills`, compliance workflows, Probo MCP)
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function NewOrganizationPageInner() {
}

const org = r.createOrganization!.organization;
void navigate(`/organizations/${org!.id}`);
void navigate(`/organizations/${org!.id}/onboarding?welcome=1`);
toast({
title: t("common.success"), description: t("newOrganizationPage.messages.created"),
variant: "success",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
// Copyright (c) 2026 Probo Inc <hello@probo.com>.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import { Link } from "@probo/ui";
import { Suspense, useEffect } from "react";
import { useTranslation } from "react-i18next";
import { usePreloadedQuery, useQueryLoader } from "react-relay";

import type { onboardingIamQueriesScimOnboardingDoPanelQuery } from "#/__generated__/iam/onboardingIamQueriesScimOnboardingDoPanelQuery.graphql";
import { useOrganizationId } from "#/hooks/useOrganizationId";
import { IAMRelayProvider } from "#/providers/IAMRelayProvider";
import {

Check failure on line 29 in apps/console/src/pages/iam/organizations/onboarding/ScimOnboardingDoPanel.tsx

View workflow job for this annotation

GitHub Actions / lint-js

`#/pages/organizations/onboarding/_components/OnboardingStepActions` import should occur before import of `#/providers/IAMRelayProvider`
OnboardingStepActions,
OnboardingStepDoCard,
} from "#/pages/organizations/onboarding/_components/OnboardingStepActions";

import { ConnectorList } from "../settings/_components/ConnectorList";
import { SCIMConfiguration } from "../settings/_components/SCIMConfiguration";

Check failure on line 35 in apps/console/src/pages/iam/organizations/onboarding/ScimOnboardingDoPanel.tsx

View workflow job for this annotation

GitHub Actions / lint-js

There should be at least one empty line between import groups
import { scimOnboardingDoPanelQuery } from "./onboardingIamQueries";

type ScimOnboardingDoPanelInnerProps = {
onContinue: () => void;
onDefer: () => void;
queryRef: NonNullable<
ReturnType<
typeof useQueryLoader<onboardingIamQueriesScimOnboardingDoPanelQuery>
>[0]
>;
};

function ScimOnboardingDoPanelInner(props: ScimOnboardingDoPanelInnerProps & {
onScimUpdated?: () => void;
}) {
const { onContinue, onDefer, onScimUpdated, queryRef } = props;
const { t } = useTranslation("organizations/onboarding");
const organizationId = useOrganizationId();

const { organization } = usePreloadedQuery<onboardingIamQueriesScimOnboardingDoPanelQuery>(
scimOnboardingDoPanelQuery,
queryRef,
);
if (organization.__typename !== "Organization") {
throw new Error("invalid organization node");
}

const complete = !!organization.scimConfiguration?.id;

useEffect(() => {
if (complete) {
onScimUpdated?.();
}
}, [complete, onScimUpdated]);

const settingsHref = `/organizations/${organizationId}/settings/scim`;

return (
<OnboardingStepDoCard
title={t("steps.scim.doTitle")}
description={t("steps.scim.doDescription")}
complete={complete}
actions={(
<OnboardingStepActions
continueDisabled={!complete}
onContinue={onContinue}
onDefer={onDefer}
settingsLink={(
<Link to={settingsHref} variant="secondary" size="2">
{t("actions.openInSettings")}
</Link>
)}
/>
)}
>
<div className="space-y-6 max-h-[min(28rem,50vh)] overflow-y-auto pr-1">
<ConnectorList fKey={organization} />
<div className="space-y-2 border-t border-border-mid pt-4">
<h4 className="text-2 font-medium">{t("steps.scim.manualScimHeading")}</h4>
<SCIMConfiguration fKey={organization} />
</div>
</div>
</OnboardingStepDoCard>
);
}

export function ScimOnboardingDoPanel(props: {
onContinue: () => void;
onDefer: () => void;
onScimUpdated?: () => void;
}) {
const { onContinue, onDefer, onScimUpdated } = props;
const organizationId = useOrganizationId();
const [queryRef, loadQuery] = useQueryLoader<onboardingIamQueriesScimOnboardingDoPanelQuery>(
scimOnboardingDoPanelQuery,
);

useEffect(() => {
loadQuery({ organizationId }, { fetchPolicy: "store-and-network" });
}, [loadQuery, organizationId]);

if (!queryRef) {
return null;
}

return (
<IAMRelayProvider>
<Suspense fallback={null}>
<ScimOnboardingDoPanelInner
onContinue={onContinue}
onDefer={onDefer}
onScimUpdated={onScimUpdated}
queryRef={queryRef}
/>
</Suspense>
</IAMRelayProvider>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Copyright (c) 2026 Probo Inc <hello@probo.com>.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import { graphql } from "relay-runtime";

export const onboardingIamStatusQuery = graphql`
query onboardingIamQueriesOnboardingIamStatusQuery($organizationId: ID!) {
organization: node(id: $organizationId) @required(action: THROW) {
__typename
... on Organization {
scimConfiguration {
id
}
}
}
}
`;

export const scimOnboardingDoPanelQuery = graphql`
query onboardingIamQueriesScimOnboardingDoPanelQuery($organizationId: ID!) {
organization: node(id: $organizationId) @required(action: THROW) {
__typename
... on Organization {
id
scimConfiguration {
id
}
...ConnectorListFragment
...SCIMConfigurationFragment
}
}
}
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// Copyright (c) 2026 Probo Inc <hello@probo.com>.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import { Skeleton } from "@probo/ui";
import { Suspense, useEffect } from "react";
import { useQueryLoader } from "react-relay";

import type { ViewerMembershipLayoutQuery } from "#/__generated__/iam/ViewerMembershipLayoutQuery.graphql";
import { useOrganizationId } from "#/hooks/useOrganizationId";
import { IAMRelayProvider } from "#/providers/IAMRelayProvider";

import {
ViewerMembershipLayout,
viewerMembershipLayoutQuery,
} from "../../iam/organizations/ViewerMembershipLayout";

function OnboardingLayoutQueryLoader() {
const organizationId = useOrganizationId();
const [queryRef, loadQuery] = useQueryLoader<ViewerMembershipLayoutQuery>(
viewerMembershipLayoutQuery,
);

useEffect(() => {
loadQuery({ organizationId, hideSidebar: true });
}, [organizationId, loadQuery]);

if (!queryRef) {
return <Skeleton className="w-full h-screen" />;
}

return (
<Suspense fallback={<Skeleton className="w-full h-screen" />}>
<ViewerMembershipLayout queryRef={queryRef} hideSidebar />
</Suspense>
);
}

export default function OnboardingLayoutLoader() {
return (
<IAMRelayProvider>
<OnboardingLayoutQueryLoader />
</IAMRelayProvider>
);
}
Loading
Loading