From 4d141e86130a3feffc3f1d1054f45332c8f14ceb Mon Sep 17 00:00:00 2001 From: dawn <90008@gaze.systems> Date: Sat, 30 May 2026 21:32:23 +0300 Subject: [PATCH] new repo --- public/oauth-client-metadata.json | 2 +- src/index.css | 61 ++++++ src/layout.tsx | 6 +- src/lib/api/repos.ts | 111 ++++++++++- src/pages/repo.tsx | 1 + src/pages/repo/new.tsx | 313 ++++++++++++++++++++++++++++++ src/routes.tsx | 2 + 7 files changed, 493 insertions(+), 3 deletions(-) create mode 100644 src/pages/repo/new.tsx diff --git a/public/oauth-client-metadata.json b/public/oauth-client-metadata.json index c5e5174..427bb36 100644 --- a/public/oauth-client-metadata.json +++ b/public/oauth-client-metadata.json @@ -3,7 +3,7 @@ "client_name": "untangled", "client_uri": "https://untangled.wisp.place", "redirect_uris": ["https://untangled.wisp.place/oauth/callback"], - "scope": "atproto repo:sh.tangled.actor.profile repo:sh.tangled.repo.issue repo:sh.tangled.repo.issue.comment repo:sh.tangled.repo.issue.state repo:sh.tangled.repo.pull repo:sh.tangled.repo.pull.comment repo:sh.tangled.repo.pull.status rpc:sh.tangled.repo.merge?aud=* rpc:sh.tangled.repo.hiddenRef?aud=* repo:sh.tangled.feed.comment repo:sh.tangled.string repo:sh.tangled.feed.star blob:*/*", + "scope": "atproto repo:sh.tangled.actor.profile repo:sh.tangled.repo repo:sh.tangled.repo.issue repo:sh.tangled.repo.issue.comment repo:sh.tangled.repo.issue.state repo:sh.tangled.repo.pull repo:sh.tangled.repo.pull.comment repo:sh.tangled.repo.pull.status rpc:sh.tangled.repo.merge?aud=* rpc:sh.tangled.repo.hiddenRef?aud=* rpc:sh.tangled.repo.create?aud=* repo:sh.tangled.feed.comment repo:sh.tangled.string repo:sh.tangled.feed.star blob:*/*", "grant_types": ["authorization_code", "refresh_token"], "response_types": ["code"], "token_endpoint_auth_method": "none", diff --git a/src/index.css b/src/index.css index 9feec65..438d8df 100644 --- a/src/index.css +++ b/src/index.css @@ -3812,4 +3812,65 @@ details[open] > .untangled-language-bar { } } +/* Timeline Step styling */ +.untangled-timeline-step { + position: relative; + padding-left: 2.25rem; +} + +.untangled-timeline-step::before { + content: ''; + position: absolute; + left: 12px; + width: 1px; + background-color: #e5e7eb; /* gray-200 */ +} + +@media (prefers-color-scheme: dark) { + .untangled-timeline-step::before { + background-color: #374151; /* gray-700 */ + } +} + +.untangled-timeline-step-1::before { + top: 16px; + bottom: 0; +} + +.untangled-timeline-step-2::before { + top: 0; + height: 16px; +} + +.untangled-timeline-circle { + position: absolute; + left: 0; + top: 4px; + width: 25px; + height: 25px; + display: flex; + align-items: center; + justify-content: center; +} + +.untangled-timeline-circle-inner { + width: 25px; + height: 25px; + border-radius: 9999px; + display: flex; + align-items: center; + justify-content: center; + font-size: 0.875rem; /* text-sm */ + font-weight: 500; /* font-medium */ + background-color: #e5e7eb; /* bg-gray-200 */ + color: #1f2937; /* text-gray-800 */ +} + +@media (prefers-color-scheme: dark) { + .untangled-timeline-circle-inner { + background-color: #4b5563; /* bg-gray-600 */ + color: #f3f4f6; /* text-gray-100 */ + } +} + diff --git a/src/layout.tsx b/src/layout.tsx index 370ebad..f0871fd 100644 --- a/src/layout.tsx +++ b/src/layout.tsx @@ -1,5 +1,5 @@ import clsx from 'clsx'; -import { Bell, BookMarked, LogOut, RotateCcw, Save, Search, Settings, UserRound, Plus, LineSquiggle } from 'lucide-solid'; +import { Bell, BookMarked, LogOut, RotateCcw, Save, Search, Settings, UserRound, Plus, LineSquiggle, BookPlus } from 'lucide-solid'; import { A, useLocation, useNavigate } from '@solidjs/router'; import { createQuery, useQueryClient } from '@tanstack/solid-query'; import { For, Show, createEffect, createSignal, onCleanup, onMount, type Component, type JSX } from 'solid-js'; @@ -311,6 +311,10 @@ const NewMenu: Component = () => {
+ + ); +}; diff --git a/src/routes.tsx b/src/routes.tsx index 6421e88..52611dd 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -10,6 +10,7 @@ import { IssuesPage, NewIssuePage, NewPullPage, + NewRepoPage, PullPage, PullsPage, RepoCodePage, @@ -31,6 +32,7 @@ export const AppRoutes: Component = () => (