-
Couldn't load subscription status.
- Fork 0
TLE Test #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
TLE Test #2
Conversation
… design token for font size on monospace fonts, it’s 1.75rem which seems big. Fixed bug when selecting all text
…ith experimental Alpha-5 support
There was a problem hiding this 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 adds a new TLE validation utility and integrates a TLE input component across web, React, and Angular frameworks. It also extends Storybook examples, unit tests, and documentation to support both standard and Alpha‑5 formatted TLEs.
- Introduces the TLEValidator module with strict and flexible regex patterns and checksum verification.
- Updates Storybook stories and testing for the rux‑tle‑input component.
- Integrates the new TLE input component into React and Angular proxy definitions.
Reviewed Changes
Copilot reviewed 10 out of 18 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/web-components/src/utils/tle-validator.ts | Adds a new validation module with standard and flexible regex patterns for TLEs. |
| packages/web-components/src/stories/tle-input.stories.js | Provides multiple story examples for the TLE input component. |
| packages/web-components/src/components/rux-tle-input/test/rux-tle-input.spec.ts | Includes unit tests for validation, focus handling, event emission, and satellite info extraction. |
| packages/web-components/src/components/rux-tle-input/readme.md | Updates documentation to include Alpha‑5 extension support. |
| packages/react/src/components.tsx | Registers the new RuxTleInput React component. |
| packages/angular-workspace/projects/angular/src/directives/proxies.ts packages/angular-workspace/projects/angular/src/directives/proxies-list.ts |
Updates Angular proxies to include the new TLE input component. |
| .github/copilot-instructions.md | Adjusts internal instructions (not affecting component functionality). |
Files not reviewed (8)
- packages/angular-workspace/package-lock.json: Language not supported
- packages/angular-workspace/projects/angular/package-lock.json: Language not supported
- packages/framework-testing/astro-angular/package-lock.json: Language not supported
- packages/framework-testing/astro-vue/package-lock.json: Language not supported
- packages/react/package-lock.json: Language not supported
- packages/web-components/src/components/rux-tle-input/rux-tle-input.scss: Language not supported
- packages/web-components/src/stories/test.html: Language not supported
- packages/web-components/src/stories/tle-input.mdx: Language not supported
Comments suppressed due to low confidence (1)
packages/web-components/src/components/rux-tle-input/test/rux-tle-input.spec.ts:105
- [nitpick] The query selector 'label span slot' used to extract the satellite info may be overly specific and dependent on the internal markup structure. Consider using a more robust or generic selector to enhance test resilience.
const label = page.root?.shadowRoot?.querySelector('label span slot')
| const isValid = await component.validateTle() | ||
| expect(isValid).toBe(true) |
Copilot
AI
May 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an inconsistency in the expected return type of validateTle: one test expects a boolean while another later test accesses a 'valid' property on the result. Please adjust either the implementation or tests to ensure consistent return values.
| const isValid = await component.validateTle() | |
| expect(isValid).toBe(true) | |
| const validationResult = await component.validateTle() | |
| expect(validationResult.valid).toBe(true) |
|
@gemini-cli /review |
Brief Description
Testing how automated CoPilot Reviews might work, but ended up going down a small rabbit hole with TLEs
Create a TLE input field with a refined validation RegEx for both standard TLEs and Alpha-5 TLEs. Custom error handling for known unique TLE failures (namely that international identified can be committed in certain circumstances)
This is a bad PR as it addresses two different outcomes
JIRA Link
N/A
Related Issue
General Notes
Motivation and Context
The CoPilot automated reviews are an attempt to provide some potentially useful feedback for developers and designers while waiting on human feedback
Issues and Limitations
It’s AI so its feedback itself should be reviewed.
Types of changes
Checklist