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

Breadcrumbs for document residence #40

Merged
merged 25 commits into from
Oct 13, 2020

Conversation

ThomasWeiser
Copy link
Owner

@ThomasWeiser ThomasWeiser commented Oct 13, 2020

Show the occurrences of a document in its detail view.

API additions:

  • Add field folders to type document to get the folders in which the document occurs.
  • Add parameter ids to root field allFolders to query a set of folders by id.

Frontend:

  • We use the term "residence" for a document's occurrences. A residence is a list a lineages, which are (non-empty) lists of folder ids.
  • We query and cache a document's residence together with the document's details.
  • To get the names of the involved folders there is a new need NeedFolders (List FolderId).
  • If the involved folders are not already cached they are fetched separately after the document.
  • The residence is displayed as breadcrumbs in UI.Article.Details below the attributes of the document.
  • Each breadcrumb links to a listing in that folder.

Screenshot of a residence display (provisionally styling):

Screenshot from 2020-10-13 12-13-48

@ThomasWeiser ThomasWeiser merged commit 79a7084 into master Oct 13, 2020
@ThomasWeiser ThomasWeiser deleted the breadcrumbs-for-document-residence branch October 13, 2020 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant