Cockpit Files mockups #471
Replies: 7 comments 19 replies
-
GeneralThe UI, with a standard left to right, top to bottom approach, where elements before others affect elements afterward: Bookmarks is first, then edit-path-mode, the path, filtering, view changing, then actions. On the next row are the files and directories and the details, which show either the current folder (if nothing is selected) or the selected item. Editing uses the "standard" PatternFly inline edit pattern. Note: There's no React component for inline editing however, only designs and HTML. It does build upon standard PatternFly widgets, at least. When an item is selected, such as this Document.pdf file, its details show up in the details sidebar. The icons are based on ForkAwesome, just like PatternFly's icon set is based on FontAwesome, so they share a common ancestor. However, we're using outline icons and have general mimetypes for classes of files. We'll implement just a standard folder and file icon first and add types later. |
Beta Was this translation helpful? Give feedback.
-
MenusHere are all the content related menus:
These also show up in the context menu of the content area when you have nothing selected (# 3), or when a file (# 1) or directory (# 2) is selected. Then there is the sorting menu. It comes from the grid/details toggle button, which looks like this: (It shows a details button to switch to the details view from the grid view.) (This shows a grid icon when in the details view, to switch to the icon grid.) If we're going to combine the hiddle file toggle with the view dropdown, then it would look like this: Then is the bookmark menu, which is what would show up at the top-left of the app. Home is always there. Custom ones are added bookmarks. "Add bookmark" adds the current directory as a bookmark. When you're in a directory that has been bookmarked, it becomes "Remove bookmark". Lastly, is the global menu, which has actions such as undo/redo (undoing a move or copy command), integrations with other pages, a hidden toggle, and a way to see the keyboard shortcuts. |
Beta Was this translation helpful? Give feedback.
-
UploadsWhen uploading files, a spinner is shown and it's selectable (with a hover over and cursor change to show that it can be interacted with). A dropdown appears! Individual uploads are created with flex sizing as shown in this above wireframe. Sizing should be an ideal size with a min and max width. Text should wrap when there isn't enough room. Truncation would remove necessary information to know which file is which, especially when multiple uploads may have very similar file names. When there's a file conflict, it should show a modal dialog. Multiple files should be supported too. It's nearly the same dialog, but with an opt-in. File details that are necessary to determine which is which are laid out side-by-side and actions mirror the layout, so reinforce which file you're preferring. |
Beta Was this translation helpful? Give feedback.
-
PermissionsFile properties have the filename in the title. The filetype shows up as text immediately under the title. Directory permissions are exactly the same, except they're a "Directory" type and have an option to recursively change permissions for enclosed files. |
Beta Was this translation helpful? Give feedback.
-
Editing and viewingEditing a file is basically a text area (with wrapping) in a modal. Cockpit Files is not an IDE. We may eventually add in some light syntax highlighting, but that would be a nice-to-have feature in the future. The goal is to do very simple edits and is not intended to be a remote developer tool. Viewing a file is a read-only subset of file editing. It has a "Read-only" bubble in the title and the text area is read-only. Additionally, the primary save button has been swapped out for a secondary Close button and there is no cancel button. |
Beta Was this translation helpful? Give feedback.
-
I apologise if I missed this, will there be more GUI added to the list view as in the old Navigator? |
Beta Was this translation helpful? Give feedback.
-
One piece of feedback I have about the overall design of the main page: the top bar seems too full. I feel like it would be more useful to have a top-level navigation-centric bar (bookmarks, breadcrumb, etc) and then a "view" area (filter, sort, etc.) on a separate line. I feel like this could be helpful on mobile as well... edit: Just found #474 thanks! |
Beta Was this translation helpful? Give feedback.
-
As I've been busy juggling multiple projects, I've been doing design work for Cockpit Files off and on, focusing on parts when I was asked about those parts and sharing the current status overall for context of those parts along with the parts of the UI I was asked about.
It's been scattered all over the place as a result. (And there were also parts in an internal-only Google Document too.) Everything was always up-to-date in Penpot the whole time, however.
I'll use this post here to share exports of the current state. I'm going to use follow-up comments to talk about various parts of the UI.
Additionally, here's a current snapshot of the Penpot source:
Live view @ penpot: https://design.penpot.app/#/view/1479d94f-56c1-8021-8004-2a833bae1b04?page-id=440d3b0f-e2f3-81b6-8001-ffb20ff25ded§ion=interactions&index=5&share-id=064214a4-70ce-8065-8004-6b0cdf45a8fe
Beta Was this translation helpful? Give feedback.
All reactions