Skip to content

feat(compass-collection): Create Preview and Doc Count Screen – CLOUDP-381907#7847

Merged
jcobis merged 9 commits intomainfrom
CLOUDP-381907
Mar 6, 2026
Merged

feat(compass-collection): Create Preview and Doc Count Screen – CLOUDP-381907#7847
jcobis merged 9 commits intomainfrom
CLOUDP-381907

Conversation

@jcobis
Copy link
Collaborator

@jcobis jcobis commented Mar 5, 2026

Description

Document count input and preview screen

  • Creates combined screen for document count input and preview display of generated documents.
  • Document count input with validation
  • Rich document preview using DocumentList.Document with HadronDocument for 3 sample documents
image

Raw schema confirmation screen drive-by

Drive-by: In the confirmation screen, ensure the sample values setting banner below the schema view remains visible without scrolling for large schemas. Fixed by making the schema view scrollable with a max height.
image

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • If this change could impact the load on the MongoDB cluster, please describe the expected and worst case impact
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@jcobis jcobis requested a review from a team as a code owner March 5, 2026 18:56
@jcobis jcobis requested review from Copilot and ivandevp March 5, 2026 18:56
@github-actions github-actions bot added the feat label Mar 5, 2026
@jcobis jcobis changed the title feat(compass-collection): Create Preview and Doc Count Screen - CLOUDP-381907 feat(compass-collection): Create Preview and Doc Count Screen – CLOUDP-381907 Mar 5, 2026
@jcobis jcobis added the no release notes Fix or feature not for release notes label Mar 5, 2026
Copy link
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@jcobis jcobis requested a review from mabaasit March 5, 2026 20:34
data-testid="document-count-input"
/>
<div>
<Body className={estimatedDiskSizeLabelStyles}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can use the weight prop on Body component.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

import { generateDocument } from './script-generation-utils';
import { validateDocumentCount } from './utils';

const FAKER_FUNCTIONS_URL = 'https://fakerjs.dev/api/';
Copy link
Collaborator

Choose a reason for hiding this comment

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

We are using this at other places as well, maybe we refactor it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good suggestion, done

@jcobis jcobis merged commit a6cdd65 into main Mar 6, 2026
121 of 126 checks passed
@jcobis jcobis deleted the CLOUDP-381907 branch March 6, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat no release notes Fix or feature not for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants