UI: send to peer, Transfers view, inbox dot, row quick actions — closes #105 #128
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/peering-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The end-user surface for peering, built to the wireframe Nikola approved, entirely inside
web/static/index.htmlfollowing its existing patterns.What a user sees
feat.peerSend. Two-field dialog: a peer dropdown fed byGET /peering/peers(which already returns only peers the caller may use, key-free) and a recipient username. Errors from the API render in the dialog; a started transfer closes it and reports via the status line.openTrashView: newest first, state chip (failedreuses the existingrochipstyle), failure reason, size and time. Owner-scoped by the API itself.files?path=/home/Inboxlist per minute, newest child mtime against alocalStoragewatermark. Viewing the Inbox clears it. No walking, no counting, per the decision.Mechanics
feat.peerSendis set by probingGET /api/v1/peering/peersat boot: 200 → nav appears and the poll starts; 404/401 (peering unconfigured or unauthenticated) → everything stays hidden. No new server surface needed.I18Ntable; the language-change refresh dispatch learned thetransfersbranch.um-peeringhad twodata-i18nattributes (invalid HTML, first one won — the button was mislabelled "License").<style>+<script>block rather than inline splices for the new logic; the script was syntax-checked withnode --checkagainst a stub harness before commit.Honest limits
UNKNOWN_RECIPIENTin the Transfers view.receiverslists (carried on #105 from #123) is not in this PR — it belongs to the peering admin panel, not the file browser, and remains open on the issue.12 anchored splices, all first-try;
go build ./...clean.