aboutsummaryrefslogtreecommitdiff
path: root/gui/internal/ui/plan.go
Commit message (Collapse)AuthorAgeFilesLines
* the window cannot pull the lock out from under a running applyLukasz Kasprzak46 hours1-2/+18
| | | | | | | | | | | | | | | | | | Close releases the directory lock and closes the log. The window could reach it while an apply was still running - saving rules, saving settings, adding a directory, or closing the window - and the engine then went on moving files with the log shut underneath: a file moved that no krino undo can see, the rest of the plan silently abandoned, and the directory unlocked while krino was still working in it. PlanTab and UndoTab refuse to close while their apply is in flight (model.ErrApplying), the window's close request and reloadEngine honour the refusal instead of ignoring it, and the tabs and Settings are greyed out for the duration so a button that cannot work says so by being unavailable rather than by an error afterwards. The test starts an apply, calls Close from another goroutine while it is in flight, and requires the refusal.
* the module path is git.labunix.xyz/krinoLukasz Kasprzak47 hours1-4/+4
| | | | | | | | | | | So that go install can find it. cgit serves no go-import meta tag, so nginx answers a ?go-get=1 request for /NAME with one pointing at https://git.labunix.xyz/NAME.git; the alternative was carrying a .git suffix through every import line forever. One sed over the imports, both go.mod files, and the dependency gate's whitelist. Nothing else depends on the path. go install works from the next tag, the first release whose go.mod carries it.
* comments that explain the code, not how it was writtenLukasz Kasprzak48 hours1-19/+15
| | | | | | | | | | | | | | | | | | About 340 comments cited the development process: task and plan numbers, fix waves, rulings, reviewers, and the author in the third person with a date. None of that exists outside the work itself, so to a reader it pointed at nothing. Each one now states the engineering reason it was standing in front of; where a comment was provenance and nothing else, it is gone. References to docs/design.md and docs/gui-design.md by section stay: both ship with the repository. The design documents lose their amendment diaries - CHANGELOG.md is that record - and the GUI's says plainly that the window has gone further than the document. Only comments changed. Every .go file was parsed and its code printed with comments stripped, before and after: the two hashes are identical across all 175 files.
* gui: the path keeps its telling end, and the checklist grows three itemsLukasz Kasprzak2 days1-2/+6
| | | | | | | | | | | Squeezed, the toolbar's path label read "/t... ds". It now elides the start, since the end of a path is the part that says which directory this is, and will not shrink below about sixteen characters; the tooltip still holds it in full. The checklist gains the reordered bar, the About block, and the sandbox trap that had every file skipped: krino's own (min-age 2m) ignores a file written in the last two minutes.
* gui: the toolbar in the order things happen, and an About blockLukasz Kasprzak2 days1-7/+13
| | | | | | | | | | | | | | The Plan bar now reads left to right as the work does: which directory, how it should be listed, what of it, where it is on disk - then Scan, and only then what to do with what came back. Scan carries the theme's accent, being the button that starts everything. Settings ends with About: the program and the version it was built as, what it is in a sentence, the licence, and who to write to. The text is model.About so it is tested; ui.Version is stamped by main. leak-check knows krino's own contact address, so the address check stays useful without a per-clone setting.
* gui: an exclude is not a rule - the form no longer assumes onev0.0.11Lukasz Kasprzak2 days1-2/+2
| | | | | | | | | | | Selecting the exclude row in Forms panicked: newFormEditor read the form's rule for its when, name, action and stop, and an exclude has only the when. The editor now takes the conditions from whichever of the two the form holds and leaves out the fields an exclude has not got. Checklist item 49 covers it. Also the 0.0.11 changelog and README, and header floors wide enough that the age heading is not clipped.
* gui: conditions as a nested tree, and a way to add a directoryLukasz Kasprzak2 days1-0/+27
|
* gui: name the other copy of a duplicate, and offer to keep this one insteadLukasz Kasprzak2 days1-5/+53
|
* gui: sort the plan by name, size, age, action or ruleLukasz Kasprzak2 days1-19/+69
|
* gui: size and age columns, column toggles, readable colours, a laid-out ↵Lukasz Kasprzak2 days1-67/+155
| | | | explanation
* gui: keep every divider where it is put, and let the columns shrinkLukasz Kasprzak2 days1-18/+74
|
* gui: an applied plan says it is history; Settings says what needs savingLukasz Kasprzak2 days1-4/+18
|
* gui: aligned columns, theme colours, a second layout, and a scan-selection ↵Lukasz Kasprzak2 days1-39/+120
| | | | setting
* gui: coloured actions with headers, a filter over the plan, bulk trash or deleteLukasz Kasprzak2 days1-25/+225
|
* gui: the preview is as big as you drag it, and PDFs render to suitLukasz Kasprzak2 days1-20/+65
|
* gui: a rendered PDF page per file, and Settings in the top rightLukasz Kasprzak2 days1-0/+17
|
* gui: syntax colours, a file preview, and a settings windowLukasz Kasprzak2 days1-4/+124
|
* gui: size the plan and undo columns to what they hold, so the rule is never cutLukasz Kasprzak3 days1-8/+50
|
* gui: History and undo tab; each plan and undo is its own runLukasz Kasprzak3 days1-8/+2
|
* gui: row menu for trash or permanent delete; Apply frees the directoryLukasz Kasprzak3 days1-0/+95
|
* gui: the Plan tab - scan, review, apply, with the directory lockedLukasz Kasprzak3 days1-0/+351