UX: Remove version from "What's new?" items (#30596)

This version number is a technical detail that controls
what items show up on certain sites, most admins don't
need this level of detail. Remove it here, maybe we can
add it back in some hidden way later if needed.
This commit is contained in:
Martin Brennan 2025-01-07 10:06:10 +10:00 committed by GitHub
parent 2d424676fc
commit bcc34420bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 12 deletions

View File

@ -85,11 +85,6 @@ export default class DiscourseNewFeatureItem extends Component {
</span>
{{/if}}
</h3>
{{#if @item.discourse_version}}
<div class="admin-new-feature-item__new-feature-version">
{{@item.discourse_version}}
</div>
{{/if}}
</div>
<div class="admin-new-feature-item__body-wrapper">

View File

@ -56,7 +56,6 @@ describe "Admin New Features Page", type: :system do
expect(new_features_page).to have_learn_more_link
expect(new_features_page).to have_no_emoji
expect(new_features_page).to have_date("November 2023")
expect(new_features_page).to have_version("3.3.0.beta4")
end
within find(".admin-config-area-card:last-child") do
@ -64,7 +63,6 @@ describe "Admin New Features Page", type: :system do
expect(new_features_page).to have_learn_more_link
expect(new_features_page).to have_no_emoji
expect(new_features_page).to have_date("August 2023")
expect(new_features_page).to have_version("3.3.0.beta3")
end
end

View File

@ -32,11 +32,6 @@ module PageObjects
page.has_no_css?(".admin-new-feature-item__new-feature-emoji")
end
def has_version?(version)
element = find(".admin-new-feature-item__new-feature-version")
element.has_text?(version)
end
def has_date?(date)
element = find(".admin-config-area-card__title")
element.has_text?(date)