Skip to content

Settings, Indexing, Libraries: one card per library, the same for every kind - #840

Open
Matthew Shaxted (mattshax) wants to merge 3 commits into
mainfrom
indexing-settings-look
Open

Matthew Shaxted (mattshax) wants to merge 3 commits into
mainfrom
indexing-settings-look

Conversation

@mattshax

Copy link
Copy Markdown
Member

Settings, Indexing, Libraries showed a table whose rows were tall blocks: the state, depth and buttons floated at mid height, far from the name, the last column had no header, long paths wrapped mid path in a narrow column, two libraries of the same kind read differently, and Delete index was the most prominent control on the page. This makes each library a card with the same anatomy for every kind, without dropping any value or action.

The card

  • Head: the name with its access as the Library switcher names it (Read/write, Read only or Shared, and the system it is on); what it is in a few words; the state as a chip with its counts and last indexed time on one line; the everyday actions at the right.
  • Notes under the head: errors, gaps, what a listing costs, a depth waiting for a rebuild, the GUFI 0.8.0 format note.
  • Details grid: Folder and Index (and Files, Copy, Listed from, Copied from) each on one line, cut in the middle where the card is narrow so the start and the last two folders show, whole on hover and to a screen reader, with Copy; then Port, SSH options, Originals via, the kind's own settings (List again, Read text, Look for changes) and Depth, which stays editable in place. Two details a line at full width, one a line below 720 px of list width.
  • What is running: a build's progress, the depth question (Rebuild now, Later), a copy bringing changes.
  • Foot (main folder): how the last run went, with View log.
  • More (the ⋯ button, named "More actions for "): Delete index for the main folder, Remove for the others. Each still asks first, with the same dialog as before; Remove stays red where it deletes an index the Studio keeps.

Calls made

  • The main folder says Ready like every other library that can be searched (was "Indexed"); Incomplete, Not indexed yet, Folder not found, Indexing, Syncing, Deleting and Moving are unchanged.
  • The action that keeps the index current is first at the right in every kind, and keeps its own word where the behaviour differs: Update index (main), Rebuild (built here or on a system), List again (bucket), Check (connected over ssh or pw ssh), Refresh (workflow). A copy shows Rebuild, then Update now.
  • The kind line no longer repeats the access beside the name: "Main folder, read and write" is "Main folder" next to "Read/write"; "…, read only" is dropped where the label says Read only; "Index built on over pw ssh" is "Index built there over pw ssh", the host being in the label. "Main folder, read only for you", "read and written as you", "Shared by , read as you", "set by the deployment" and "yours alone" stay, since they say whose account reads it.
  • Copy buttons are named by what they copy: "Copy the index path of " (was "Copy Index").
  • Change folder stays visible beside Update index; it is not destructive.
  • Library names are h2 under the Indexing h1.
  • The intro sentence is left as it is for Settings, Libraries: the introduction says My library is written too #804, and the kind line of My library for Library names by mode, Remote computer wording, and the Libraries introduction (#804) #817.

Inventory

Every line of text, every control with its name and enabled state, every menu item and every hover title, taken by a Playwright script over six states (the two libraries of the report; every kind on a computer of its own; builds running, failed, index gone, a depth waiting, a bucket reading text; main not indexed with an earlier index kept and a failed last build; sign-in on as an administrator; sign-in on as anyone else), then compared before against after.

INVENTORY

Screenshots

SHOTS

Docs

HELP.md and LIBRARIES.md say card for row, name the More menu, and say where Delete index, Remove, View log and Copy are. README does not describe this page's layout.

Tests

web/test/librariesPage.test.tsx finds a library by its card, opens More for Remove and Delete index, expects Ready for the main folder, checks the path's hover, screen reader text and Copy, and that a pinned library and a main folder on a Studio with sign-in have no More. Web suite: 827 passed.

…ry kind

Each library is a card: its name with its access and where it is, what it
is, its state as a chip with its counts and last indexed time on one line,
and the action that keeps its index current at the right. Its folder and
index follow on one line each, cut in the middle where the card is narrow,
whole on hover and in Copy, then the kind's settings and its depth, which
stays editable in place. The main folder's last run and View log sit at the
card's foot. Delete index and Remove move to a More menu and still ask
first. The main folder says Ready like every other library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant