Skip to content

[Lens as code] Add list layout to the new API#259967

Merged
maryam-saeidi merged 17 commits intoelastic:mainfrom
maryam-saeidi:258022-lens-as-code-list-layout-schema
Mar 31, 2026
Merged

[Lens as code] Add list layout to the new API#259967
maryam-saeidi merged 17 commits intoelastic:mainfrom
maryam-saeidi:258022-lens-as-code-list-layout-schema

Conversation

@maryam-saeidi
Copy link
Copy Markdown
Member

Closes #258022

Summary

This PR adds list legend property to the new API:

// Grid Layout
{
  "visibility": "visible",
  "position": "right",
  "layout": {
    "type": "grid",
    "truncate": {
      "max_lines": 2
    }
  }
}

// List Layout
{
  "visibility": "auto",
  "position": "bottom",
  "layout": {
    "type": "list",
    "truncate": {
      "max_pixels": 240
    }
  }
}

@maryam-saeidi maryam-saeidi self-assigned this Mar 27, 2026
@maryam-saeidi maryam-saeidi added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Mar 27, 2026
@maryam-saeidi maryam-saeidi marked this pull request as ready for review March 27, 2026 12:29
@maryam-saeidi maryam-saeidi requested a review from a team as a code owner March 27, 2026 12:29
Copy link
Copy Markdown
Contributor

@markov00 markov00 left a comment

Choose a reason for hiding this comment

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

Overall looks good, if we can strength a bit more the types would be great

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Mar 30, 2026

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.eqlRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.eqlRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.indicatorRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.indicatorRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.mlRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.mlRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.newTermsRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.newTermsRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.queryRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.queryRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.savedQueryRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.savedQueryRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.thresholdRule
  • [job] [logs] Jest Integration Tests #10 / Serverless upgrade and rollback checks detect param changes to review for: siem.thresholdRule

Metrics [docs]

Async chunks

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

id before after diff
agentBuilder 660.1KB 660.9KB +850.0B
cases 2.0MB 2.0MB +850.0B
dashboard 845.9KB 846.7KB +850.0B
dashboardAgent 132.2KB 133.1KB +850.0B
discover 1.6MB 1.6MB +850.0B
infra 1.3MB 1.3MB +850.0B
lens 2.0MB 2.0MB +1.5KB
observability 2.2MB 2.2MB +850.0B
observabilityAIAssistantApp 326.6KB 327.4KB +850.0B
unifiedDocViewer 421.3KB 422.1KB +850.0B
total +9.0KB

History

cc @maryam-saeidi

Copy link
Copy Markdown
Contributor

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

Amazing! Thanks for the changes!

@maryam-saeidi maryam-saeidi merged commit 53d896f into elastic:main Mar 31, 2026
19 checks passed
@maryam-saeidi maryam-saeidi deleted the 258022-lens-as-code-list-layout-schema branch March 31, 2026 08:56
mbondyra added a commit to mbondyra/kibana that referenced this pull request Mar 31, 2026
…e_for_children6

* commit '3402744f63ca1196e97b11ffac4e7f7efab240df': (80 commits)
  [PerUserAuth] Add EARS auth type for Connectors V2 (elastic#253695)
  Fix `@elastic/eui/require-aria-label-for-modals` lint violations across `@elastic/kibana-core` files (elastic#259757)
  [Entity Analytics][Leads generation][4] Add API routes, LeadDataClient, and async generation (elastic#257046)
  [Agent Builder] Agent-centric UX redesign (elastic#258005)
  fix query streams failing test (elastic#260277)
  [Lens as code] Add list layout to the new API (elastic#259967)
  [FTR] Add warning comments to deployment-agnostic FTR base configs (elastic#260018)
  [Discover][Logs profile] Fix missing search highlights (elastic#260056)
  Plugin system: safe deletion (elastic#259038)
  [Infra] Fix Hosts filter options to match selected schema (elastic#259825)
  Manual Entity Resolution and flyout representation (elastic#260162)
  [Cascade] Handle grouping on fields with unset values (elastic#260033)
  [Fleet] generate OTel config for integration packages with otelcol inputs (elastic#259968)
  [Search] Switch over to V2 index management details (elastic#259866)
  [inference] increase timeout for ES inference calls (elastic#260382)
  [ES|QL] Enable subqueries (elastic#257455)
  [ES|QL] Change Point order free options (elastic#260282)
  [Auth] Added authentication strategy for UIAM OAuth (elastic#256182)
  [Security Solution] Add "alerts_candidate_count" rule execution metric (elastic#259917)
  [api-docs] 2026-03-31 Daily api_docs build (elastic#260380)
  ...
jeramysoucy pushed a commit to jeramysoucy/kibana that referenced this pull request Apr 1, 2026
Closes elastic#258022

## Summary

This PR adds list legend property to the new API:

```
// Grid Layout
{
  "visibility": "visible",
  "position": "right",
  "layout": {
    "type": "grid",
    "truncate": {
      "max_lines": 2
    }
  }
}

// List Layout
{
  "visibility": "auto",
  "position": "bottom",
  "layout": {
    "type": "list",
    "truncate": {
      "max_pixels": 240
    }
  }
}
```
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Apr 2, 2026
Closes elastic#258022

## Summary

This PR adds list legend property to the new API:

```
// Grid Layout
{
  "visibility": "visible",
  "position": "right",
  "layout": {
    "type": "grid",
    "truncate": {
      "max_lines": 2
    }
  }
}

// List Layout
{
  "visibility": "auto",
  "position": "bottom",
  "layout": {
    "type": "list",
    "truncate": {
      "max_pixels": 240
    }
  }
}
```
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.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Lens as code] Add list legend layout

5 participants