Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add development section on action menus #2429

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions frontend/docs/docs/develop/design-actions-dropdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Actions Dropdowns

While controls are always placed next to the most relevant content area, we expose most controls for an object in an _Actions_ dropdown menu to enable discovery of actions in a single place, and allow power-users to quickly accomplish tasks.

## Implementation

Actions dropdowns should generally contain a consistent set of actions for a given object. Whereas `---` symbolizes a horizontal separator, these actions should be ordered as follows:

```txt
Actions related only to the current page (eg: remove archived item from collection)
---
Actions related to editing the object (eg: edit workflow config, edit item metadata)
Other actions related to the current object (eg: run crawl)
---
Actions related to exporting/downloading (eg: download archived item)
---
Copy information to clipboard (eg: copy share link)
Copy IDs to clipboard (eg: copy item ID)
---
Destructive actions (eg: delete item)
```
2 changes: 2 additions & 0 deletions frontend/docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ nav:
- develop/frontend-dev.md
- develop/localization.md
- develop/docs.md
- Design:
- develop/design-actions-dropdown.md

- API Reference: !ENV [ API_DOCS_URL, "/api/" ]

Expand Down
Loading