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

Jamie model card small formatting tweaks #2818

Merged
merged 32 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1b3f539
feat: darker text in content switcher buttons
jamiewaese-uncharted Jul 13, 2023
696ff88
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 14, 2023
3f29442
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 14, 2023
8d271e0
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 14, 2023
9e059d3
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 17, 2023
0733410
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 17, 2023
36bbf01
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 18, 2023
fb88e51
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 19, 2023
6bb287f
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 19, 2023
1cdc024
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 19, 2023
1919fd1
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 20, 2023
dc47094
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 21, 2023
6f52d1e
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jul 24, 2023
305bf66
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jan 4, 2024
3e34780
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jan 8, 2024
a5d6c81
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jan 11, 2024
305a650
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jan 22, 2024
ee17593
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jan 24, 2024
83d6dcf
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jan 26, 2024
e06bc7a
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Jan 26, 2024
3350006
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Feb 7, 2024
4f5ef99
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Feb 8, 2024
24ff234
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Feb 14, 2024
6ea41bf
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Feb 15, 2024
e8f4983
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Feb 20, 2024
b13d607
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Feb 20, 2024
07bb154
Merge branch 'main' of https://github.com/DARPA-ASKEM/Terarium
jamiewaese-uncharted Feb 21, 2024
650360a
adjusted spacing of label-value pairs, heading sizes
jamiewaese-uncharted Feb 22, 2024
eb37884
fixed Show More bug so it doesn't occupy space unless it is relevant
jamiewaese-uncharted Feb 22, 2024
f341205
removed 'constrain-width' from header title
jamiewaese-uncharted Feb 22, 2024
dd3aa18
removed constrain width from header, adjusted padding in shrinked header
jamiewaese-uncharted Feb 22, 2024
4ec37dc
Update packages/client/hmi-client/src/components/asset/tera-asset.vue
YohannParis Feb 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,12 @@ header {
}

header.shrinked {
height: 3rem;
position: sticky;
top: 0px;
z-index: 100;
isolation: isolate;
background-color: var(--surface-ground-transparent);
backdrop-filter: blur(6px);
padding: var(--gap-small) var(--gap);
border-bottom: 1px solid var(--surface-border-light);
}

Expand All @@ -231,7 +229,7 @@ header.shrinked h4 {
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
max-width: var(--constrain-width);
max-width: fit-content;
}

h4,
Expand All @@ -244,7 +242,6 @@ header aside {
display: flex;
flex-direction: column;
gap: var(--gap-small);
max-width: var(--constrain-width);
}

header aside {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,72 +6,100 @@
<tera-show-more-text :text="description" :lines="5" />

<template v-if="modelType">
<label class="p-text-secondary">Model type</label>
<p>{{ modelType }}</p>
<div class="label-value-pair">
<label class="p-text-secondary">Model type</label>
<p>{{ modelType }}</p>
</div>
</template>
<template v-if="fundedBy">
<label class="p-text-secondary">Funded by</label>
<p>{{ fundedBy }}</p>
<div class="label-value-pair">
<label class="p-text-secondary">Funded by</label>
<p>{{ fundedBy }}</p>
</div>
</template>
<template v-if="authors">
<label class="p-text-secondary">Authors</label>
<p>{{ authors }}</p>
<div class="label-value-pair">
<label class="p-text-secondary">Authors</label>
<p>{{ authors }}</p>
</div>
</template>
<template v-if="uses">
<h5>Uses</h5>
<label class="p-text-secondary">Direct use</label>
<p>{{ uses.DirectUse }}</p>
<label class="p-text-secondary">Out of scope use</label>
<p>{{ uses.OutOfScopeUse }}</p>
<div class="label-value-pair mt-2">
<h6>Uses</h6>
<label class="p-text-secondary">Direct use</label>
<p>{{ uses.DirectUse }}</p>
</div>
<div class="label-value-pair">
<label class="p-text-secondary">Out of scope use</label>
<p>{{ uses.OutOfScopeUse }}</p>
</div>
</template>

<template v-if="biasAndRiskLimitations">
<h5>Bias and Risk Limitations</h5>
<p>{{ biasAndRiskLimitations }}</p>
<div class="label-value-pair mt-2">
<h6>Bias and Risk Limitations</h6>
<p>{{ biasAndRiskLimitations }}</p>
</div>
</template>

<template v-if="evaluation">
<h5>Evaluation</h5>
<p>{{ evaluation }}</p>
<div class="label-value-pair mt-2">
<h6>Evaluation</h6>
<p>{{ evaluation }}</p>
</div>
</template>

<template v-if="technicalSpecifications">
<h5>Technical Specifications</h5>
<p>{{ technicalSpecifications }}</p>
<div class="label-value-pair mt-2">
<h6>Technical Specifications</h6>
<p>{{ technicalSpecifications }}</p>
</div>
</template>

<template v-if="!isEmpty(glossary)">
<h5>Glossary</h5>
<p>{{ glossary.join(', ') }}</p>
<div class="label-value-pair mt-2">
<h6>Glossary</h6>
<p>{{ glossary.join(', ') }}</p>
</div>
</template>

<template v-if="!isEmpty(moreInformation)">
<h5>More Information</h5>
<a
v-for="(link, index) in moreInformation"
:href="link"
target="_blank"
rel="noopener noreferrer"
:key="index"
>{{ link }}</a
>
<div class="label-value-pair mt-2">
<h6>More Information</h6>
<a
v-for="(link, index) in moreInformation"
:href="link"
target="_blank"
rel="noopener noreferrer"
:key="index"
>{{ link }}</a
>
</div>
</template>

<template v-if="!isEmpty(provenance)">
<h5>Provenance</h5>
<p v-html="provenance" />
<div class="label-value-pair mt-2">
<h6>Provenance</h6>
<p v-html="provenance" />
</div>
</template>
<template v-if="!isEmpty(schema)">
<h5>Schema</h5>
<p v-html="schema" />
<div class="label-value-pair mt-2">
<h6>Schema</h6>
<p v-html="schema" />
</div>
</template>
<template v-if="!isEmpty(sourceDataset)">
<h5>Source dataset</h5>
<p v-html="sourceDataset" />
<div class="label-value-pair mt-2">
<h6>Source dataset</h6>
<p v-html="sourceDataset" />
</div>
</template>
<template v-if="!isEmpty(usage)">
<h5>Usage</h5>
<p v-html="usage" />
<div class="label-value-pair mt-2">
<h6>Usage</h6>
<p v-html="usage" />
</div>
</template>
</section>
</AccordionTab>
Expand Down Expand Up @@ -283,13 +311,17 @@ function updateConfiguration(updatedConfiguration: ModelConfiguration) {
gap: 0.5rem;
margin-left: 1.5rem;
}

.details-column {
display: flex;
flex-direction: column;
gap: var(--gap-small);
}

.label-value-pair {
display: flex;
flex-direction: column;
gap: 0rem;
}
.framework {
text-transform: capitalize;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
>
<div v-html="text"></div>
</div>
<span v-if="text > ''" @click="collapseOrExpand">
<span v-if="text > '' && (triggerShowMore || expanded)" @click="collapseOrExpand">
<template v-if="triggerShowMore">Show more</template>
<template v-if="expanded">Show less</template>
</span>
Expand Down
Loading