200bc86
feat(webui): render co-authors on branches/tags
Click to expand commit body
Branches and tags pages now extract and display co-authors
from commit message trailers using the attributionNames
template function. This replicates the existing commits page
behavior, showing "Author, Co1, and Co2 created time" format.
Implements: bug-f5cf6b5
Co-authored-by: Crush <crush@charm.land>
Adds Description field to BaseData and populates it across
all web UI pages (home, about, blob, tree, branches, commits,
tags). Descriptions are derived from:
- Repository descriptions (truncated to 200 chars)
- Server README content (converted to plain text)
- Context-appropriate fallbacks
New helper functions in webui_helpers.go:
- extractPlainTextFromMarkdown: strips markdown formatting
- truncateText: truncates text at word boundaries
- getRepoDescriptionOrFallback: repo desc or fallback
Implements: bug-7b97785
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
541790e
fix(web): add Repo field to AboutData struct
Click to expand commit body
The base.html template checks for .Repo to conditionally render
repository navigation. AboutData was missing this field, causing
template execution to fail with "can't evaluate field Repo".
Adding the nil Repo field allows the {{if .Repo}} check to work
correctly, skipping repository navigation on the about page.
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
ae7f523
feat(web): display co-authors in commit views
Click to expand commit body
Parse Co-authored-by trailers from commit messages and display
all contributors with proper grammar in commit and commits
pages. Authorship now reads "Author and Co-author" for one
co-author or "Author, Co1, Co2, and Co3" for multiple.
Implements: bug-7e8823e
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
186a8fd
feat(web/commit): use name@hash format in title
Click to expand commit body
Change commit page title from 'subject | Commit hash | name'
to 'subject | name@hash' for consistency with git conventions.
Implements: bug-4758ff9
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
5166c27
feat(web/tree): show path and ref in page title
Click to expand commit body
Display 'repo-name/path at ref | Project name' format in tree
view titles for better browser tab/history identification.
Shows shortened commit hash when viewing specific commits.
Implements: bug-45e898a
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
c9c6316
feat: use consistent tooltip pattern for time
Click to expand commit body
Modify the author/time info on the home page to follow the same
tooltip pattern as the commits page, displaying "Updated {time}".
- Change HomeRepository.UpdatedAt from string to time.Time
- Convert timestamps to UTC for consistency
- Clean up tooltip format to show timezone only once
- Remove unused humanize import
Implements: bug-af63a29
Co-Authored-By: Crush <crush@charm.land>
Amolith
and
Crush
created
d7e1cae
feat: add page titles and meta descriptions
Click to expand commit body
Add Title and Description fields to BaseData for proper
HTML title and meta description support. Update base.html
template to use these fields instead of deriving them from
Repo and ServerName.
Implement page-specific titles:
- About: "About | {server name}"
- Home: "{server name}"
- Overview: "{project name or repo}" with description
- Commits: "Commits in {ref} | {project or repo}"
- Commit: "{subject} | Commit {hash} | {project or repo}"
- Tags: "Tags | {project or repo}"
- Branches: "Branches | {project or repo}"
- Files: "Files | {project or repo}"
- Blob: "{filename} | {project or repo}"
Fix shortHash template function to use 7 characters
instead of 8 for consistency with git standards.
Implements: bug-972b30b
Implements: bug-7778d23
Co-Authored-By: Crush <crush@charm.land>
fd7c947
feat: implement CSS cache-busting for web assets
Click to expand commit body
Add version query parameters to CSS URLs to force browsers to fetch
newer versions after edits. This ensures users see updated styles
without manually clearing browser cache.
Changes:
- Add ?v=1 to overrides.css and syntax.css URLs
- Document version increment process in AGENTS.md
Implements: bug-9b0a200
Co-Authored-By: Crush <crush@charm.land>
Improve file content detection and syntax highlighting in the web UI:
- Better MIME type detection for files without extensions
- Content-based markdown detection for extensionless files
- Enhanced lexer selection prioritizing content analysis
- Added Chroma import for improved language detection
Implements: bug-147d490
Co-Authored-By: Crush <crush@charm.land>
Amolith
and
Crush
created
2342d2c
feat(web): add .patch and .diff for commit URLs
Click to expand commit body
Add route handlers to serve raw git patches and diffs when accessing
commit URLs with .patch or .diff extensions. This allows users to
download patches directly using curl and pipe them to git apply.
Implements: bug-d552262
Co-Authored-By: Crush <crush@charm.land>
Amolith
and
Crush
created
79b45b8
refactor(web): extract shared fields from structs
Click to expand commit body
Consolidates common data fields across web UI pages into reusable
BaseData, RepoBaseData, and PaginationData structs to reduce code
duplication and improve maintainability.
Implements: bug-7dfe278
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
4817a77
fix: display full branch names in breadcrumbs
Click to expand commit body
Previously, the breadcrumb navigation would truncate all refs using
shortHash, causing branch names like "generate-promo-codes" to display
as just "generate".
This change adds an IsCommitHash field to template data structures and
updates the templates to conditionally apply shortHash only for actual
commit hashes while showing full names for branches and tags.
Implements: bug-bf0175a
Co-Authored-By: Crush <crush@charm.land>
Amolith
and
Crush
created
ddfef5a
fix: detect MIME type for raw blob responses
Click to expand commit body
Replace hardcoded text/plain content-type with proper MIME type
detection using mime.TypeByExtension and http.DetectContentType
as fallback. Ensures binary files are served with correct types
while maintaining UTF-8 charset for text files.
Fixes: bug-74a99e4
6348c03
fix(tree): don't link current item in breadcrumb navigation
Click to expand commit body
Prevent the last breadcrumb item from being linked when viewing
a directory or file in the tree view. Follows the same pattern
already used in blob.html.
Fixes: bug-d8ce4b4
- Use Atkinson Hyperlegible as sans
- Use 0xProto first, JetBrains Mono second as mono
- Preserve existing Pico CSS fallbacks
Co-Authored-By: Crush <crush@charm.land>
f2c609e
feat: prioritize latest commit time for repo UpdatedAt
Click to expand commit body
Change the order of operations in UpdatedAt() to first try getting
the timestamp from the latest commit before falling back to the
last-modified file. This ensures more accurate update timestamps.
Co-Authored-By: Crush <crush@charm.land>
Amolith
and
Crush
created
15e9e25
chore(deps): bump actions/setup-go from 5 to 6 in the all group (#748)
Click to expand commit body
Bumps the all group with 1 update: [actions/setup-go](https://github.com/actions/setup-go).
Updates `actions/setup-go` from 5 to 6
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: all
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot]
and
dependabot[bot]
created
6856877
feat: add readiness and liveness probes for self healing (#734)
Click to expand commit body
* feat: add k8s readiness and liveness probes
* fix: switch to single err var and add logging
* chore: remove fmt import
The regex solution proposed in #737 is not sufficient.
I've added `--end-of-options` to the relevant commands in https://github.com/aymanbagabas/git-module/pull/1
so this reverts changes made in #737 and update git-module to include that fix.
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Carlos Alexandro Becker
created
a73db1a
test: use a repo that doesn't change as much (#743)
Click to expand commit body
wizard tutorial last commit was 2y ago
catwalk get commits almost daily
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
397288d
fix(ui): help menu on file list view (#719)
Click to expand commit body
* fix(ui): Add additional key function indicators
Add the h and l indications in the help message when
those keys select items from lists.
* fix(ui); Fix action long help on file views
Prior to this commit, the copy command help was not overwritten as
intended, and blame and toggle line number options were shown in help on
the file list view page, but only functioned on the file content view
page.
Eldon
created
52f7a9e
feat(tui): yank the patch/diff to clipboard (#725)