This repository was archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 326
ui: updated the ui of list items on deployments tab #2879
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fef49b0
ui: updated the ui of list items on deployments tab
12ee184
ui: fixed dark mode of deploy url
929c3ce
ui: readded operation status indicator for deployment
9bbd189
ui: extracted url to separate line
c8d19d0
ui: fixed broken test
49be4c2
ui: adjusted info/styling based on comment from @almonk
64d0ccb
ui: fixed tests and made more comprehensive
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ```release-note:improvement | ||
| ui: Updated list items UI on deployments tab | ||
| ``` |
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 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,8 @@ | ||
| import { helper } from '@ember/component/helper'; | ||
|
|
||
| export function cleanUpUrl([str]: string[]): string { | ||
| let cleanStr = str.replace('https://', '').replace('http://', '').replace('www.', ''); | ||
| return cleanStr; | ||
| } | ||
|
|
||
| export default helper(cleanUpUrl); |
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 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 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 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,24 @@ | ||
| import { module, test } from 'qunit'; | ||
| import { setupRenderingTest } from 'ember-qunit'; | ||
| import { render } from '@ember/test-helpers'; | ||
| import hbs from 'htmlbars-inline-precompile'; | ||
|
|
||
| module('Integration | Helper | clean-up-url', function (hooks) { | ||
| setupRenderingTest(hooks); | ||
|
|
||
| test('it removes https:// from input', async function (assert) { | ||
| this.set('inputValue', 'https://wildly-intent-honeybee.waypoint.run'); | ||
|
|
||
| await render(hbs`{{clean-up-url this.inputValue}}`); | ||
|
|
||
| assert.equal(this.element.textContent?.trim(), 'wildly-intent-honeybee.waypoint.run'); | ||
| }); | ||
|
|
||
| test('it removes http:// from input', async function (assert) { | ||
| this.set('inputValue', 'http://wildly-intent-honeybee.waypoint.run'); | ||
|
|
||
| await render(hbs`{{clean-up-url this.inputValue}}`); | ||
|
|
||
| assert.equal(this.element.textContent?.trim(), 'wildly-intent-honeybee.waypoint.run'); | ||
| }); | ||
| }); |
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
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.
Uh oh!
There was an error while loading. Please reload this page.