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

CRISTAL-326: Missing tooltip and hints for the create page UI #684

Merged
merged 4 commits into from
Feb 20, 2025

Conversation

pjeanjean
Copy link
Contributor

Jira URL

https://jira.xwiki.org/browse/CRISTAL-326

Changes

Description

  • Introduce NavigationTreeSelect as a new form component
  • Add help text to TextField component
  • Improve form styling for Vuetify
  • Update hierarchy API to use EntityReferences instead of PageData
  • Update navigation tree API to use EntityReferences instead of PageData
  • Update document change API to use EntityReferences instead of PageData
  • Improve buttons behavior on form modals
  • Overall style uniformization for existing forms

Clarifications

The main goal with this PR was to introduce a generic way to support help messages for form fields. As such, the different navigation trees used so far to "select" a node have been factorized into a cleaner NavigationTreeSelect component. The new component uses a breadcrumb to properly show the currently selected node. This, however, required some refactoring to update old APIs (created before the existence of EntityReferences) and their uses throughout the code base.

Screenshots & Video

image
image
image
image
image
image

Executed Tests

The whole test suite was executed, including integration tests.
The new component was also tested manually.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • N/A

* Introduce NavigationTreeSelect as a new form component
* Add help text to TextField component
* Improve form styling for Vuetify
* Update hierarchy API to use EntityReferences instead of PageData
* Update navigation tree API to use EntityReferences instead of PageData
* Update document change API to use EntityReferences instead of PageData
* Improve buttons behavior on form modals
* Overall style uniformization for existing forms
if (pageData != null) {
const fileHierarchy = pageData.id.split("/");
if (page != null) {
const fileHierarchy =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should introduce an API to flatten a reference in an array of segments

* Make Shoelace's breadcrumb in tree select not clickable
* Add Select button to tree select
@manuelleduc manuelleduc merged commit 93955fa into main Feb 20, 2025
3 of 5 checks passed
@manuelleduc manuelleduc deleted the CRISTAL-326 branch February 20, 2025 15:37
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.

2 participants