aa5abfc
feat(web): add description meta to bug pages
Click to expand commit body
Add proper description metadata to bug listing and individual bug pages
for better SEO and page information. Bug list uses repo description or
fallback, individual bug pages use truncated bug message.
Implements: bug-8d2588d
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
597dec9
feat(web): show dynamic status in bugs list
Click to expand commit body
Bugs list now displays "Closed" or "Reopened" instead of
generic "Updated" when the last event was a status change.
Other events (comments, title changes, label changes) still
show "Updated".
Implements: bug-f3568dc
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
54b8193
fix(web/bugs): trim separator leading whitespace
22306bd
feat(web/bugs): show previous title in changes
Click to expand commit body
Title change events now display both the old title
(strikethrough) and new title (underline) using semantic
HTML tags (<del> and <ins>), providing better context for
how bug titles have evolved over time.
Implements: bug-ef59d5b
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
2ed67c2
fix: pluralize comment count in bug listing
Click to expand commit body
Display '1 comment' instead of '1 comments' when a bug has
exactly one comment.
Implements: bug-224db6f
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
1cf679d
feat(web/bugs): use styled spans for label
Click to expand commit body
events
Display labels in bug timeline label change
events with the bug-label CSS class and
--label-color custom property instead of plain
code tags, ensuring consistent visual styling
across all label displays.
Implements: bug-f4f7a02
Co-authored-by: Crush <crush@charm.land>
Add label rendering to bug list items matching the
individual bug page styling. Include 'Labels:' prefix on
bug detail page for clarity.
Implements: bug-4a60415
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
ce7061a
feat: add page titles and meta for bug pages
Click to expand commit body
Refactor BugsData and BugData to use embedded
RepoBaseData and PaginationData structs. Set
appropriate page titles: "Bugs | {repo}" for bug
list and "{title} | Bug {id} | {repo}" for
individual bugs. Rename Title field to Subject in
BugData to match git-bug terminology.
Implements: bug-87f9da5
Co-Authored-By: Crush <crush@charm.land>
Amolith
and
Crush
created
3a0483e
refactor: reword bugs list author/date format
Click to expand commit body
Change the bugs list display from "Opened {time} by {user}" to
"{user} opened {time}" format for better readability and more
natural language flow.
Implements: bug-ad8cdc0
Co-authored-by: Crush <crush@charm.land>
Amolith
and
Crush
created
e102ac4
feat: display git-bug identity avatars in web UI
Click to expand commit body
Add avatar display functionality to the bug tracking interface.
Integrates with git-bug's AvatarUrl() method to fetch and render
identity avatars safely in both bugs list and detail views.
- Add AuthorAvatar fields to BugListItem and TimelineItem structs
- Fetch avatar URLs using snap.Author.AvatarUrl() in backend
- Create responsive avatar CSS styling with fallbacks
- Update templates to display avatars before usernames
- Implement lazy loading and referrer policies for security
Implements: bug-d42c94f
Co-Authored-By: Crush <crush@charm.land>
Remove unnecessary 16-bit to 8-bit channel conversion in
labelToWebLabel. The RGBA() method already returns proper 8-bit
values, not 16-bit as previously assumed.
Co-Authored-By: Crush <crush@charm.land>
Add CSS styling for bug labels with proper borders and background
colors. Update the bug template to use styled labels instead of
plain code elements.
Co-Authored-By: Crush <crush@charm.land>
Display open/closed status in bug title with badge styling
mirroring the bugs list view implementation.
Implements: bug-165b8f1
Co-Authored-By: Crush <crush@charm.land>
Amolith
and
Crush
created
54b7882
fix(bug-list): fix meta display, mv comment count
Click to expand commit body
References: bug-3a06724
Amolith
created
345865a
fix: correct HTML and color conversion in bug UI
Click to expand commit body
Fix invalid HTML syntax where status timeline footer tag was
incorrectly duplicated instead of being closed properly.
Add defensive conversion of RGBA color channels from 16-bit
(0-65535) to 8-bit (0-255) before formatting as CSS hex colors
to ensure valid color output for bug labels.
References: bug-7d32125
Amolith
created
c09d095
refactor: improve bug page semantic HTML structure
Click to expand commit body
Restructure bug timeline to use semantic article elements with proper
headers and footers, improving accessibility and HTML structure.
Implements: bug-9b4c17f
Change bug status badges to use bordered styling instead of solid
background colors for better visual consistency with existing UI
elements. Open status uses valid border color, closed status uses
secondary border color.
Implements: bug-330aea0
Co-Authored-By: Crush <crush@charm.land>
Implement web interface for displaying git-bug issues including
bug listing page, individual bug details, and navigation integration.
Add styling and handlers for bug display functionality.
Implements: bug-7d32125
Co-Authored-By: Crush <crush@charm.land>
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>