forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
1d495a4
commit f1a44fb
Showing
12 changed files
with
142 additions
and
21 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.agent-container{ | ||
display: flex; | ||
align-items: center; | ||
margin: 10px; | ||
} | ||
.agent-circle{ | ||
width: 70px; | ||
height: 70px; | ||
background-color: var(--light-color); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 35px; | ||
margin-right: 12px; | ||
} | ||
.agent-name{ | ||
font-size: 18px; | ||
font-weight: 600; | ||
margin-bottom: 3px; | ||
} | ||
.agent-dependency{ | ||
font-size: 16px; | ||
font-weight: 400; | ||
color: #767676; | ||
margin-bottom: 3px; | ||
} | ||
.agent-type-icon path{ | ||
fill: var(--primary-color) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,29 @@ | ||
.agents-inputs input { | ||
@extend .form-control !optional; | ||
height: 100% !important; | ||
} | ||
.agent-chip{ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.agent-chip-circle svg{ | ||
height: 15px; | ||
} | ||
|
||
.agent-chip-circle{ | ||
height: 30px; | ||
width: 30px; | ||
background-color: rgba(128, 128, 128, 0.08); | ||
border-radius: 15px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-right:10px; | ||
} | ||
|
||
.agent-chip-name{ | ||
color: #8C8E8D; | ||
font-size: 15px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters