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

Extract work package info line into a Primer component #17191

Closed
Changes from all 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
29 changes: 29 additions & 0 deletions lookbook/docs/patterns/26-work-package-info-line.md.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
The work package info line is a consistent way to display the most commonly-used set of basic work package attributes.

## Anatomy

The info line consists of three attributes that are displayed together:

- Type
- ID
- Status

Only the ID the only interactive element; it is clickable and points the work package. All other interaction has to come from the element using this work component.

## Best practices

It's best to not separate these three elements in different lines. The element can, however, be wrapped in multi-line if needed.

## Used in

- Hovercard
- Work package relations tab
- Work package header
- ...

## Technical notes


### Code structure

[CODE EXAMPLE HERE]
Loading