Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
771c6f5245 | ||
|
|
5fc405d86a |
No files matched your search
@@ -3,6 +3,12 @@
|
|||||||
All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/);
|
All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/);
|
||||||
until 1.0, minor versions may contain breaking changes.
|
until 1.0, minor versions may contain breaking changes.
|
||||||
|
|
||||||
|
## [v202611-00059] – 2026-11-17
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- **Collapsible chat list** on wide screens: the menu button in the title bar folds the chat list away (remembered), so chat menus are no longer hidden behind it on small monitors.
|
||||||
|
|
||||||
## [v202611-00058] – 2026-11-17
|
## [v202611-00058] – 2026-11-17
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img alt="Version v202611-00058" src="https://img.shields.io/badge/version-v202611--00058-d69e2e?style=flat-square">
|
<img alt="Version v202611-00059" src="https://img.shields.io/badge/version-v202611--00059-d69e2e?style=flat-square">
|
||||||
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-689d6a?style=flat-square">
|
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-689d6a?style=flat-square">
|
||||||
<img alt="Rust backend" src="https://img.shields.io/badge/backend-Rust-b7410e?style=flat-square&logo=rust">
|
<img alt="Rust backend" src="https://img.shields.io/badge/backend-Rust-b7410e?style=flat-square&logo=rust">
|
||||||
<img alt="React PWA" src="https://img.shields.io/badge/frontend-React%20PWA-2d81ff?style=flat-square&logo=react">
|
<img alt="React PWA" src="https://img.shields.io/badge/frontend-React%20PWA-2d81ff?style=flat-square&logo=react">
|
||||||
|
|||||||
+30
-13
@@ -36,6 +36,23 @@ export function App() {
|
|||||||
const [info, setInfo] = useState<Info>();
|
const [info, setInfo] = useState<Info>();
|
||||||
const [error, setError] = useState<string>();
|
const [error, setError] = useState<string>();
|
||||||
const [menuOpen, setMenuOpen] = useState(false);
|
const [menuOpen, setMenuOpen] = useState(false);
|
||||||
|
// Wide screens: the chat list can be folded away (remembered); narrow screens use the slide-in drawer.
|
||||||
|
const [folded, setFolded] = useState(() => {
|
||||||
|
try {
|
||||||
|
return localStorage.getItem("codecraft.sidebarFolded") === "1";
|
||||||
|
} catch {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const openMenu = () => {
|
||||||
|
if (window.matchMedia("(max-width: 800px)").matches) return setMenuOpen(true);
|
||||||
|
setFolded((f) => {
|
||||||
|
try {
|
||||||
|
localStorage.setItem("codecraft.sidebarFolded", f ? "0" : "1");
|
||||||
|
} catch {}
|
||||||
|
return !f;
|
||||||
|
});
|
||||||
|
};
|
||||||
const [shared, setShared] = useState(pendingShare);
|
const [shared, setShared] = useState(pendingShare);
|
||||||
const offline = useStore((s) => s.offline);
|
const offline = useStore((s) => s.offline);
|
||||||
useTitleActivity();
|
useTitleActivity();
|
||||||
@@ -98,40 +115,40 @@ export function App() {
|
|||||||
const [section, arg] = route;
|
const [section, arg] = route;
|
||||||
let content;
|
let content;
|
||||||
const chatIds = section === "s" && arg ? arg.split("+").filter(Boolean).slice(0, MAX_PANES) : [];
|
const chatIds = section === "s" && arg ? arg.split("+").filter(Boolean).slice(0, MAX_PANES) : [];
|
||||||
if (chatIds.length === 1) content = <ChatView key={chatIds[0]} sessionId={chatIds[0]} onMenu={() => setMenuOpen(true)} />;
|
if (chatIds.length === 1) content = <ChatView key={chatIds[0]} sessionId={chatIds[0]} onMenu={openMenu} />;
|
||||||
else if (chatIds.length > 1)
|
else if (chatIds.length > 1)
|
||||||
content = (
|
content = (
|
||||||
<div className="split-view">
|
<div className="split-view">
|
||||||
{chatIds.map((id) => (
|
{chatIds.map((id) => (
|
||||||
<div key={id} className="split-pane">
|
<div key={id} className="split-pane">
|
||||||
<ChatView sessionId={id} onMenu={() => setMenuOpen(true)} onClosePane={() => closePane(id)} />
|
<ChatView sessionId={id} onMenu={openMenu} onClosePane={() => closePane(id)} />
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
else if (section === "settings") content = <Settings tab={arg} onMenu={() => setMenuOpen(true)} />;
|
else if (section === "settings") content = <Settings tab={arg} onMenu={openMenu} />;
|
||||||
else if (section === "p" && arg) content = <ProjectPage key={arg} cwd={decodeURIComponent(arg)} onMenu={() => setMenuOpen(true)} />;
|
else if (section === "p" && arg) content = <ProjectPage key={arg} cwd={decodeURIComponent(arg)} onMenu={openMenu} />;
|
||||||
else if (section === "factory") content = <Factory onMenu={() => setMenuOpen(true)} />;
|
else if (section === "factory") content = <Factory onMenu={openMenu} />;
|
||||||
else if (section === "stats") content = <Stats onMenu={() => setMenuOpen(true)} />;
|
else if (section === "stats") content = <Stats onMenu={openMenu} />;
|
||||||
else if (section === "images") content = <Images onMenu={() => setMenuOpen(true)} />;
|
else if (section === "images") content = <Images onMenu={openMenu} />;
|
||||||
else if (section === "jobs" && arg) content = <JobEditor key={arg} id={arg} onMenu={() => setMenuOpen(true)} />;
|
else if (section === "jobs" && arg) content = <JobEditor key={arg} id={arg} onMenu={openMenu} />;
|
||||||
else if (section === "jobs") content = <Jobs onMenu={() => setMenuOpen(true)} />;
|
else if (section === "jobs") content = <Jobs onMenu={openMenu} />;
|
||||||
else if (section === "terminal")
|
else if (section === "terminal")
|
||||||
content = (
|
content = (
|
||||||
<Suspense fallback={<div className="empty"><Spinner /></div>}>
|
<Suspense fallback={<div className="empty"><Spinner /></div>}>
|
||||||
<TerminalPage id={arg} onMenu={() => setMenuOpen(true)} />
|
<TerminalPage id={arg} onMenu={openMenu} />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
);
|
);
|
||||||
else if (section === "files")
|
else if (section === "files")
|
||||||
content = (
|
content = (
|
||||||
<Suspense fallback={<div className="empty"><Spinner /></div>}>
|
<Suspense fallback={<div className="empty"><Spinner /></div>}>
|
||||||
<Files onMenu={() => setMenuOpen(true)} />
|
<Files onMenu={openMenu} />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
);
|
);
|
||||||
else content = <NewSession onMenu={() => setMenuOpen(true)} onCreated={(id) => navigate(`/s/${id}`)} />;
|
else content = <NewSession onMenu={openMenu} onCreated={(id) => navigate(`/s/${id}`)} />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="app">
|
<div className={`app ${folded ? "side-folded" : ""}`}>
|
||||||
{menuOpen && <div className="backdrop" onClick={() => setMenuOpen(false)} />}
|
{menuOpen && <div className="backdrop" onClick={() => setMenuOpen(false)} />}
|
||||||
<Sidebar open={menuOpen} activeIds={chatIds} section={section ?? ""} />
|
<Sidebar open={menuOpen} activeIds={chatIds} section={section ?? ""} />
|
||||||
<main className="main">
|
<main className="main">
|
||||||
|
|||||||
+4
-2
@@ -477,8 +477,10 @@ button.session-group:hover {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.menu-btn {
|
@media (min-width: 801px) {
|
||||||
display: none;
|
.app.side-folded .sidebar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.chip {
|
.chip {
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
* under "unreleased"; scripts/release.sh renames the key to the release version.
|
* under "unreleased"; scripts/release.sh renames the key to the release version.
|
||||||
*/
|
*/
|
||||||
export const WHATS_NEW: Record<string, { en: string[]; de: string[] }> = {
|
export const WHATS_NEW: Record<string, { en: string[]; de: string[] }> = {
|
||||||
|
"202611-00059": {
|
||||||
|
en: ["The chat list can be folded away on wide screens (menu button in the title bar)"],
|
||||||
|
de: ["Die Chatliste lässt sich auf breiten Bildschirmen zuklappen (Menü-Button in der Titelleiste)"],
|
||||||
|
},
|
||||||
"202611-00058": {
|
"202611-00058": {
|
||||||
en: ["README and screenshots updated"],
|
en: ["README and screenshots updated"],
|
||||||
de: ["README und Screenshots aktualisiert"],
|
de: ["README und Screenshots aktualisiert"],
|
||||||
|
|||||||
Reference in new issue
Block a user