Skip to content

Commit

Permalink
#3355 remove references of 'Beta' search (#3361)
Browse files Browse the repository at this point in the history
  • Loading branch information
athu-tran authored Dec 17, 2024
1 parent 5eca6dd commit 543e416
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 39 deletions.
46 changes: 8 additions & 38 deletions src/components/cveRecordSearchModule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,19 @@
aria-labelledby="alertIconVariousFormts" aria-hidden="false" />
</div>
<div class="is-flex-grow-5">
<p class="mb-2">The <a href="https://test.cve.org">CVE Test website</a> has a new drop-down menu below.</p>
<ol class="cve-help-text pl-4" v-if="showSearchHelpText">
<li class="mb-2">
<p>
<span class="has-text-weight-bold">Search Capability (Beta) Community testers</span> – To beta-test the new search feature, select
“<span class="has-text-weight-bold">Search CVE List (Beta)</span>” in the drop-down menu. The
<span class="has-text-weight-bold">production</span> data is used and newly published data typically becomes searchable within less than
30 minutes.
<router-link to="/ResourcesSupport/FAQs#pc_cve_list_basicssearch_cve" class="cve-dark-blue-text">Access Search Tips</router-link>
for more information on this new capability.
</p>
<p>
<a href="https://forms.office.com/g/qmmTaYnr5y" target="_blank">
Provide feedback on the new search capability
<span class="icon cve-icon-xxs">
<p id="externalSurveyLink" class="is-hidden">
Survey opens in a new tab or window depending on browser settings
</p>
<font-awesome-icon icon="external-link-alt" aria-labelledby="extenalSurveyLink" aria-hidden="false" class="ml-1"/>
</span>.
</a>.
</p>
</li>
<li>
<span class="has-text-weight-bold">CNAs</span> – to view your <span class="has-text-weight-bold">test data</span>
(your draft records) select “<span class="has-text-weight-bold">Find a Test CVE Record/ID (Legacy)</span>” in the drop-down menu and
provide a CVE ID to find a specific CVE Record.
</li>
</ol>
<p class="is-size-7">
<span class="has-text-weight-bold">CNAs</span> – to view your <span class="has-text-weight-bold">test data</span>
(your draft records) select “<span class="has-text-weight-bold">Find a Test CVE Record/ID (Legacy)</span>” in the drop-down menu and
provide a CVE ID to find a specific CVE Record.
</p>
</div>
<button class="cve-button-ghost cve-btn-container mt-1" @click="showSearchHelpText = !showSearchHelpText" style="float: right !important">
<font-awesome-icon size="1x" :icon="showSearchHelpText ? 'minus' : 'plus'" role="alert"
aria-labelledby="alertIconVariousFormts" aria-hidden="false" />
</button>
</div>
</div>
<div class="field has-addons mt-1">
<p class="control">
<span v-if="websiteEnv !== 'prd'" class="select cve-search-selector">
<select v-model="searchType">
<option>Search CVE List (Beta)</option>
<option>Search CVE List</option>
<option>Find a Test CVE Record/ID (Legacy)</option>
</select>
</span>
Expand Down Expand Up @@ -98,15 +70,13 @@ let errorMessage = ref('');
let cveGenericGlobalsStore = useGenericGlobalsStore();
let cveRecordStore = usecveRecordStore();
let searchType = ref('Search CVE List (Beta)');
let searchType = ref('Search CVE List');
let cveId = cveRecordStore.cveId;
let showSearchHelpText = ref(false);
// this seems redundant, but it fixes an edge case.
// if a user searches for a particular field, then on the results page flips the toggle, THEN refreshes without searching, this will keep the correct helper text showing.
let searchTypeBoolean = computed(() => {
return searchType.value == 'Search CVE List (Beta)' ? true : false;
return searchType.value == 'Search CVE List' ? true : false;
});
watch(searchType, () => {
Expand Down
2 changes: 1 addition & 1 deletion src/views/ResourcesSupport/FAQs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<div :id="item.sectionId + qAndA.questionId + 'response'" class="message-body"
:class="{'is-hidden': accordion[item.sectionId + qAndA.questionId]}">
<div v-if="qAndA.questionId == 'search_cve'" class="pb-3">
<p class="has-text-weight-bold"><span v-if="websiteEnv !== 'prd'">TEST.CVE.ORG </span>Search CVE List (Beta) Tips</p>
<p class="has-text-weight-bold"><span v-if="websiteEnv !== 'prd'">TEST.CVE.ORG </span>Search CVE List Tips</p>
<ul>
<li>Search the CVE List by keywords using the
<router-link :to="{ hash: '#cve-secondary-navbar' }">search box</router-link> at the top of this page.
Expand Down

0 comments on commit 543e416

Please sign in to comment.