Skip to content
Merged
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
7 changes: 7 additions & 0 deletions apps/docs/integrations/linear.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ priority, or discussion.
`R_LINEAR_CLIENT_SECRET`, and `R_LINEAR_WEBHOOK_SECRET` in the runtime
environment continue to use those values and skip the in-app setup.
</Step>
<Step title="Update or remove saved credentials">
A deployment administrator can return to **Settings > Integrations** and
select **Configure** on Linear. Saving a new client ID or client secret
disconnects the current workspace so it can be authorized again. Removing
saved credentials disables Linear but does not delete the app in Linear.
Credentials managed by the deployment environment must be changed there.
</Step>
<Step title="Link your user account">
Link your Linear identity when prompted so Roomote can associate issue
activity with your Roomote user.
Expand Down
134 changes: 130 additions & 4 deletions apps/web/src/components/settings/Integrations.test.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions apps/web/src/components/settings/Integrations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ function IntegrationCard({ item }: { item: IntegrationItem }) {
</CardHeader>

{item.status || footerActions.length > 0 ? (
<CardContent className="p-">
<CardContent>
<div className="flex gap-3 p-0">
<div
className={`mt-0.5 ${iconColumnWidthClass} shrink-0`}
Expand All @@ -556,7 +556,7 @@ function IntegrationCard({ item }: { item: IntegrationItem }) {
</div>
)}
{footerActions.length > 0 ? (
<div className="flex gap-2">
<div className="-ml-4 flex gap-2">
{footerActions.map((action) => (
<Button
key={action.ariaLabel}
Expand Down Expand Up @@ -1146,7 +1146,7 @@ export function Integrations() {
const linearOauthUnavailable =
linearOauthStatus === 'missing' || linearOauthStatus === 'partial';
const linearOauthSetup = useLinearOauthSetup(
isAdmin && linearOauthUnavailable,
isAdmin && (linearOauthUnavailable || isLinearOauthSetupOpen),
);
const setDeploymentEnabled = useSetDeploymentMcpEnabled();
const userMcpConnections = useUserMcpConnections();
Expand Down Expand Up @@ -1290,6 +1290,7 @@ export function Integrations() {
(userMcpConnections.data ?? []).map((entry) => [entry.mcpId, entry]),
);
const canSetUpLinearOauth = isAdmin && linearOauthUnavailable;
const canConfigureLinearOauth = isAdmin && !linearOauthUnavailable;
const canReconnectLinear =
isAdmin && Boolean(linearInstallation.data) && !linearOauthUnavailable;
const startLinearConnection = () => {
Expand Down Expand Up @@ -1370,6 +1371,15 @@ export function Integrations() {
icon: <RefreshCw />,
}
: undefined,
utilityAction: canConfigureLinearOauth
? {
label: 'Configure credentials',
ariaLabel: 'Configure Linear',
onAction: () => setIsLinearOauthSetupOpen(true),
isPending: isLinearOauthSetupOpen && linearOauthSetup.isPending,
icon: <Settings2 />,
}
: undefined,
onAction: linearOauthUnavailable
? undefined
: () => {
Expand Down Expand Up @@ -1632,6 +1642,7 @@ export function Integrations() {
oauthReadiness.isPending,
isAdmin,
isGrafanaDialogOpen,
isLinearOauthSetupOpen,
saveAsanaConnection.isPending,
saveGrafanaConnection.isPending,
saveVercelConnection.isPending,
Expand Down
Loading
Loading