Files
synapbus/Makefile
T
Algis DumbrisandClaude Opus 4.6 69e926441e fix: UI polish — leave channel, thread panel lifecycle, agent form, and text fixes
- Fix leave channel: handle ErrOwnerCannotLeave with error display, remove
  all owned agents from channel
- Close thread panel when navigating between channels/DMs
- Remove Type dropdown from agent registration (agents are always AI;
  human accounts created via CLI)
- Fix dashboard showing "Untitled conversation" — now shows last agent name
- Fix "1 msgs" → "1 msg" singular form on dashboard
- Fix conversation detail "-- N messages" → "— N message(s)" with em-dash
- Hide "done" status badge in MessageList and conversation detail
  (consistent with DM view behavior)
- Add thread reply buttons and reply count to channel and DM messages
- Add agent selector for multi-agent users in channel and DM compose
- Add "Join Channel" prompt for non-members in channel compose area
- Show "(you)" indicator on channel member list for owned agents
- Add agent detail page with messages endpoint
- Improve release workflow and Dockerfile

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 08:16:54 +02:00

42 lines
969 B
Makefile

.PHONY: build test dev web clean lint hooks
BINARY := synapbus
MODULE := github.com/synapbus/synapbus
BUILD_DIR := bin
VERSION ?= dev
LDFLAGS := -s -w -X main.version=$(VERSION)
CGO_ENABLED := 0
build: web
CGO_ENABLED=$(CGO_ENABLED) go build -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/$(BINARY) ./cmd/synapbus
test:
CGO_ENABLED=$(CGO_ENABLED) go test ./... -v -count=1
dev:
CGO_ENABLED=$(CGO_ENABLED) go run ./cmd/synapbus serve
web:
cd web && npm install --legacy-peer-deps && npm run build
rm -rf internal/web/dist
cp -r web/build internal/web/dist
clean:
rm -rf $(BUILD_DIR)
rm -rf web/node_modules web/build
rm -rf data
lint:
golangci-lint run ./...
hooks:
@echo "Installing git hooks..."
@mkdir -p scripts/hooks
@chmod +x scripts/hooks/pre-commit scripts/hooks/pre-push
@ln -sf ../../scripts/hooks/pre-commit .git/hooks/pre-commit
@ln -sf ../../scripts/hooks/pre-push .git/hooks/pre-push
@echo "✅ Git hooks installed"
.DEFAULT_GOAL := build