Skip to content

Commit

Permalink
rename connectedServices to integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
ciyer committed Feb 4, 2025
1 parent 2f9fb33 commit af33b92
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/src/components/navbar/NavBarItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export function RenkuToolbarItemUser({
{isV2 && (
<>
<Link
to={ABSOLUTE_ROUTES.v2.connectedServices}
to={ABSOLUTE_ROUTES.v2.integrations}
className="dropdown-item"
>
Integrations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ function RepositoryPermissionsAlert({
<p className={cx("mt-1", "mb-0", "fst-italic")}>
Your user account is not currently connected to{" "}
{provider.display_name}. See{" "}
<Link to={ABSOLUTE_ROUTES.v2.connectedServices}>
<Link to={ABSOLUTE_ROUTES.v2.integrations}>
connected services
</Link>
.
Expand All @@ -819,7 +819,7 @@ function RepositoryPermissionsAlert({
<p className={cx("mt-1", "mb-0", "fst-italic")}>
Your user account is not currently connected to{" "}
{provider.display_name}. See{" "}
<Link to={ABSOLUTE_ROUTES.v2.connectedServices}>
<Link to={ABSOLUTE_ROUTES.v2.integrations}>
connected services
</Link>
.
Expand Down
2 changes: 1 addition & 1 deletion client/src/features/rootV2/RootV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default function RootV2() {
}
/>
<Route
path={RELATIVE_ROUTES.v2.connectedServices}
path={RELATIVE_ROUTES.v2.integrations}
element={
<ContainerWrap>
<LazyConnectedServicesPage />
Expand Down
4 changes: 2 additions & 2 deletions client/src/routing/routes.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const ABSOLUTE_ROUTES = {
},
v2: {
root: "/",
connectedServices: "/connected-services",
integrations: "/integrations",
groups: {
show: {
root: "/g/:slug",
Expand Down Expand Up @@ -103,7 +103,7 @@ export const RELATIVE_ROUTES = {
},
v2: {
root: "/*",
connectedServices: "connected-services",
integrations: "integrations",
groups: {
root: "g/*",
new: "new",
Expand Down
8 changes: 4 additions & 4 deletions tests/cypress/e2e/connectedServicesV2.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("Interact with Connected services", () => {
});

it("Shows an empty page when no services are available", () => {
cy.visit("/connected-services");
cy.visit("/integrations");
cy.getDataCy("connected-services-page").should(
"contain.text",
"There are currently no external services"
Expand All @@ -36,7 +36,7 @@ describe("Interact with Connected services", () => {

it("Connect GitHub user", () => {
fixtures.listConnectedServicesProviders();
cy.visit("/connected-services");
cy.visit("/integrations");
cy.getDataCy("connected-services-card").should("have.length", 2);
cy.getDataCy("connected-services-card").contains("GitHub.com");
cy.getDataCy("connected-services-card")
Expand All @@ -49,7 +49,7 @@ describe("Interact with Connected services", () => {
// ? Instead of clicking the Connect link, we just load the connection.
fixtures.listConnectedServicesConnections();
cy.reload();
cy.visit("/connected-services");
cy.visit("/integrations");
cy.getDataCy("connected-services-card")
.filter(`:contains("GitHub.com")`)
.contains("Connected");
Expand All @@ -64,7 +64,7 @@ describe("Interact with Connected services", () => {
.listConnectedServicesConnections()
.listConnectedServicesAccount()
.listConnectedServicesInstallations({ empty: true });
cy.visit("/connected-services");
cy.visit("/integrations");

cy.getDataCy("connected-services-card")
.should("contain", "@my-github-user")
Expand Down

0 comments on commit af33b92

Please sign in to comment.