Tuleap 16 est là ! Assistez à l'événement virtuel le 17 octobre à 10h30. Inscrivez-vous ici !

  •  
     
    story #24971 [modal] search for artifacts
Summary
Empty
[modal] search for artifacts
Empty

Link to the Figma prototype.

  • When the user opens the dropdown: by default, recently viewed artifacts are displayed. The list of recent items is the same than in "Switch to" modal.
  • Search behaviour is the same than in "Switch to" modal (the search backend will match on everything)
    • When user starts typing, it starts filtering the recently viewed artifacts
    • When more than 3 characters are typed, the search results are added in their own section. Only the first 50 results are fetched.
    • When the typed value is an integer that matches an artifact id the user can see, there are 3 sections displayed:
      1. Matching artifact id
      2. Recently viewed
        • (with filtered results)
      3. Search results
        • (with search results)
  • When there is no Search backend, only recently viewed artifacts are presented
    • It's still possible to link with artifact ID (as of today)
  • Status are displayed with their real color instead of green/grey for open/closed

For "Parent", there are no search nor recent items. There are only "possible parents" and "matching artifact id".

Modifications of search and history (recently viewed items):

  • Add to search and history representations a type and per_type_id keys (eg artifact and 1234 that would match artifact #1234).
Empty
Empty
Status
Trackers
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
#24971
Manuel Vacelet (vaceletm)
2022-12-15 18:00
2022-01-04 17:45
3652

References
Referencing story #24971

Git commit

tuleap/tuleap/stable

refactor: Types on kanban presenter d9c1b554e0
refactor: Types on planning presenter a27fb16965
refactor: Stricter types in user history 1598b935e4
feat: Add a feature flag for history and search in artifact links 0b6a8f286c
feat: Add type and per_type_id properties to History entries 41fcf0a0bf
Add `Recently viewed artifact` empty section in link selector 30aa09398b
refactor: use autocompleter even at first load 596f0e9a66
Always display cross references when we have them in Switch To e6957fb98e
Get the current user id when the artifact modal is in creation mode aeabc358e8
chore: core lib for rest API types c39b22d204
Display the recently viewed item in the picker 087f3c291f
Add status color in the REST route /artifacts/:id 513567e8f2
refactor: reuse shared REST API types d56e7448ae
Add status color in the REST route /trackers/:id/parent_artifacts fc6c2bc6f7
feat: Empty search results section 42a1553e24
fix: Fault notification clearer clears too many times 38238e9c08
Display the error feedback message when the error user history route 892246726c
chore: TrackerColorName -> ColorName b70527c7bc
Implement a cache system to store the user history route result 8fceab96d6
feat: call search endpoint dc41a256a7
Convert status key into an object 6dbea15678
Fix failing JS unit test in the artifact modal 9a8309a728
Add status for aleady linked atifacts e8c80f1984
feat: Handle search errors 8f6b63c8bc
[fix] In artifact modal displayed status is the parent one 09181ae13b
feat: Change placeholders bd1cd0afe9
Add status for new linked artifacts 9800144a4b
Add status in dropdown 11aee59524
Add project (+corresponding icon) in dropdown beded09593
feat: Search and history in artifact modal are available 958da5e3a6
feat: Search and history in artifact modal are available 5d42023a64
fix: Avoid ResizeObserver loop error 391e816392
test: E2E for history in artifact modal 7d91c5cc5b
feat: Footer message for search results cd8b98cd18
Remove duplicate artifact returned when search artifact is used cbac8b85ef

Follow-ups

User avatar
Joris MASSON (jmasson)2022-12-01 17:48

Only the first 50 results are fetched for fulltext search


  • 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
User avatar
Joris MASSON (jmasson)2022-11-21 09:34

type_id is renamed per_type_id


  • 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
User avatar
Joris MASSON (jmasson)2022-11-17 11:03

Contextual information on searched items is removed for now. We might add it after getting real usage feedback.


  • 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
User avatar
Joris MASSON (jmasson)2022-11-15 15:10

History route must also be modified


  • 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
User avatar
Joris MASSON (jmasson)2022-11-15 14:38
  • 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
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
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
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
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