History of commits
4473 commits
feat(admin): rebuild the antiflood settings
The mode, the two delays and the hours of the day are cards of their own, every mode says what it does, and the fields carry their units and bounds. The settings are behind admin.settings.manage, as the menu shows them: the panel access alone let a moderator change them.
fix: pick the delay of the day/night antiflood by the hours of the day
The current hour was compared with the delays themselves instead of the hours the day begins and ends, so the mode applied the night delay nearly all the time. The day now lasts from the hour it begins up to the hour it ends.
feat(admin): rebuild the cleanup of inactive users and confirm it in a dialog
The page tells who is removed and what goes with them, and shows how many accounts the cleanup would take now; the deletion is confirmed in a dialog at /admin/users/cleanup/confirm, which offers no deletion when nobody meets the conditions. The cleanup is behind admin.settings.manage, as deleting a single account is: the panel access alone let a moderator run it.
feat(admin): rebuild the search by an address as a live list
The tabs of the current addresses and of the history count what they find, the results follow the search as it is typed, and an address typed half way is said quietly in place of them. The rows are a table with the address, the proxy, the browser and the time, and the menu of the list of users. AdminUserRowMapper and the user-row component only served this page and are gone.
fix(admin): find the accounts by any address of their history
The search in the history looked at the latest record of each account only, so an address used once and left since found nobody, and a join on the time of that record could repeat an account. Any record in the range finds the account now, and the row shows the latest of them with when it was made.
fix(admin): say what the amnesty did without escaped quotes
The message carried " in its msgid from the old templates, and the page escapes it, so the visitor read the entity. It is plain text now.
fix(admin): give back the karma of the bans the amnesty clears
Clearing the history of bans truncated the table: the karma each ban cost stayed taken, and MySQL committed whatever transaction was open around it. BanManager::clearAll() deletes every ban the way deleting one does, reading them a portion at a time. Both kinds of amnesty and who may grant it are covered now.
feat(admin): rebuild the ban panel as a live list with tabs, a search and filters
The panel opens on the accounts banned now, with a tab for everybody who has had a ban, a search by nickname or number and a filter by kind; it is ordered by the end of the ban or by the violations from the heads of the columns, which replaces /admin/bans/by-violations. A row lifts its ban in a dialog and returns to the panel, leads to the bans of the account in the panel and to its page. The amnesty is a dialog, and the panel shows its message now. One row per account: the ban and the counts come from subqueries, as a join on the end of the ban repeated an account whose bans end together, which the amnesty makes happen.