-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from vannizhang/master
2024 July Release
- Loading branch information
Showing
288 changed files
with
13,325 additions
and
2,979 deletions.
There are no files selected for viewing
This file contains 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,2 @@ | ||
# Custom hostname for starting the Webpack Dev server | ||
WEBPACK_DEV_SERVER_HOSTNAME = my-custome-hostname.com |
This file contains 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 |
---|---|---|
|
@@ -105,4 +105,8 @@ dist | |
|
||
*.http | ||
|
||
temp/ | ||
temp/ | ||
/test-results/ | ||
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache/ |
This file contains 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,65 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). | ||
|
||
## [Unreleased] | ||
|
||
### Added | ||
### Changed | ||
### Fixed | ||
### Removed | ||
|
||
## 2024 July Release | ||
|
||
## Sentinel-1 Explorer | ||
|
||
### Added | ||
- add Temporal Composite Tool | ||
- add Change Detection Tool | ||
- add Index Mask Tool | ||
- add Temporal Profile Tool | ||
- add Orbit Direction Filter | ||
- lock relative orbit orbit direction for Change Detection tool and Temporal Composite Tool | ||
- show Foot Print for Change Compare and Temporal Composite tool | ||
- add documentation panel | ||
|
||
## Landsat Explorer | ||
|
||
### Added | ||
- add Raster Function Templates of the Landsat Level-2 service | ||
|
||
### Changed | ||
- Scene Info table should display ID in one line | ||
- use `useImageryLayerByObjectId` custom hook from `shared/hooks` to get Landsat Layer | ||
- use `getFeatureByObjectId` from `shared/services/helpers` | ||
- use `getExtentByObjectId` from `shared/services/helpers` | ||
- use `intersectWithImageryScene` from `shared/services/helpers` | ||
- use `identify` from `shared/services/helpers` | ||
- update `queryAvailableScenes` in `/@shared/store/Landsat/thunks` to use `deduplicateListOfImageryScenes` | ||
- use `@shared/components/ImageryLayer/ImageryLayerByObjectID` instead of `LandsatLayer` | ||
- use `@shared/components/SwipeWidget/SwipeWidget4ImageryLayers` | ||
- `<LandsatMissionFilter />` should be passed as a child components to `Calendar`. | ||
- update `<Layout />` to use `useShouldShowSecondaryControls` hook | ||
- use `<MapPopup />` `from @shared/components/MapPopup` | ||
- use `Change Compare Tool` from `@shared/components/ChandCompareTool` | ||
- update `MaskLayer` to use `ImageryLayerWithPixelFilter` | ||
- update `ChangeCompareLayer` to use `ImageryLayerWithPixelFilter` | ||
|
||
## Shared | ||
|
||
### Added | ||
- add tooltip and click to copy feature to Scene Info component | ||
- add Play/Pause button to AnimationDownloadPanel | ||
- include estimated area calculation for Mask tool | ||
- include estimated area calculation for Change Detection | ||
- display current map scale and pixel resolution in Custom Attribution component | ||
- add Documentation Panel | ||
|
||
### Changed | ||
- upgrade @arcgis/core to use version 4.29 | ||
- update animation panel to re-fetch animation images when user minimizes bottom panel | ||
- use `.env` to save `WEBPACK_DEV_SERVER_HOSTNAME` | ||
- add Zoom2ExtentContainer to shared components | ||
- update map popup to include X/Y coordinates |
This file contains 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 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,78 @@ | ||
import type { PlaywrightTestConfig, } from "@playwright/test"; | ||
import { devices } from "@playwright/test"; | ||
import { config } from "dotenv"; | ||
config({ | ||
path: '../.env' | ||
}) | ||
|
||
export const DEV_SERVER_URL = process.env.WEBPACK_DEV_SERVER_HOSTNAME || 'https://localhost:8080' | ||
|
||
export const baseConfig:PlaywrightTestConfig = { | ||
testDir: './', | ||
/* Run tests in files in parallel */ | ||
fullyParallel: true, | ||
/* Fail the build on CI if you accidentally left test.only in the source code. */ | ||
forbidOnly: !!process.env.CI, | ||
/* Retry on CI only */ | ||
retries: process.env.CI ? 2 : 0, | ||
/* Opt out of parallel tests on CI. */ | ||
workers: process.env.CI ? 1 : undefined, | ||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */ | ||
reporter: 'html', | ||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ | ||
use: { | ||
/* Base URL to use in actions like `await page.goto('/')`. */ | ||
// baseURL: 'http://127.0.0.1:3000', | ||
|
||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ | ||
trace: 'on-first-retry', | ||
|
||
ignoreHTTPSErrors: true, | ||
}, | ||
|
||
/* Configure projects for major browsers */ | ||
projects: [ | ||
{ | ||
name: 'chromium', | ||
use: { ...devices['Desktop Chrome'] }, | ||
}, | ||
|
||
{ | ||
name: 'firefox', | ||
use: { ...devices['Desktop Firefox'] }, | ||
}, | ||
|
||
{ | ||
name: 'webkit', | ||
use: { ...devices['Desktop Safari'] }, | ||
}, | ||
|
||
/* Test against mobile viewports. */ | ||
// { | ||
// name: 'Mobile Chrome', | ||
// use: { ...devices['Pixel 5'] }, | ||
// }, | ||
// { | ||
// name: 'Mobile Safari', | ||
// use: { ...devices['iPhone 12'] }, | ||
// }, | ||
|
||
/* Test against branded browsers. */ | ||
// { | ||
// name: 'Microsoft Edge', | ||
// use: { ...devices['Desktop Edge'], channel: 'msedge' }, | ||
// }, | ||
// { | ||
// name: 'Google Chrome', | ||
// use: { ...devices['Desktop Chrome'], channel: 'chrome' }, | ||
// }, | ||
], | ||
|
||
/* Run your local dev server before starting the tests */ | ||
webServer: { | ||
command: 'npm run start', | ||
url: DEV_SERVER_URL, | ||
reuseExistingServer: !process.env.CI, | ||
ignoreHTTPSErrors: true | ||
}, | ||
} |
This file contains 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 { test, expect } from '@playwright/test'; | ||
import { DEV_SERVER_URL } from '../base.config'; | ||
|
||
test('has title', async ({ page }) => { | ||
await page.goto(DEV_SERVER_URL); | ||
|
||
// Expect a title "to contain" a substring. | ||
await expect(page).toHaveTitle(/Landsat Explorer/); | ||
}); | ||
|
||
// test('get started link', async ({ page }) => { | ||
// await page.goto('https://playwright.dev/'); | ||
|
||
// // Click the get started link. | ||
// await page.getByRole('link', { name: 'Get started' }).click(); | ||
|
||
// // Expects page to have a heading with the name of Installation. | ||
// await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible(); | ||
// }); |
This file contains 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,22 @@ | ||
import { defineConfig, devices } from '@playwright/test'; | ||
import { baseConfig } from './base.config'; | ||
|
||
/** | ||
* Read environment variables from file. | ||
* https://github.com/motdotla/dotenv | ||
*/ | ||
// import dotenv from 'dotenv'; | ||
// dotenv.config({ path: path.resolve(__dirname, '.env') }); | ||
|
||
/** | ||
* See https://playwright.dev/docs/test-configuration. | ||
*/ | ||
export default defineConfig({ | ||
...baseConfig, | ||
testDir: './landsat', | ||
/* Run your local dev server before starting the tests */ | ||
webServer: { | ||
...baseConfig.webServer, | ||
command: 'npm run start:landsat', | ||
}, | ||
}); |
This file contains 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,22 @@ | ||
import { defineConfig, devices } from '@playwright/test'; | ||
import { baseConfig } from './base.config'; | ||
|
||
/** | ||
* Read environment variables from file. | ||
* https://github.com/motdotla/dotenv | ||
*/ | ||
// import dotenv from 'dotenv'; | ||
// dotenv.config({ path: path.resolve(__dirname, '.env') }); | ||
|
||
/** | ||
* See https://playwright.dev/docs/test-configuration. | ||
*/ | ||
export default defineConfig({ | ||
...baseConfig, | ||
testDir: './sentinel1', | ||
/* Run your local dev server before starting the tests */ | ||
webServer: { | ||
...baseConfig.webServer, | ||
command: 'npm run start:sentinel1', | ||
}, | ||
}); |
This file contains 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 { test, expect } from '@playwright/test'; | ||
import { DEV_SERVER_URL } from '../base.config'; | ||
|
||
test('has title', async ({ page }) => { | ||
await page.goto(DEV_SERVER_URL); | ||
|
||
// Expect a title "to contain" a substring. | ||
await expect(page).toHaveTitle(/Sentinel-1 Explorer/); | ||
}); | ||
|
||
// test('get started link', async ({ page }) => { | ||
// await page.goto('https://playwright.dev/'); | ||
|
||
// // Click the get started link. | ||
// await page.getByRole('link', { name: 'Get started' }).click(); | ||
|
||
// // Expects page to have a heading with the name of Installation. | ||
// await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible(); | ||
// }); |
This file contains 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
Oops, something went wrong.