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

[I# 1011] Second implementation of facet renaming #5759

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

antoine2711
Copy link
Member

@antoine2711 antoine2711 commented Mar 31, 2023

Fixes #1011

Changes proposed in this pull request:

  • Add an edit background when over the title
  • Show a tooltip when over the title
  • Provide a FR translation
  • Has functional tests in Cypress

@github-actions github-actions bot added Type: Feature Request Identifies requests for new features or enhancements. These involve proposing new improvements. Module: Frontend These issues involve working on HTML, CSS, and JavaScript code that affects the user interface. facets Behaviour or rendering of facets in a project design proposal needed a precise proposal for a user interface for this feature would be welcome labels Mar 31, 2023
@antoine2711 antoine2711 requested a review from wetneb March 31, 2023 05:36
@antoine2711 antoine2711 marked this pull request as ready for review March 31, 2023 05:36
@antoine2711
Copy link
Member Author

antoine2711 commented Apr 1, 2023

@wetneb : I've changed the Source <blank-record> to « Blank records per column » in the ToolTip.

Did I understand your reservation in the meeting? Does this address it?

This should be finished, all tests passed.

Regards,
Antoine

Copy link
Member

@elebitzero elebitzero left a comment

Choose a reason for hiding this comment

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

Looks good but the following adjustments should be made:

Change 'Click here to edit the name of the facet' to 'Click to rename facet' so it is consistent with rename project verbiage:
image

There is no need to put the expression in the rename facet tooltip. The expression is visible in the 'change' tooltip, or by clicking 'change' to popup the expression dialog:
image

"filter(row.columnNames,cn,isNonBlank(cells[cn].value))":
{ source: "<non-blank-values>", label: 'core-views/non-blank-values' },
"filter(row.columnNames,cn,isNonBlank(if(row.record.fromRowIndex==row.index,row.record.cells[cn].value.join(\"\"),null)))":
{ source: "<non-blank-records>", label: 'core-views/non-blank-records' }
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

I would rather store this mapping in the definition of the facets themselves (in the menu). Because it is likely that people forget to update this when they add a new facet in that menu, or for instance when an extension registers a facet there. I think this could be done simply changing the method which adds a new facet, so that the facet name can be set directly there.

@antoine2711 antoine2711 marked this pull request as draft April 5, 2023 16:56
@cooperzoe cooperzoe removed the design proposal needed a precise proposal for a user interface for this feature would be welcome label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
facets Behaviour or rendering of facets in a project Module: Frontend These issues involve working on HTML, CSS, and JavaScript code that affects the user interface. Type: Feature Request Identifies requests for new features or enhancements. These involve proposing new improvements.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Custom facet names
4 participants