chore: rebrand project to crank

This commit is contained in:
a.tolmachev
2026-03-28 00:58:56 +03:00
parent 6821d0c64a
commit 26335e8d9b
101 changed files with 550 additions and 538 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RMCP Console</title>
<title>Crank Console</title>
</head>
<body>
<div id="root"></div>
+2 -2
View File
@@ -1,11 +1,11 @@
{
"name": "rmcp-ui",
"name": "crank-ui",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "rmcp-ui",
"name": "crank-ui",
"version": "0.1.0",
"dependencies": {
"@hookform/resolvers": "^5.2.2",
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "rmcp-ui",
"name": "crank-ui",
"private": true,
"version": "0.1.0",
"type": "module",
@@ -8,7 +8,7 @@ describe("buildOperationPayload", () => {
...defaultOperationFormValues,
restStaticHeadersText: JSON.stringify(
{
"x-app-source": "rmcp",
"x-app-source": "crank",
},
null,
2,
@@ -26,7 +26,7 @@ describe("buildOperationPayload", () => {
expect(payload.target.kind).toBe("rest");
expect(payload.target.method).toBe("POST");
expect(payload.target.static_headers).toEqual({
"x-app-source": "rmcp",
"x-app-source": "crank",
});
expect(payload.execution_config.headers).toEqual({
"x-trace-id": "trace-123",
+1 -1
View File
@@ -1,5 +1,5 @@
import { OperationForm } from "../../features/operation-form/operation-form";
export function OperationCreatePage() {
return <OperationForm actionBarContainerId="app-main-content" />;
return <OperationForm actionBarContainerId="app-layout-main" />;
}
+8 -6
View File
@@ -51,7 +51,7 @@ export function AppShell({ children }: AppShellProps) {
</svg>
</div>
<div className="logo-text">
<strong>MCPaaS</strong>
<strong>Crank</strong>
<span>Tool Console</span>
</div>
</div>
@@ -107,7 +107,7 @@ export function AppShell({ children }: AppShellProps) {
</div>
</aside>
<div className="layout-main">
<div className="layout-main" id="app-layout-main">
<header className="topbar">
<div className="breadcrumb">
<span>{meta.section}</span>
@@ -122,11 +122,13 @@ export function AppShell({ children }: AppShellProps) {
</header>
<main className="main-content" id="app-main-content">
<div className="page-header">
<h1>{meta.heading}</h1>
<p>{meta.subtitle}</p>
<div className="main-content-inner">
<div className="page-header">
<h1>{meta.heading}</h1>
<p>{meta.subtitle}</p>
</div>
{children}
</div>
{children}
</main>
</div>
</div>
+20 -13
View File
@@ -318,9 +318,15 @@ button {
.main-content {
width: 100%;
max-width: 1480px;
padding: 28px;
margin: 0 auto;
flex: 1;
display: flex;
flex-direction: column;
}
.main-content-inner {
flex: 1;
padding: 28px;
}
.page-header {
@@ -872,9 +878,6 @@ button {
align-items: center;
justify-content: space-between;
gap: 16px;
width: calc(100% + 56px);
margin-left: -28px;
margin-right: -28px;
padding: 12px 28px;
border-radius: 0;
background: rgba(255, 255, 255, 0.9);
@@ -1126,10 +1129,14 @@ pre {
padding: 0 20px;
}
.main-content {
.main-content-inner {
padding: 20px;
}
.sticky-action-bar {
padding-inline: 20px;
}
.builder-content {
max-width: none;
}
@@ -1154,18 +1161,18 @@ pre {
grid-template-columns: 1fr;
}
.main-content-inner {
padding: 16px;
}
.sticky-action-bar {
padding-inline: 16px;
}
.builder-card-header,
.builder-card-body,
.page-section {
padding-left: 16px;
padding-right: 16px;
}
.sticky-action-bar {
width: calc(100% + 32px);
margin-left: -16px;
margin-right: -16px;
padding-left: 16px;
padding-right: 16px;
}
}