Skip to content

Commit

Permalink
Add tooltip infos
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMDoerner committed Dec 17, 2024
1 parent 5bec27e commit 73ddc98
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/app/campaign/pages/graph-page/graph-page.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<app-page-container>
<article class="container">
<h1 class="text-center mb-3">Wiki Overview</h1>
<h2 class="fs-5">Node Categories</h2>
<h2 class="fs-5">
<app-info-circle-tooltip
[text]="'Node Categories'"
[tooltip]="
'Nodes in the graph represent Articles in the Wiki that repell each other'
"
></app-info-circle-tooltip>
</h2>
<div class="row mb-3">
@for (category of nodeCategories(); track category.label) {
<app-selectable-entry
Expand All @@ -14,7 +21,14 @@ <h2 class="fs-5">Node Categories</h2>
></app-selectable-entry>
}
</div>
<h2 class="fs-5">Link Categories</h2>
<h2 class="fs-5">
<app-info-circle-tooltip
[text]="'Link Categories'"
[tooltip]="
'The different kinds of connections between articles. Some are inferred automatically, the rest are custom-links added by users.'
"
></app-info-circle-tooltip>
</h2>
<div class="row mb-3">
@let linkCategories = (linkCategories$ | async) ?? [];
@for (category of linkCategories; track category) {
Expand Down
2 changes: 2 additions & 0 deletions src/app/campaign/pages/graph-page/graph-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import { GraphService } from 'src/design/organisms/graph/graph.service';
import { filterNil } from 'src/utils/rxjs-operators';
import { capitalize } from 'src/utils/string';
import { CardComponent } from '../../../../design/atoms/card/card.component';
import { InfoCircleTooltipComponent } from '../../../../design/atoms/info-circle-tooltip/info-circle-tooltip.component';
import { PlaceholderComponent } from '../../../../design/atoms/placeholder/placeholder.component';
import { SelectableEntryComponent } from '../../../../design/atoms/selectable-entry/selectable-entry.component';
import { ArticleFooterComponent } from '../../../../design/molecules/article-footer/article-footer.component';
Expand Down Expand Up @@ -85,6 +86,7 @@ import { GraphPageStore } from './graph-page.store';
GraphSettingsModalComponent,
PlaceholderComponent,
AsyncPipe,
InfoCircleTooltipComponent,
],
templateUrl: './graph-page.component.html',
styleUrl: './graph-page.component.scss',
Expand Down

0 comments on commit 73ddc98

Please sign in to comment.