Skip to content

Commit

Permalink
first_party flag
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorhelene authored and svrnm committed Nov 11, 2024
1 parent b9a1e1d commit b580479
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
10 changes: 4 additions & 6 deletions assets/js/registrySearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,10 @@ function updateFilters() {
const languageMatches = (dl === selectedLanguage || selectedLanguage === 'all');
const flagMatches = (selectedFlag === 'all' || df.includes(selectedFlag.toLowerCase()));

console.log('Selected Flag:', selectedFlag);
console.log('Registry Flags:', df);

if (flagMatches) {
console.log('Flag matches:', df);
}

if (flagMatches) {
console.log('Flag matches:', df);
}


if (componentMatches && languageMatches && flagMatches) { // Changed
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/ecosystem/registry/entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
{{ $flags = $flags | append "native" -}}
{{ end -}}
{{ if $isFirstParty -}}
{{ $flags = $flags | append "firstparty" -}}
{{ $flags = $flags | append "first_party" -}}
{{ end -}}
{{ if $usedInDemo -}} <!-- Check if the entry was used in a demo -->
{{ $flags = $flags | append "used in demo" -}}
Expand Down
3 changes: 1 addition & 2 deletions layouts/shortcodes/ecosystem/registry/search-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{{ $flags = $flags | append "native" -}}
{{ end -}}
{{ if .isFirstParty -}}
{{ $flags = $flags | append "firstparty" -}}
{{ $flags = $flags | append "first_party" -}}
{{ end -}}
{{ if .isNew -}}
{{ $flags = $flags | append "new" -}}
Expand All @@ -66,7 +66,6 @@
{{ end -}}
{{ $uniqueFlags := $allFlags | uniq | sort }}

{{ printf "Unique Flags: %v" $uniqueFlags }}

<div class="alert alert-info">
The OpenTelemetry Registry allows you to search for instrumentation libraries,
Expand Down

0 comments on commit b580479

Please sign in to comment.