Skip to content

Commit cf4a4c3

Browse files
committed
Format the lines the new paths made short enough to join
1 parent 4b9421f commit cf4a4c3

6 files changed

Lines changed: 14 additions & 22 deletions

File tree

‎app/src/components/bot-profile/access.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ function YourSkills({ agentId }: { agentId: string }) {
116116
) : skills.length === 0 ? (
117117
<PageEmpty>
118118
You have not written a skill yet.{" "}
119-
<Link className="underline underline-offset-4" to="/capabilities/skills">
119+
<Link
120+
className="underline underline-offset-4"
121+
to="/capabilities/skills"
122+
>
120123
Write one
121124
</Link>
122125
.

‎app/src/components/plugins/app-access-action.tsx‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,7 @@ function ConnectAction({ access }: { access: AppAccess }) {
120120
if (viaSettings)
121121
return (
122122
<Button
123-
render={
124-
<Link
125-
params={{ key: access.key }}
126-
to="/connections/$key"
127-
/>
128-
}
123+
render={<Link params={{ key: access.key }} to="/connections/$key" />}
129124
size="sm"
130125
variant="outline"
131126
>

‎server/tests/composio-adapter.test.ts‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -903,8 +903,7 @@ describe("beginning one person's connection", () => {
903903
const begun = await broker.authorize({
904904
account: { holder: "person", userId: "user_1", vendorUserId: "user_1" },
905905
toolkit: "linear",
906-
returnUrl:
907-
"https://openbot.test/connections/composio-linear",
906+
returnUrl: "https://openbot.test/connections/composio-linear",
908907
});
909908

910909
// The config this deployment already holds for the app — and no `authConfigs.create`, which
@@ -918,8 +917,7 @@ describe("beginning one person's connection", () => {
918917
"user_1",
919918
"ac_this_deployments",
920919
{
921-
callbackUrl:
922-
"https://openbot.test/connections/composio-linear",
920+
callbackUrl: "https://openbot.test/connections/composio-linear",
923921
},
924922
],
925923
]);
@@ -952,8 +950,7 @@ describe("beginning one person's connection", () => {
952950
const refused = broker.authorize({
953951
account: { holder: "person", userId: "user_1", vendorUserId: "user_1" },
954952
toolkit: "linear",
955-
returnUrl:
956-
"https://openbot.test/connections/composio-linear",
953+
returnUrl: "https://openbot.test/connections/composio-linear",
957954
});
958955

959956
const refusal = await failureOf(refused);

‎server/tests/composio-broker-seam.test.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ describe("brokerReturnUrl", () => {
8686
* reasons.
8787
*/
8888
test("says which setting fixes it, and never quotes the address", () => {
89-
const address =
90-
"openbot-tenant-42.internal.corp/connections/9f3c";
89+
const address = "openbot-tenant-42.internal.corp/connections/9f3c";
9190

9291
let thrown: unknown;
9392
try {
@@ -104,9 +103,9 @@ describe("brokerReturnUrl", () => {
104103
});
105104

106105
test("hands back the address a configured deployment built", () => {
107-
expect(
108-
brokerReturnUrl("https://openbot.test/connections/x"),
109-
).toBe("https://openbot.test/connections/x");
106+
expect(brokerReturnUrl("https://openbot.test/connections/x")).toBe(
107+
"https://openbot.test/connections/x",
108+
);
110109
expect(brokerReturnUrl("http://localhost:3001/admin/plugins/x")).toBe(
111110
"http://localhost:3001/admin/plugins/x",
112111
);

‎server/tests/plugin-oauth-callback.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ const KEY = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
2626

2727
const CALLBACK = "http://t/api/plugins/oauth/callback";
2828

29-
const FAILED =
30-
"https://app.example/connections?connected=failed";
29+
const FAILED = "https://app.example/connections?connected=failed";
3130

3231
function signedIn(): MiddlewareHandler<{ Variables: AppVariables }> {
3332
return async (context, next) => {

‎server/tests/plugin-routes.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,8 +1497,7 @@ const DEV_ACTOR_ACCOUNT: AccountRef = {
14971497
* assertion rather than a call to `connectedAccountsUrlFor`, because an assertion that builds the
14981498
* expected value the way the code does cannot fail when the code's answer changes.
14991499
*/
1500-
const RETURN_URL =
1501-
"http://localhost:3001/connections/composio-linear";
1500+
const RETURN_URL = "http://localhost:3001/connections/composio-linear";
15021501
const ADMIN_RETURN_URL = "http://localhost:3001/admin/plugins/composio-linear";
15031502

15041503
/**

0 commit comments

Comments
 (0)