1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/admin/tests
catborise 3c6de221ca feat(admin): the admin lists as a people directory, the user form by what it allows
The Users, Groups and Removed VMs pages were bare tables: rows of
coloured icon buttons without words, five columns of small checks for
a user's role and permissions, dates broken over three lines and a
lone "+" for a new entry. The owner chose a directory layout from three
rendered options; it follows the host pages' cards:

- Each list is a card with its count and search in the header and one
  list-group item per entry, which stacks on a phone without scrolling.
- A user shows their role as a badge (Superuser, Template editor) or
  "User", Blocked as a red badge, their groups, a granted clone
  permission and live API tokens, and the last login on one line;
  role and status are searchable. Edit is the visible action, the menu
  holds View profile, Block or Unblock and Delete; Block and Delete
  are disabled on one's own account, which the server refuses anyway.
- A group shows its member and permission counts; its name opens it.
  The page's title said "Users".
- A removed VM shows its UUID, the host it left, its owners and when
  the record was made and expires.
- Logs keep their table in a card, the server search in its header,
  the count of matching rows, Done and Failed as badges, and a message
  column wide enough to read on a phone.

The user form was one long column of horizontal fields. The owner
rejected three boxed layouts and chose one led by what the user may
do: the Active switch, Template editor and Superuser as two cards,
groups as chips, the user's own permissions as switches each saying
what it allows, then the name and password and the quota folded into
details whose summaries tell their values (-1 as "any"); they open on
a new user and on an error inside them. A refused group or permission
is said beside its field. The group form follows it: the name, what
its members may do, its members as chips. Cancel goes back to the
list instead of the browser history.
2026-10-31 18:10:05 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_audit_rows.py fix(admin): a default VM that is not exactly one VM is refused on the form 2026-10-26 11:19:42 +03:00
test_logs_page.py feat(admin): the admin lists as a people directory, the user form by what it allows 2026-10-31 18:10:05 +03:00
test_tombstones.py feat(admin): the admin lists as a people directory, the user form by what it allows 2026-10-31 18:10:05 +03:00
test_user_create.py fix(admin): a default VM that is not exactly one VM is refused on the form 2026-10-26 11:19:42 +03:00
test_user_pages.py feat(admin): the admin lists as a people directory, the user form by what it allows 2026-10-31 18:10:05 +03:00
test_user_update_next.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_views.py feat(logs): admin changes and logins are recorded on the Logs page 2026-10-23 10:30:48 +03:00