•  
     
    story #10499 Have a labels widget on project dashboards
Summary
Empty
Have a labels widget on project dashboards
Empty
  • Widget only on project dashboard

  • I can I add multiple labels widgets

  • Empty state

  • “Refacto” keep edition modal reference so we can listen to its events: useful to call tlp.select2() on tag field inside the edit widget modal

  • If multiple labels are selected in the widget configuration, AND is the operator (label 1 AND label 2, not label 1 OR label 2)

  • In edit widget configuration : labels are autocompleted

  • Pull request labels are in read only mode: I can't remove a label from a pull request displayed in the widget (not yet)

  • REST route GET /projects/:id/label_elements?query={labels: [label_name…], limit:, offset:}

    • Simple SQL query (in pullrequest_label table)

  • Front end framework is VueJS

Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#10499
Benjamin Dauton (bdauton_enalean)
2017-10-12 11:24
2017-07-26 11:50
10739

References
Referencing story #10499

Git commit

tuleap/tuleap/stable

Add empty widget a50dfdbb64
Add GET labeled_items REST route b0482dd3bf
Add labeled item collection d2cb40c8a7
Add pullrequest icon to labeled items 462de86eaf
Add html_url to labeled items b223d0ab08
Configure widget with multi selectbox 81d9920552
Purge widget configuration when label is removed 43f7ac19ad
At modal edit we should see the stored labels 699954ebc4
Purge widget configuration when label is merged e25b02e760
Purge widget configuration when report is removed 4cf33f8835
Display labeled items 40417e7b3a
Get all labeled items recursively dc8357c33e
Edit / Configure widget with select2 e001a08c0b
Refactoring: DRY pull request access check in PullRequestResource c515f08558
Display configured labels on widget ac7ef5f24c
Add color label with select2 5d9c6b849e
Translate label widget in javascript 8440ebe7bb
Align widget icons top 2ed7f1b03a
Configure widget on add 0649cb3265
Do not display error message + empty state b4a6491069
Stop generate-po when xgettext encounter errors 2998ca5220
Order labels by label type and alphabetically a6fe675310
Display warning when user cannot see items 2b12a3c7a7
Should be able to add a labels widget on empty dashboard 30caf5bbc2
I can put pictures of alpacas in the widget edition modal 24ceee9e05
Assets are never cleaned cb6f45d7a1
Package the label plugin b5fc4369a2
Add Vue tests fe4642c803
Add [Load more] button d62773d69e
JS of the label plugin can be built on a clean checkout 4213eb7f4f
Labeled items should be displayed with metadata 3bc0b46cae

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
  • Permissions set to