130b25f
fix(webui): move script to file because csp
Amolith created
130b25f
fix(webui): move script to file because csp
Amolith created
b4fd058
feat(webui): allow data URIs in img-src CSP
Assisted-by: Claude Sonnet 4.5 via Crush
Amolith created
96aa9e0
feat(webui): allow details and summary tags
The Markdown sanitizer now preserves <details> and <summary> tags, enabling collapsible sections in README files and blob views. Added test coverage to verify these tags are properly preserved through the sanitization process. Closes: bug-f881844 Assisted-by: Claude Sonnet 4.5 via Crush
Amolith created
6a6fb6d
feat(webui): rewrite README links without proxy
Implement rendering of images and links in README files without requiring an image proxy. Relative URLs are rewritten to point to repository files pinned to specific commits. Relative images and files are served through the blob endpoint with ?raw=1 query parameter. Links to markdown files render the formatted view, while other files download raw. Directory links go to tree view. Assisted-by: Claude Sonnet 4.5 via Crush
Amolith created
7e09bac
feat(webui): add individual tag detail pages
Implement /{repo}/tag/{tag} route displaying tag metadata including
name, authorship, creation date, optional annotation message, and links
to file tree and commit.
Tag dates use tagger date for annotated tags, falling back to commit
author date for lightweight tags, matching the tags list behavior for
consistency.
Implements: a0daef3
Assisted-by: Claude Sonnet 4.5 via Crush
Amolith created
6599dca
feat(webui): add patch/diff links on commit page
Implements: bug-05a795c Co-authored-by: Crush <crush@charm.land>
Amolith and Crush created
20e60e0
chore(crush): yeet mcp
Amolith created
7930397
feat(webui): preload css, syntax is only for blobs
Implements: bug-0fb4c59 Co-authored-by: Crush <crush@charm.land>
Amolith and Crush created
200bc86
feat(webui): render co-authors on branches/tags
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>
Amolith and Crush created
853bdb5
feat(webui): add og tags
Amolith created
61090b0
feat(web): add meta descriptions to pages
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
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
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
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
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
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
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>
Amolith and Crush created
1ebefd0
chore: web UI polish
Fixes: bug-45aeed6 Co-authored-by: Crush <crush@charm.land>
Amolith and Crush created
79c4873
chore: improve web UI styling
Amolith created
fd7c947
feat: implement CSS cache-busting for web assets
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>
Amolith and Crush created
1dfa7a8
feat(blob): better content-type detection
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
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
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
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
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
Amolith created
083677b
feat: add anchor links to file headings
Fixes: bug-dddb40e Co-Authored-By: Crush <crush@charm.land>
Amolith and Crush created
6348c03
fix(tree): don't link current item in breadcrumb navigation
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
Amolith created
a467f13
feat: link to my fork REMOVE ME BEFORE PR
Amolith created
94ab050
feat: prefer custom fonts
- 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>
Amolith and Crush created
26373c2
feat: introduce Pico ✨
Amolith created
5cdf68f
feat: introduce web UI
Co-Authored-By: Crush <crush@charm.land>
Amolith and Crush created
1000be7
chore: ignore built binary
Amolith created
50fb10a
docs: add AGENTS.md
Co-Authored-By: Crush <crush@charm.land>
Amolith and Crush created
b6a7f28
chore: add justfile
Amolith created
bcee695
feat: add crush config
Co-Authored-By: Crush <crush@charm.land>
Amolith and Crush created
f2c609e
feat: prioritize latest commit time for repo UpdatedAt
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)
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)
* feat: add k8s readiness and liveness probes * fix: switch to single err var and add logging * chore: remove fmt import
Jay Madden created
5c8639b
chore(deps): update all deps (#746)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Carlos Alexandro Becker created
8e52267
chore(deps): bump github.com/sergi/go-diff (#729)
Bumps [github.com/sergi/go-diff](https://github.com/sergi/go-diff) from 1.3.2-0.20230802210424-5b0b94c5c0d3 to 1.4.0. - [Commits](https://github.com/sergi/go-diff/commits/v1.4.0) --- updated-dependencies: - dependency-name: github.com/sergi/go-diff dependency-version: 1.4.0 dependency-type: direct:production update-type: version-update:semver-minor ... 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
bec9fb3
chore(deps): bump github.com/prometheus/client_golang (#739)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.22.0 to 1.23.0. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.22.0...v1.23.0) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-version: 1.23.0 dependency-type: direct:production update-type: version-update:semver-minor ... 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
e5edfd5
sec: update git-module (#742)
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)
wizard tutorial last commit was 2y ago catwalk get commits almost daily Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Carlos Alexandro Becker created
5d9034c
ci: sync dependabot config (#741)
Charm created
76a71ef
chore(deps): bump actions/checkout from 4 to 5 (#735)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... 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
5a2bde5
fix: check that commit is a SHA1 (#737)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Carlos Alexandro Becker created
68e6304
chore(deps): bump github.com/alecthomas/chroma/v2 from 2.19.0 to 2.20.0 (#730)
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma) from 2.19.0 to 2.20.0. - [Release notes](https://github.com/alecthomas/chroma/releases) - [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml) - [Commits](https://github.com/alecthomas/chroma/compare/v2.19.0...v2.20.0) --- updated-dependencies: - dependency-name: github.com/alecthomas/chroma/v2 dependency-version: 2.20.0 dependency-type: direct:production update-type: version-update:semver-minor ... 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
efa8c06
chore(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.2 to 5.3.0 (#731)
Bumps [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt) from 5.2.2 to 5.3.0. - [Release notes](https://github.com/golang-jwt/jwt/releases) - [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md) - [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.2...v5.3.0) --- updated-dependencies: - dependency-name: github.com/golang-jwt/jwt/v5 dependency-version: 5.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... 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
fa175c7
fix: repo commit help (#736)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Carlos Alexandro Becker created
de888b9
test: fix golden files
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Carlos Alexandro Becker created