forked from geonetwork/geonetwork-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
968 additions
and
176 deletions.
There are no files selected for viewing
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,49 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve GeoNetwork-UI | ||
title: '' | ||
labels: 'bug' | ||
assignees: '' | ||
--- | ||
|
||
### Describe the bug | ||
|
||
When opening the application [...] | ||
|
||
<!-- | ||
Please provide an in-depth description of the problem witnessed and in which context it happens, as well as the expected result. | ||
--> | ||
|
||
- GeoNetwork-UI version used: [`X.X.X` or `main`] | ||
|
||
- Application: [...] | ||
|
||
<!-- | ||
Ideally, these steps should be reproducible with the local docker composition in `support-services`. If not, please provide a link to an online platform from which the problem can be investigated. | ||
--> | ||
|
||
### Expected behaviour | ||
|
||
The application should [...] | ||
|
||
<!-- | ||
Please describe here the expected behavior of the application | ||
--> | ||
|
||
### Steps To Reproduce | ||
|
||
- Run [...] | ||
- Open [...] | ||
- Click on [...] | ||
|
||
<!-- | ||
Ideally, these steps should be reproducible with the local docker composition in `support-services`. If not, please provide a link to an online platform from which the problem can be investigated. | ||
--> | ||
|
||
### Screenshots | ||
|
||
[...] | ||
|
||
<!-- | ||
Please add screenshots showing the unexpected visual result, or even better an animated screen capture. | ||
--> |
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,33 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea or request a feature for this project | ||
title: '' | ||
labels: 'feature request' | ||
assignees: | ||
--- | ||
|
||
### Description | ||
|
||
I would like to request adding [...] | ||
|
||
<!-- | ||
Please describe here what you think constitute a valuable improvement to the project. | ||
--> | ||
|
||
### Motivation | ||
|
||
This request stems from the fact that [...] | ||
|
||
<!-- | ||
Please describe here the underlying motivation from this request/suggestion: a recurring complaint from users, a technical limitation, bad performance, etc. | ||
Also please keep in mind that writing a request does _not_ mean it will get implemented automatically! The best way to see an improvement happen is to secure funding for it, or to contribute it directly. | ||
--> | ||
|
||
### Inspiration and context | ||
|
||
This request takes inspiration from [...] | ||
|
||
<!-- | ||
Share here any link/image that might help other people understand the intended outcome, as well as more information about the context this request might have emerged from. | ||
--> |
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,57 @@ | ||
--- | ||
name: Proposal | ||
about: Describe a feature or tech task that you intend to push forward | ||
title: '' | ||
labels: 'enhancement' | ||
assignees: '' | ||
--- | ||
|
||
### Description of the proposal | ||
|
||
This proposal aims at adding [...] | ||
|
||
The final outcome will be [...] | ||
|
||
<!-- | ||
Proposals can either be of technical or functional nature. Please describe the intended outcome clearly as to better communicate your intention. | ||
--> | ||
|
||
### Motivation | ||
|
||
This proposal stems from the fact that [...] | ||
|
||
<!-- | ||
Optionally, please describe here the underlying motivation from this proposal: a recurring complaint from users, a technical limitation, bad performance, etc. | ||
--> | ||
|
||
### Scope | ||
|
||
This proposal affects [...] | ||
|
||
<!-- | ||
A proposal scope can either be an application, a specific page or component, a module, a dependency... | ||
--> | ||
|
||
### Possible alternatives | ||
|
||
Another way of achieving this could be to [...] | ||
|
||
<!-- | ||
It is always good to provide alternatives in case the main proposal does not gather a high enough approval | ||
--> | ||
|
||
### Inspiration and context | ||
|
||
This proposal takes inspiration from [...] | ||
|
||
<!-- | ||
Share here any link/image that might help other people understand the intended outcome, as well as more information about the context this proposal might have emerged from. | ||
--> | ||
|
||
--- | ||
|
||
<!-- | ||
Please give credit to the sponsor of this work if possible. If this work is not funded yet, please let it be known clearly!! | ||
--> | ||
|
||
**This work is sponsored by [Organization ABC](xx)**. |
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,45 @@ | ||
### Description | ||
|
||
This PR introduces [...] | ||
|
||
<!-- | ||
Describe here the changes brought by this PR. Do not forget to link any relevant issue or discussion to help people review your work! | ||
--> | ||
|
||
### Architectural changes | ||
|
||
The following library now depends on [...] | ||
|
||
<!-- | ||
Describe here any changes to the project architecture: adding/removing modules or libraries, changing dependencies between libraries and apps, changes to external NPM dependencies... | ||
--> | ||
|
||
### Screenshots | ||
|
||
[...] | ||
|
||
<!-- | ||
If the changes incur visual changes, please include screenshots or an animated screen capture. | ||
--> | ||
|
||
### Quality Assurance Checklist | ||
|
||
- [ ] Commit history is devoid of any _merge commits_ and readable to facilitate reviews | ||
- [ ] If **new logic** ⚙️ is introduced: unit tests were added | ||
- [ ] If **new user stories** 🤏 are introduced: E2E tests were added | ||
- [ ] If **new UI components** 🕹️ are introduced: corresponding stories in Storybook were created | ||
- [ ] If **breaking changes** 🪚 are introduced: add the `breaking change` label | ||
- [ ] If **bugs** 🐞 are fixed: add the `backport <release branch>` label | ||
- [ ] The [documentation website](docs) 📚 has received the love it deserves | ||
|
||
<!-- | ||
Please only check items relevant to your contribution. Thank you very much for your time and efforts! | ||
--> | ||
|
||
--- | ||
|
||
<!-- | ||
Please give credit to the sponsor of this work if possible. | ||
--> | ||
|
||
**This work is sponsored by [Organization ABC](xx)**. |
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
74 changes: 50 additions & 24 deletions
74
apps/datahub/src/app/record/header-record/header-record.component.html
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,36 +1,62 @@ | ||
<header class="w-full h-[231px]" [style.background]="backgroundCss"> | ||
<header class="w-full h-[255px]" [style.background]="backgroundCss"> | ||
<div | ||
class="h-full container-lg mx-auto flex flex-col justify-center relative" | ||
class="h-full container-lg mx-auto flex flex-col justify-between relative" | ||
> | ||
<gn-ui-favorite-star | ||
*ngIf="metadata?.uniqueIdentifier" | ||
[record]="metadata" | ||
class="absolute text-background top-[0.85em] right-[0.85em]" | ||
[style.color]="foregroundColor" | ||
[style.--star-toggle-enabled-color]="'var(--color-primary)'" | ||
[style.--star-toggle-disabled-color]="foregroundColor" | ||
></gn-ui-favorite-star> | ||
<div class="flex flex-row justify-between content-center mt-3"> | ||
<div class="ml-4"> | ||
<gn-ui-navigation-button | ||
(click)="back()" | ||
[label]="'datahub.search.back' | translate" | ||
[icon]="'arrow_back'" | ||
> | ||
</gn-ui-navigation-button> | ||
</div> | ||
<div class="flex flex-row mr-6 content-center gap-3"> | ||
<gn-ui-favorite-star | ||
*ngIf="metadata?.uniqueIdentifier" | ||
[record]="metadata" | ||
[displayCount]="false" | ||
class="flex text-background content-center" | ||
[style.color]="foregroundColor" | ||
[style.--star-toggle-enabled-color]="foregroundColor" | ||
[style.--star-toggle-disabled-color]="foregroundColor" | ||
></gn-ui-favorite-star> | ||
<gn-ui-language-switcher | ||
*ngIf="showLanguageSwitcher" | ||
class="language-switcher text-[13px] text-white bg-opacity-0 border border-white rounded mt-0.5" | ||
></gn-ui-language-switcher> | ||
</div> | ||
</div> | ||
<div | ||
*ngIf="metadata" | ||
class="font-title text-center px-2 text-[28px] mb-[41px] line-clamp-4 sm:mx-48" | ||
class="font-title text-[28px] max-w-screen-sm line-clamp-4 ml-4" | ||
[style.color]="foregroundColor" | ||
> | ||
{{ metadata.title }} | ||
</div> | ||
|
||
<div class="absolute" style="left: 16px; top: 16px"> | ||
<gn-ui-navigation-button | ||
(click)="back()" | ||
[label]="'datahub.search.back' | translate" | ||
[icon]="'navigate_before'" | ||
<div class="flex flex-row text-white gap-2 mb-4 ml-4"> | ||
<div | ||
*ngIf="(isGeodata$ | async) === true" | ||
class="flex flex-row bg-primary-darker rounded" | ||
> | ||
</gn-ui-navigation-button> | ||
<span class="material-symbols-outlined mt-0.5 ml-2 text-[20px]"> | ||
my_location | ||
</span> | ||
<p class="text-white ml-2 mr-2" translate>record.metadata.type</p> | ||
</div> | ||
<div *ngIf="metadata.recordUpdated" class="flex flex-row gap-1"> | ||
<p class="text-white" translate>record.metadata.lastUpdate</p> | ||
<p class="text-white"> | ||
{{ lastUpdate }} | ||
</p> | ||
</div> | ||
<div *ngIf="metadata.status" class="flex flex-row gap-2"> | ||
<p>•</p> | ||
<p | ||
class="text-white" | ||
[innerHTML]="'domain.record.status.' + metadata.status | translate" | ||
></p> | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<div | ||
class="container-lg mt-[-40px] z-20 sticky lg:mx-auto inset-x-0 top-[10px]" | ||
> | ||
<datahub-navigation-bar></datahub-navigation-bar> | ||
</div> |
Oops, something went wrong.