-
Notifications
You must be signed in to change notification settings - Fork 22
Feat(size/XXL):BRU 3571 - Overview revamp #45
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
Merged
bijin-bruno
merged 25 commits into
opencollection-dev:main
from
sachin-bruno:sachin-bruno/feat-BRU-2571-Overview-revamp
Jun 25, 2026
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e3b2496
COnflicts resolved
085fba1
BRU-2571 Overview revamp changes
3eb91b6
BRU-2571 Theme color changes
2a38ca5
BRU-2571 Theme color changes
2008212
BRU-2571 E2E test case fix
10663ee
BRU-2571 Overview revamp changes
4742909
BRU-3571 Removed the border bottom line
d6cd48b
BRU-3571 Overview test-id revamp changes
c9c75b7
BRU-3571 mobile responsive changes
54ec45e
BRU-3571 Comments addressed
c8b22db
BRU-3571 Comments addressed
14d489a
E2E test folder changes
e8ad453
E2E test folder changes
4707200
BRU-3571 E2E playwright test cases changes
704993e
feat:Overview E2E test case updation
2b15833
feat:Overview code refactoring
520afa2
feat:Overview code refactoring
d070f28
Comments addressed
a2fbaf8
Comments addressed
69468c5
Comments addressed
a0a8859
Comments addressed
58a3dc7
Comments addressed
4d614fb
Comments addressed
6dc8525
Comments addressed
9cae7a4
BRU-3571 Removed the index page & Comments addressed
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/oc-docs/e2e/components/overview/collection-configuration.component..ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import type { Locator } from '@playwright/test'; | ||
| import { BaseComponent } from '../base.component'; | ||
| import { SecretValueComponent } from '../secret-value.component'; | ||
|
|
||
| export class ConfigurationSection extends BaseComponent { | ||
| readonly root = this.page.getByTestId('collection-config'); | ||
|
|
||
| readonly copyButton = this.root.getByTestId('collection-config-copy').first(); | ||
|
|
||
| readonly secret = new SecretValueComponent(this.page, 'collection-config-secret'); | ||
|
|
||
| subHeading(name: string): Locator { | ||
| return this.root.getByTestId('collection-config-subheading').filter({ hasText: name }); | ||
| } | ||
|
|
||
| row(key: string): Locator { | ||
| return this.root.getByTestId('collection-config-row').filter({ hasText: key }); | ||
| } | ||
|
|
||
| rowValue(key: string): Locator { | ||
| return this.row(key).getByTestId('collection-config-row-value'); | ||
| } | ||
|
|
||
| async copyToClipboard(): Promise<void> { | ||
| await this.copyButton.click(); | ||
| } | ||
| } |
15 changes: 15 additions & 0 deletions
15
packages/oc-docs/e2e/components/overview/collection-stats.component.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import type { Locator } from '@playwright/test'; | ||
| import { BaseComponent } from '../base.component'; | ||
|
|
||
| export class StatsSection extends BaseComponent { | ||
|
|
||
| readonly cards = this.page.getByTestId('collection-stats-stat'); | ||
|
|
||
| card(label: string): Locator { | ||
| return this.cards.filter({ hasText: label }); | ||
| } | ||
|
|
||
| valueFor(label: string): Locator { | ||
| return this.card(label).getByTestId('collection-stats-stat-value'); | ||
| } | ||
| } |
15 changes: 15 additions & 0 deletions
15
packages/oc-docs/e2e/components/overview/environments.component.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import type { Locator } from '@playwright/test'; | ||
| import { BaseComponent } from '../base.component'; | ||
|
|
||
| export class EnvironmentsSection extends BaseComponent { | ||
|
|
||
| readonly items = this.page.getByTestId('overview-environment-item'); | ||
|
|
||
| item(name: string): Locator { | ||
| return this.items.filter({ hasText: name }); | ||
| } | ||
|
|
||
| variableCount(name: string): Locator { | ||
| return this.item(name).getByTestId('overview-environment-item-variable-count'); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import { BaseComponent } from '../base.component'; | ||
|
|
||
| export class HeaderSection extends BaseComponent { | ||
| readonly collectionVersion = this.page.getByTestId('overview-collection-version'); | ||
| readonly collectionName = this.page.getByTestId('overview-collection-name'); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import type { Locator, Page } from '@playwright/test'; | ||
| import { BaseComponent } from './base.component'; | ||
|
|
||
| export class SecretValueComponent extends BaseComponent { | ||
| readonly value: Locator; | ||
|
|
||
| readonly toggle: Locator; | ||
|
|
||
| constructor(page: Page, testId: string) { | ||
| super(page); | ||
| this.value = page.getByTestId(`${testId}-text`); | ||
| this.toggle = page.getByTestId(`${testId}-toggle`); | ||
| } | ||
|
|
||
| // Reveal the raw value. | ||
| async toggleReveal(): Promise<void> { | ||
| await this.toggle.click(); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import type { Locator } from '@playwright/test'; | ||
| import { BasePage } from './base.page'; | ||
| import { MarkdownComponent } from '../components/markdown.component'; | ||
| import { HeaderSection } from '../components/overview/header.component'; | ||
| import { StatsSection } from '../components/overview/collection-stats.component'; | ||
| import { EnvironmentsSection } from '../components/overview/environments.component'; | ||
| import { ConfigurationSection } from '../components/overview/collection-configuration.component.'; | ||
|
|
||
| export class OverviewPage extends BasePage { | ||
| readonly root = this.page.getByTestId('overview'); | ||
|
|
||
| readonly header = new HeaderSection(this.page); | ||
| readonly stats = new StatsSection(this.page); | ||
| readonly environments = new EnvironmentsSection(this.page); | ||
| readonly configuration = new ConfigurationSection(this.page); | ||
| readonly docMarkdown = new MarkdownComponent(this.page, this.page.getByTestId('overview-markdown-documentation')); | ||
|
|
||
| sectionLabel(name: string): Locator { | ||
| return this.page.getByTestId('overview-section-label').filter({ hasText: name }); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please add a line break above