From c7d67960b75dd310310431bfa7916ee0fc35f1ba Mon Sep 17 00:00:00 2001
From: zhenyi <434836402@qq.com>
Date: Sat, 30 May 2026 15:08:10 +0800
Subject: [PATCH] feat: update workspace repo pages (branches, code, commits,
layout, settings, tags)
---
src/page/workspace/repo/branches.tsx | 16 +++++++++---
src/page/workspace/repo/code.tsx | 37 +++++++++++++++++++++-------
src/page/workspace/repo/commits.tsx | 15 ++++++++---
src/page/workspace/repo/layout.tsx | 14 ++++++++---
src/page/workspace/repo/settings.tsx | 12 ++++-----
src/page/workspace/repo/tags.tsx | 14 ++++++++---
6 files changed, 79 insertions(+), 29 deletions(-)
diff --git a/src/page/workspace/repo/branches.tsx b/src/page/workspace/repo/branches.tsx
index 872e76f..da755f5 100644
--- a/src/page/workspace/repo/branches.tsx
+++ b/src/page/workspace/repo/branches.tsx
@@ -94,9 +94,19 @@ export default function BranchesTab() {
{otherBranches.map((b) =>
No branches yet
++ {search ? `No branches matching "${search}"` : "Create a branch to start working on your project."} +
+ {!search && ( + + )}{latestCommit.oid.slice(0, 7)}
+ {latestCommit.oid.slice(0, 7)}
)}
@@ -571,17 +571,36 @@ export default function CodeTab() {
))}
) : currentTreeOid ? (
- Empty directory
+Empty directory
+This directory contains no files.
No content
-- Push a commit to get started +
+ This repository is empty. Push your first commit to get started.
+git push -u origin {selectedBranch}
+
+ {commit.oid.slice(0, 7)}
+ {commit.oid.slice(0, 7)}
No commits found
++ {search ? `No commits match "${search}"` : "Push your first commit to this branch to get started."} +
Repository not found
++ This repository doesn't exist or you don't have permission to view it. +