Skip to content

Console tutorial date based badge#253505

Merged
wildemat merged 5 commits intoelastic:mainfrom
wildemat:ab-tutorial-patch
Feb 18, 2026
Merged

Console tutorial date based badge#253505
wildemat merged 5 commits intoelastic:mainfrom
wildemat:ab-tutorial-patch

Conversation

@wildemat
Copy link
Copy Markdown
Contributor

@wildemat wildemat commented Feb 17, 2026

Summary

  • change description text of agent builder tutorial
  • use 30 day time frame to apply the "new" badge given a tutorial's publish date (this really only is useful for the serverless release cadence)
Screenshot 2026-02-17 at 11 51 35 AM

@wildemat wildemat changed the title description change. date based badges Console tutorial date based badge Feb 17, 2026
@wildemat wildemat marked this pull request as ready for review February 17, 2026 16:52
@wildemat wildemat requested a review from a team as a code owner February 17, 2026 16:52
@wildemat wildemat requested a review from kevinsweet February 17, 2026 16:52
@wildemat wildemat added v9.3.0 v9.4.0 release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels labels Feb 17, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces hardcoded "new" badges with a date-based system that automatically determines if a tutorial should display the "New" badge based on a 30-day timeframe from its publication date.

Changes:

  • Replaced the manual isNew boolean flag with a publishedAt Date field for tutorials
  • Implemented an isNew() utility function that calculates if a tutorial is less than 30 days old
  • Updated tutorial sorting to use orderBy by publication date instead of sortBy by the isNew flag

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

File Description
console_tutorials_group.tsx Replaced isNew boolean with publishedAt dates for each tutorial and updated sorting logic
utils.ts Added isNew() function to determine badge visibility based on 30-day threshold
utils.test.ts Added comprehensive test coverage for the isNew() function
jest.config.js Added Jest configuration for the search_getting_started plugin

@wildemat wildemat enabled auto-merge (squash) February 18, 2026 15:09
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Feb 18, 2026

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #21 / FilterLabel should render properly
  • [job] [logs] FTR Configs #57 / lens serverless - group 1 - subgroup 6 lens logsdb smoke testing functions support "after each" hook for "should visualize correctly ES|QL queries based on a LogsDB stream"
  • [job] [logs] FTR Configs #57 / lens serverless - group 1 - subgroup 6 lens logsdb smoke testing functions support Scenarios with changing stream type Data-stream upgraded to LogsDB scenarios LogsDB stream with an additional TSDB stream downsampled should visualize correctly ES|QL queries based on a LogsDB stream
  • [job] [logs] Jest Tests #9 / Mappings editor: core component props semantic_text field tests updates mapping with reference field value for semantic_text field

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
searchGettingStarted 264 265 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
searchGettingStarted 180.1KB 180.4KB +251.0B

History

@wildemat wildemat merged commit 27990d7 into elastic:main Feb 18, 2026
13 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 9.3

https://github.com/elastic/kibana/actions/runs/22150746053

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
9.3 Backport failed because of merge conflicts

You might need to backport the following PRs to 9.3:
- [Scout] Improve test target definition and tagging (#251436)

Manual backport

To create the backport manually run:

node scripts/backport --pr 253505

Questions ?

Please refer to the Backport tool documentation

chrisbmar pushed a commit to chrisbmar/kibana that referenced this pull request Feb 19, 2026
## Summary

- change description text of agent builder tutorial
- use 30 day time frame to apply the "new" badge given a tutorial's
publish date (this really only is useful for the serverless release
cadence)

<img width="500" height="763" alt="Screenshot 2026-02-17 at 11 51 35 AM"
src="https://github.com/user-attachments/assets/ca76b803-6d73-47d3-ba82-954e62225fa9"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
ersin-erdal pushed a commit to ersin-erdal/kibana that referenced this pull request Feb 19, 2026
## Summary

- change description text of agent builder tutorial
- use 30 day time frame to apply the "new" badge given a tutorial's
publish date (this really only is useful for the serverless release
cadence)

<img width="500" height="763" alt="Screenshot 2026-02-17 at 11 51 35 AM"
src="https://github.com/user-attachments/assets/ca76b803-6d73-47d3-ba82-954e62225fa9"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 20, 2026
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 253505 locally
cc: @wildemat

1 similar comment
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 253505 locally
cc: @wildemat

@wildemat wildemat added backport:skip This PR does not require backporting and removed backport:version Backport to applied version labels labels Feb 23, 2026
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes v9.3.0 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants