Commit Graph

42 Commits

Author SHA1 Message Date
erangel1 83d96d0a1e implemented NATS event bus, websocket hub upgrade, and audit log 2026-05-11 19:38:02 +02:00
erangel1 db0f402ab2 implemented agents, readme, and changelog md files for ai-assisted
development.
2026-05-11 19:22:11 +02:00
erangel1 6d5122bc11 fixed yet again... 2026-05-07 23:41:17 +02:00
erangel1 e4364b0c2f fixed problem with '/' causing loading issues with application 2026-05-07 23:33:24 +02:00
erangel1 97a893952f fixed application 2026-05-07 22:57:50 +02:00
erangel1 dc074a5ce7 edited files 2026-05-07 17:49:05 +02:00
erangel1 5486396c91 edited docker compose prod file 2026-05-07 17:41:51 +02:00
erangel1 7354e1309f working state of application 2026-05-07 17:33:50 +02:00
erangel1 0310986644 Backend (prs.go):
Update — PATCH /{prID} edits title and/or body, validates title non-empty, returns prWithReviewers
Reopen — POST /{prID}/reopen transitions closed → open, fires webhook
Close now returns prWithReviewers and fires a webhook
Merge already existed; no changes needed
Frontend — PRDetailPage.tsx full rewrite:

Inline title editing — pencil icon (visible to author/admin when open), Enter to save, Esc to cancel
Inline body editing — same pattern in the description panel
Merge sidebar — radio buttons for allowed strategies (fetched from repo's merge strategy settings), "Merge pull request" button in Bitbucket purple, "Close without merging" below it
Status banner — merged (purple) or closed (grey) with the date, shown below the description
File list — scrollable +N −N table above the diff viewer showing all changed files with addition/deletion counts
Reopen button — appears in the sidebar when the PR is closed
Reviewers panel — lists assigned reviewers with avatars/initials
Details panel — from/into branches, opened date, last updated
Quick links — back to all PRs, open new PR
PRsPage.tsx — now shows real data:

Two tabs: "My pull requests" and "Awaiting my review" (with live counts from dashboard)
Per-repo quick links at the bottom showing open PR count badges
2026-05-07 17:07:16 +02:00
erangel1 7436679eac Backend — GET /api/v1/dashboard (single authenticated request):
Aggregates repos, open PRs, review queue, open issues server-side
Per-repo PR and issue counts computed in one pass
Review queue pulls PRs where the user is an assigned reviewer (from pr_reviewers table), excluding their own PRs
Frontend — complete redesign of DashboardPage.tsx:

Section	What it shows
Stats bar	Repo count · My PRs · Reviews awaiting · Open issues — each a clickable nav pill
⌘K Command palette	Fuzzy search across repos, PRs, issues with keyboard nav (↑↓ / Enter / Esc), quick-nav shortcuts when empty
Needs attention	Only appears when review queue is non-empty; badges each PR as "Review requested"
My pull requests	Open PRs I authored, with source→target branch, repo context, relative timestamp
My open issues	Issues I filed, linked to the repo issue list
Workspaces	My repos, prioritising recently visited (from useRecentRepos), with PR/issue count badges
CI/CD	Honest placeholder until pipeline integration lands
Quick actions	New repo · Import · Explore · Settings — always one click away
Empty state	Shows only when user has zero repos
2026-05-07 16:36:45 +02:00
erangel1 b624337b4a Debounced search bar — queries update 300ms after typing stops, clears with ✕ button
Repositories tab — lists all public repos as cards with owner/name link, description, default branch chip, last-updated time; sort by recently updated / newest / name A–Z; prev/next pagination
Users tab — grid of user cards with avatar/initials, username, join date; pagination
Skeleton loaders while fetching, opacity fade during page transitions
All state (tab, sort, query) reflected in the URL so links are shareable
2026-05-07 16:21:35 +02:00
erangel1 803672a610 Git LFS section is live with:
Enable LFS toggle — turns LFS on/off for the repo; all other controls dim when disabled
File locking toggle — enables the LFS locking protocol for binary assets
Maximum file size — optional per-file size cap in MB (blank = unlimited)
Info callout linking to the git-lfs client install page and noting the .gitattributes requirement
2026-05-07 16:12:25 +02:00
erangel1 39eeccb314 Backend:
Fixed the undefined: prWithReviewers compile error — added prResponse struct and prWithReviewers helper in prs.go, and updated Get to return reviewers alongside the PR
Registered PRSettingsHandler in router.go with routes for /default-reviewers, /default-description, and /excluded-files under /{owner}/{repo}
Frontend (prs.ts):

useDefaultReviewers / useAddDefaultReviewer / useRemoveDefaultReviewer
useDefaultDescription / useUpdateDefaultDescription
useExcludedFiles / useUpdateExcludedFiles
RepoSettingsPage.tsx — three new fully functional sections:

Default reviewers — avatar list with add/remove, auto-assigned on PR creation
Default description — Markdown textarea pre-fills new PR bodies
Excluded files — glob patterns textarea, excludes matched files from PR diffs
2026-05-07 16:05:07 +02:00
erangel1 3b1368e16d initial completion 2026-05-07 15:51:38 +02:00
erangel1 f211cfc7db Branch restrictions — fully enforced:
CRUD rules with pattern (exact or glob like release/*), requirePR, blockForcePush, bypass user list
Enforcement via pkt-line parsing inside the git HTTP handler — before any data reaches git http-backend, each ref update is extracted and checked against stored rules
Direct push to main with requirePR: true → 403 with message; push to unprotected branches still works
Inline checkboxes in the UI update rules immediately
Branching model — stored config:

GET/PUT per repo, defaults to feature/bugfix/release/hotfix prefixes
Toggle enabled/disabled, custom prefix per type with live preview
No enforcement (naming guide only, as Bitbucket does)
Merge strategies — enforced in PR merge endpoint:

GET/PUT per repo, defaults all three allowed
Merge handler now accepts strategy: "merge"|"squash"|"rebase" in request body, checks against stored policy
Disallowed strategy → 409 with clear error; allowed strategy → merges and fires pull_request webhook
Must have at least one strategy enabled (validated server-side)
Webhooks — full delivery with HMAC:

CRUD with title, URL, secret (optional), events (push/pull_request/issue), active toggle
Test button sends live HTTP POST to the configured URL and shows status code in UI
FireWebhooks() fires asynchronously from PR merge and can be called from any handler
X-ForgeBucket-Signature-256: sha256=<hmac> header when secret is set
Last delivery status and timestamp stored on webhook record and shown in list
2026-05-07 15:27:48 +02:00
erangel1 53aa5cbbf5 security sections are fully functional 2026-05-07 15:06:45 +02:00
erangel1 5e60b814ed repo permissions section is not functional 2026-05-07 14:49:47 +02:00
erangel1 8cb918b064 darkmode is now available 2026-05-07 13:42:46 +02:00
erangel1 ec309eb626 repo details page working completely 2026-05-07 13:26:11 +02:00
erangel1 12bcf59bc9 repo details page mostly working 2026-05-07 13:04:13 +02:00
erangel1 00aede9c91 changed layout of repo settings page 2026-05-07 12:32:07 +02:00
erangel1 39dd9ab9eb can now import repos and have more settings for creating new ones. 2026-05-07 12:16:58 +02:00
erangel1 dad82a79de readme file is now rendering in repo. can now view files and edit them. can switch between branches with dropdown menu 2026-05-07 11:28:06 +02:00
erangel1 779a1fdb82 overhaul complete 2026-05-07 11:02:34 +02:00
erangel1 d860d78543 test commit 2026-05-07 10:34:19 +02:00
erangel1 9ad2672a66 init commit 2026-05-07 10:27:16 +02:00
erangel1 dea186c995 making progress 2026-05-07 02:06:54 +02:00
erangel1 7b7e2d399c phase 3 completed 2026-05-07 01:33:58 +02:00
erangel1 44359c1bb0 phase 3 bug repositories fixes 2026-05-07 01:15:32 +02:00
erangel1 200c4f43ea phase 3 bug fixing 2026-05-07 00:55:46 +02:00
erangel1 ce2aa2c776 phase 3 initial completion 2026-05-07 00:22:45 +02:00
erangel1 5d8662595c phase 2 testing complete 2026-05-07 00:09:50 +02:00
erangel1 57991e5406 phase 2 initial test 2026-05-06 23:39:04 +02:00
erangel1 8592fc5d65 phase 1 complete 2026-05-06 23:26:14 +02:00
erangel1 20c60307ba phase 1 complete 2026-05-06 23:23:36 +02:00
erangel1 def67b14e4 idk 2026-05-06 23:21:43 +02:00
erangel1 1634c4cc0d more files 2026-05-06 23:19:35 +02:00
erangel1 563f82d497 adding vite files and others 2026-05-06 23:14:52 +02:00
erangel1 fd16075306 added claude.md file 2026-05-06 23:13:46 +02:00
erangel1 2aa5d01307 first round of files 2026-05-06 23:13:06 +02:00
erangel1 a30962474d Rename READEME.md 2026-05-06 20:57:42 +00:00
erangel1 00f1b5fab7 readme and license file 2026-05-06 22:56:39 +02:00