-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sc-7934] warning when new nucliadb version is available (#1189)
* Fix dropdown button style * [sc-7934] Display the versions used in NucliaDB admin - Display NucliaDB and NucliaDB Admin version in the home page - Display a toast message when a newer version of NucliaDB or NucliaDB Admin is available * Fix unit tests and search warning when no NUA * Fix search options white space in resource list
- Loading branch information
1 parent
f53d3d7
commit 5c5232e
Showing
21 changed files
with
401 additions
and
195 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import 'variables'; | ||
@import 'apps/nucliadb-admin/src/variables'; | ||
|
||
.version { | ||
position: fixed; | ||
|
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
75 changes: 38 additions & 37 deletions
75
apps/nucliadb-admin/src/app/home/home-page.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,38 +1,39 @@ | ||
<div class="home-container body-m"> | ||
<ng-container *ngIf="hasValidKey | async"> | ||
<p> | ||
By using a NUA API Key you can utilize | ||
<a | ||
href="https://nuclia.cloud" | ||
target="_blank"> | ||
Nuclia's Cloud Processing Engine | ||
</a> | ||
</p> | ||
<p>Your data remains stored locally, but you have access to a dashboard for following your metrics and more.</p> | ||
</ng-container> | ||
|
||
<div *ngIf="(hasValidKey | async) === false"> | ||
<h1> | ||
<pa-icon | ||
name="warning" | ||
size="xlarge"></pa-icon> | ||
{{ errorMessage | async }} | ||
</h1> | ||
<p> | ||
Provide your NUA API Key by using the environment variable | ||
<code>NUA_API_KEY</code> | ||
or the | ||
<code>--nuclia-api-key</code> | ||
cli flag. | ||
</p> | ||
<p> | ||
If you don't have a NUA API Key follow this | ||
<a | ||
href="https://docs.nuclia.dev/docs/docs/getting-started/on-premise" | ||
rel="noopener noreferrer" | ||
target="_blank"> | ||
guide | ||
</a> | ||
</p> | ||
</div> | ||
<div class="home-page page-spacing"> | ||
@if (version | async; as versions) { | ||
<div class="version-container container-box"> | ||
<strong>NucliaDB:</strong> | ||
<div> | ||
{{ versions.nucliadb.installed }} | ||
</div> | ||
<strong>NucliaDB Admin:</strong> | ||
<div> | ||
{{ versions['nucliadb-admin-assets'].installed }} | ||
</div> | ||
<strong>NUA API Key:</strong> | ||
<div class="check-item"> | ||
@if (hasValidKey | async) { | ||
<div> | ||
<div> | ||
<pa-icon | ||
class="primary" | ||
name="circle-check"></pa-icon> | ||
<span [innerHTML]="'standalone.nua-key-status.valid.nua-allows-to' | translate"></span> | ||
</div> | ||
<div>{{ 'standalone.nua-key-status.valid.store-locally' | translate }}</div> | ||
</div> | ||
} @else { | ||
<div> | ||
<div> | ||
<pa-icon | ||
class="destructive" | ||
name="warning"></pa-icon> | ||
<strong>{{ errorMessage | async }}</strong> | ||
</div> | ||
<div [innerHTML]="'standalone.nua-key-status.invalid.provide-by' | translate"></div> | ||
<div [innerHTML]="'standalone.nua-key-status.invalid.how-to-get-nua-key' | translate"></div> | ||
</div> | ||
} | ||
</div> | ||
</div> | ||
} | ||
</div> |
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
10 changes: 5 additions & 5 deletions
10
apps/nucliadb-admin/src/app/home/main-container/main-container.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,7 +1,7 @@ | ||
<div | ||
class="upload-bar-container" | ||
*ngIf="showBar | async"> | ||
<stf-upload-bar></stf-upload-bar> | ||
</div> | ||
@if (showBar | async) { | ||
<div class="upload-bar-container"> | ||
<stf-upload-bar></stf-upload-bar> | ||
</div> | ||
} | ||
|
||
<router-outlet></router-outlet> |
2 changes: 1 addition & 1 deletion
2
apps/nucliadb-admin/src/app/home/main-container/main-container.component.scss
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,4 @@ | ||
@import 'variables'; | ||
@import 'apps/nucliadb-admin/src/variables'; | ||
|
||
.upload-bar-container { | ||
position: sticky; | ||
|
Oops, something went wrong.