Metadata-Version: 2.5
Name: heinzel-issues
Version: 0.2.3
Summary: Report a problem or request something, and see when it is done and released; needs a Beads database you can write to.
Project-URL: Source, https://github.com/helmut-hoffer-von-ankershoffen/heinzel-plugins/tree/main/plugins/heinzel-issues
Project-URL: Changelog, https://github.com/helmut-hoffer-von-ankershoffen/heinzel-plugins/blob/main/plugins/heinzel-issues/CHANGELOG.md
Project-URL: Issues, https://github.com/helmut-hoffer-von-ankershoffen/heinzel-plugins/issues
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.15
Requires-Dist: heinzel<0.10,>=0.9.31
Description-Content-Type: text/markdown

# Issues

Report a problem or request something, then see where it stands: **Received**, **Being worked on** or **Done**, and
once it ships, **Released in 0.9.27 on 7 Nov 2026**. You never see the tracker behind it: no statuses of its own,
no ids, no pull requests, unless you ask for the details.

It is not installed, bundled or recommended by default: it needs a Beads database you can write to (today the
private management repository). Add it with `hz system plugin add issues --confirm`.
Until a tracker is set up the Issues page shows **Issue tracking is not set up** with a short form, never an error.
Everything after that happens in the app; no step needs a terminal.

## Use it

- **In the app:** open **Issues** in the sidebar. The list shows each report with its state as a word and a mark
  (○ Received, ◐ Being worked on, ✓ Done), never colour alone. Type what happened or what you would like and
  press **Send**; the app shows what it will send and asks first. With Heinzel 0.9.45 or newer you can add a
  screenshot or a text file (PNG, JPEG or text, up to 2 MiB). Filter by status or sort by date or title. Select a
  report to read what you sent, its dates and history: Sent, Being worked on, Done, Released in. You can close a new
  Beads report you created. Your open reports also appear on Today.
- **In a terminal:**

  ```sh
  hz issues submit "The footer clock jumps by a pixel every minute"
  hz issues submit "Here is what I saw" --attachment shot.png
  hz issues list
  ```

  `hz issues list --json` adds the details for agents and experts: the tracker, its id and status, and each pull
  request with its release. `hz issues show <id>` shows one.
- **Notices:** every five minutes the daemon looks for changes and tells you when a report is being worked on, is
  done, and when it is released. The first check after turning Issues on only remembers what is there.

When nothing is set up, the app says **Issue tracking is not set up** and asks for the tracker folder;
`hz issues list` says the same and names `hz setup issues`.

<!-- screenshots:start -->
## Screenshots

<img src="docs/assets/screenshots/issues-page.png" alt="Three fictional reports: received, being worked on, and released in 0.9.27 — with a form to send another" width="960">

Three fictional reports: received, being worked on, and released in 0.9.27 — with a form to send another

<img src="docs/assets/screenshots/report-history.png" alt="A fictional report opened: what was sent, the file sent with it, and its history up to the release" width="960">

A fictional report opened: what was sent, the file sent with it, and its history up to the release

<img src="docs/assets/screenshots/today-open-reports.png" alt="Your open fictional reports and requests on Today, in dark mode; done ones leave the list" width="960">

Your open fictional reports and requests on Today, in dark mode; done ones leave the list

<details>
<summary>Command line</summary>

<img src="docs/assets/screenshots/cli-list.png" alt="The same fictional reports and their plain states through the real CLI" width="960">

The same fictional reports and their plain states through the real CLI

</details>

[Open the screenshot gallery](docs/assets/screenshots/index.html).
<!-- screenshots:end -->

## Set it up

In the app, open **Issues**, enter the folder that holds the Beads database and press **Set up issue tracking**.
Issues checks that the database answers before it saves anything, and works at once, without a restart. Under
**More options** you can name more labels for every new report (emptying the field clears them) and git clones
whose tags are releases.

In a terminal, `hz setup issues` asks the same. Or set it directly:

```toml
[issues]
tracker = "beads"

[issues.beads]
path = "~/Code/team-board"   # the folder with the .beads database
label = "heinzel-issues"      # what Issues gives each report, and the items it shows
extra_labels = ["intake"]     # optional: more labels for every new report, e.g. the one your team's queue reads

[[issues.releases]]
path = "~/Code/harbor"        # a clone on this computer; read, never fetched
names = ["core"]              # how notes name it: "core #12"
ref = "origin/main"
tags = "v*"
```

`hz system doctor` reports Issues as up while it is off, and as down with the reason when a chosen tracker does
not answer.

## How "Released in" is found

Whoever works on a report notes the pull request in the tracker: `Fixed in #562`, `gh-562`, `plugins #38` or a
pull request link. Issues finds the merge commit whose subject ends in `(#562)` on the configured branch, then the
oldest release tag matching the pattern that contains it. A report with several pull requests is released when the
last of them is. The clone is only read; keep it fetched as you normally do.

## Trackers

Beads is built in: Issues runs `bd ... --json` in the configured folder, on this computer, and never syncs,
pushes or publishes. Other trackers (Linear, Jira, GitHub issues, cards in git) plug in behind the same contract,
described in [docs/CONTRACT.md](docs/CONTRACT.md), without a change to Issues or to Heinzel's core.

Issues writes to Beads through the methods of Heinzel's `Tracker` contract (core ADR 0141): each write runs
`bd --actor`, and a claim is Beads' atomic `--claim`. It registers no `tracker` capability adapter, so installing it
never unbinds or replaces the tracker other plugins (GitHub, Atlassian) use.

## Privacy

What you send stays in the tracker you chose. New Beads reports carry the authenticated workspace identity and the
configured labels. For Beads, Issues lists, reads or closes reports created by that identity. Reports created by older
versions remain visible to the installation owner under the old local login, but cannot be closed from Issues; they
are not reassigned. The current workspace sign-in identifies the installation owner, so devices sharing that sign-in
share the same identity; it does not yet distinguish individual people. Tracker administrators with direct database
access can modify the board independently of Issues. Reading and sending need your sign-in to the app. Issues stores
only what it has already told you, under Heinzel's state folder, readable by you only. Notices are local.

## Develop

From this directory: `make setup`, `make check-fast`, `make check`, `make build`, `make acceptance`. The
integration tests create a temporary Beads database and need `bd` installed; they are skipped without it.
