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

Feature: Add agent tooltip in summary page #404

Merged
merged 14 commits into from
Dec 15, 2023

Conversation

Bilelkihal
Copy link
Collaborator

@Bilelkihal Bilelkihal commented Dec 7, 2023

Done in this PR:

I added a tooltip when we hover an agent in people and organizations bloc in summary page,
The information I'm displaying is: Type (using an icon), name, email, identifiers and affiliations of the agent.
there are two types of agents:

  • person:
    image

  • Organization:
    image

** Also I added an icon to indicate the type of the agent in the agent chip

Ps. there are some agents have no type (only name and email) and they are considered as persons.

@Bilelkihal Bilelkihal added the enhancement New feature or request label Dec 7, 2023
@Bilelkihal Bilelkihal self-assigned this Dec 7, 2023
Copy link
Collaborator

@syphax-bouazzouni syphax-bouazzouni left a comment

Choose a reason for hiding this comment

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

See requested changes in the code,
and for the UI, make it more smaller, as the marckup bellow
image

app/helpers/agent_helper.rb Outdated Show resolved Hide resolved
app/helpers/agent_helper.rb Show resolved Hide resolved
app/views/ontologies/sections/_metadata.html.haml Outdated Show resolved Hide resolved
app/assets/images/icons/person.svg Outdated Show resolved Hide resolved
app/helpers/agent_helper.rb Outdated Show resolved Hide resolved
app/helpers/agent_helper.rb Show resolved Hide resolved
Copy link
Collaborator

@syphax-bouazzouni syphax-bouazzouni left a comment

Choose a reason for hiding this comment

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

Can you also update the chips content to be like this
image

Copy link
Collaborator

@syphax-bouazzouni syphax-bouazzouni left a comment

Choose a reason for hiding this comment

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

I need the fix of word breaking and remove the scroll before merging this

@Bilelkihal
Copy link
Collaborator Author

@syphax-bouazzouni
I removed the scroll indicators, now for the text overflow we do text-truncate,
Concerning the word break I saw the license PR and the change I did was just for the license badge.

@syphax-bouazzouni syphax-bouazzouni merged commit f1a44fb into development Dec 15, 2023
4 checks passed
syphax-bouazzouni added a commit that referenced this pull request Dec 19, 2023
* Add agent tooltip in the summary page

* extract generate agent tooltip HTML to a function

* put back display_agent method, and extract agent_chip_componentt

* change generate_agent_tooltip function name

* make display_agent uses agent_chip_component

* add icon to agent chip component

* fix agent chip style

* fix when the agent is a string issue

* Make agent chip text truncate

* fix affliatinons issue in agent tooltip

* Treat the case when the agent have no affiliation in the agent tooltip

* remove scroll indicators from chips in summary page

* fix agent system tests

---------

Co-authored-by: Syphax Bouazzouni <gs_bouazzouni@esi.dz>
syphax-bouazzouni added a commit that referenced this pull request Dec 19, 2023
* Fix: Remove JQuery validate (#410)

* remove the jquery validation of group and category

* add the validation of category fields

* add the validation of group fields

* remove jquery validate imports

* Feature: Add agent display component  (#404)

* Add agent tooltip in the summary page

* extract generate agent tooltip HTML to a function

* put back display_agent method, and extract agent_chip_componentt

* change generate_agent_tooltip function name

* make display_agent uses agent_chip_component

* add icon to agent chip component

* fix agent chip style

* fix when the agent is a string issue

* Make agent chip text truncate

* fix affliatinons issue in agent tooltip

* Treat the case when the agent have no affiliation in the agent tooltip

* remove scroll indicators from chips in summary page

* fix agent system tests

---------

Co-authored-by: Syphax Bouazzouni <gs_bouazzouni@esi.dz>

* Fix: Optimize some pages load speed (metadata curator, summary, agents admin) (#411)

* update the summary watch button to be lazy loaded

* fix submission edit page error state

* limit the fair score http call to the service timeout to be fast-failing

* optimize the submissions partial to not load latest submission twice

* optimize the submission update page speed

* optimize the metadata curator call to use the new  submissions endpoint

* update ontoportal dev script to accept local api  client  code

* fix show_category_name helper for no valid ids

* fix content language selector component breaking the tab layout on init

* fix submission and agent system test after the changes in the api cient

* Fix: Optimize landscape pages load speed and integration with the new model  (#415)

* update the landscape page to work with the backend model

* optimize the landscape loading page speed by removing duplicate calls

---------

Co-authored-by: SirineMhedhbi <31127782+SirineMhedhbi@users.noreply.github.com>
Co-authored-by: Bilel Kihal <61744974+Bilelkihal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants