Repository navigation
Turn bursts on and off from a project card, and remove a project with its history kept - #71
Merged
Merged
Conversation
…t from its card
The state at the top of a project's card is now a button in a small form
(POST /projects/<owner>/<name>/active): one click turns the project's bursts on
or off, where it took opening Settings, ticking Active and saving. The form says
the state it wants, so a page that is out of date cannot flip the project the
wrong way. The route changes only the flag, except that turning on a project
whose weight is 0 or less gives it weight 1, or its chip would still say off. The
owner returns to the card with no notice. The chip keeps its look, gains hover
and focus states, and is named for what a press does and for what it shows ("Turn
off bursts on acme/api (active, priority x2)"); it has no aria-pressed, because
its name changes with its state. Its "?" says that a click turns bursts on or off.
The Active box in Settings stays.
A trash button at the end of the header opens a popover that asks first: what
removing means, a Cancel button and a danger Remove button in a POST form.
lastcall stops working on the repository; its history and what it learned stay;
its settings are forgotten; nothing changes on GitHub; it goes back to the list of
repositories to add. Without popover support the question shows inline in the
card and the trash button hides. POST /projects/<owner>/<name>/remove refuses
while a run is going on the project and says to remove it when the run ends;
otherwise one transaction deletes its orders that have not started and its row in
projects, and nothing else. Runs, findings, ideas, labelled issues and pull
requests are keyed by the repository's name, so adding it again picks up where it
left off and the judge does not propose again what the owner rejected.
`lastcall project remove <owner/name>` follows the same rules.
What else refers to a project by name:
- The choices of containers and Loki sources stay in the settings and come back
with the project. The Settings page used to show the choice for a removed
project as no selection with a hidden "shown" field that still named it, so
saving the page erased it. It now shows no project for it, says that it was
chosen for one that is not a project now (logs.shown), and keeps it.
- The service started an order by its id even if the owner had cancelled it in
the meantime. Store.start_order now says whether it started one, and the
service skips the others.
- sync goes on following the open pull requests of a removed project, and
neither merges nor watches them; watch, the ranking, the dashboard and the
runs of the command line already cope with a project that is not there.
README (quickstart) and DESIGN.md (section 13) describe both actions and what
removal keeps.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…sh button Inline, the question would sit in every card, one click away from removing the project. Browsers without popover support remove a project with `lastcall project remove` instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Two quick actions on a project card that the owner missed during a clean install.
The state chip turns bursts on and off
Turning a project's bursts on or off took four steps: open Settings, tick or untick Active, then Save. Now the state chip at the top of the card ("active · priority ×2", or "inactive") is a button.
A trash button removes a project from lastcall
projectsrow goes, together with the orders that have not started. One transaction checks for a run and deletes them, and while a run is going on the project, the removal is refused (409).start_ordernow says whether it started one).lastcall project remove <owner/name>, with the same rules.popoversupport, neither the question nor the trash button shows. Inline, the question would sit in every card one click away from removing it; the CLI does it there.Docs
The README's quickstart and command list mention both actions. DESIGN.md section 13 describes them and what removal keeps.
How it was verified
uv run ruff check && uv run ruff format --check && uv run mypy && uv run pytestpasses: 718 tests pass and 33 are skipped. 27 cases are new:🤖 Generated with Claude Code