Add tag links to page content results

Update PageContentResultsView.swift
This commit is contained in:
Christoph Hagen 2025-02-27 22:52:02 +01:00
parent b08303cd12
commit 5dc63732f8

View File

@ -54,7 +54,9 @@ struct PageContentResultsView: View {
private var totalLinkCount: Int {
results.externalLinks.count +
results.missingLinkedPages.count +
results.linkedPages.count
results.linkedPages.count +
results.missingLinkedTags.count +
results.linkedTags.count
}
private var allLinks: [TextWithSymbol] {
@ -66,7 +68,7 @@ struct PageContentResultsView: View {
}
+ results.missingLinkedPages.keys.map {
TextWithSymbol(
symbol: .questionmarkCircleFill,
symbol: .doc,
color: .red,
text: $0)
}
@ -76,8 +78,20 @@ struct PageContentResultsView: View {
color: .blue,
text: $0.title(in: language))
}
+ results.missingLinkedTags.keys.map {
TextWithSymbol(
symbol: .tagSlash,
color: .red,
text: $0)
}
+ results.linkedTags.map {
TextWithSymbol(
symbol: .tag,
color: .blue,
text: $0.title(in: language))
}
}
var body: some View {
HStack {
PopupWithList(