Skip to content
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

Show a clear error message when user has no permission to delete pod #169

Open
wants to merge 161 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
89fb13a
Add design system
maciaszczykm Nov 9, 2022
7d9330b
Move design-system to dependencies
maciaszczykm Nov 9, 2022
6047735
Add design system dependencies and config
maciaszczykm Nov 9, 2022
9ea62f3
Use design system sidebar
maciaszczykm Nov 9, 2022
1bed438
Add profile to nav
maciaszczykm Nov 10, 2022
a40984e
Configure TypeScript
maciaszczykm Nov 10, 2022
d26d150
Add layout components and fix compilation issues
maciaszczykm Nov 10, 2022
753f880
Format files and fix static check errors
maciaszczykm Nov 10, 2022
6318534
Disable eslint plugin
maciaszczykm Nov 10, 2022
0a4f064
Fix build
maciaszczykm Nov 10, 2022
c0aa5cb
Implement app view
maciaszczykm Nov 10, 2022
a55269b
Remove docs from sidebar
maciaszczykm Nov 10, 2022
89d7d4e
Remove unused import
maciaszczykm Nov 10, 2022
a439446
Refactor
maciaszczykm Nov 14, 2022
66d5d27
Fix border positioning
maciaszczykm Nov 14, 2022
e439787
Remove unused code
maciaszczykm Nov 14, 2022
f602915
Show version
maciaszczykm Nov 14, 2022
5adbf6f
Add filtering
maciaszczykm Nov 14, 2022
82c996b
Styling adjustments
maciaszczykm Nov 14, 2022
30e6cac
Refactor
maciaszczykm Nov 14, 2022
b92759d
Improve demo message
maciaszczykm Nov 14, 2022
687a325
Improve navigation layout
maciaszczykm Nov 14, 2022
4be92dd
Add link to Plural app
maciaszczykm Nov 14, 2022
8b6f2a4
Add subheader
maciaszczykm Nov 14, 2022
450af00
Fix builds nav
maciaszczykm Nov 14, 2022
2cf78b1
Add nav arrows
maciaszczykm Nov 14, 2022
b8e2ec7
Add app detail view
maciaszczykm Nov 15, 2022
48d59a3
Use new routing syntax
maciaszczykm Nov 15, 2022
6434099
Use new routing syntax
maciaszczykm Nov 15, 2022
992b87c
Do not use route render prop
maciaszczykm Nov 15, 2022
7f75a6b
Finish migrating to router 5.1 syntax
maciaszczykm Nov 15, 2022
9170909
Migrate to react-router v6
maciaszczykm Nov 15, 2022
8cdacb6
Merge remote-tracking branch 'origin/master' into reskin
maciaszczykm Nov 15, 2022
291f59f
Configure app-level routing
maciaszczykm Nov 15, 2022
fec6d88
Fix linter
maciaszczykm Nov 15, 2022
62c4447
Add prop sidecar
maciaszczykm Nov 15, 2022
787eec2
Update install button
maciaszczykm Nov 15, 2022
9762a39
Show app links
maciaszczykm Nov 15, 2022
24a489e
Format files
maciaszczykm Nov 15, 2022
c987454
Add shortcut menu
maciaszczykm Nov 15, 2022
1aa3d83
Add launch button and improve context menu
maciaszczykm Nov 17, 2022
e89eadc
Move other links to context menu
maciaszczykm Nov 17, 2022
2397593
Fix context menu nav
maciaszczykm Nov 17, 2022
6e402c0
Nav updates
maciaszczykm Nov 17, 2022
f6b7e79
Remove unused code
maciaszczykm Nov 17, 2022
b005efc
Fix app-level tabs
maciaszczykm Nov 17, 2022
6ec90ad
Position subheader
maciaszczykm Nov 17, 2022
343d120
Handle back and forward button clicks
maciaszczykm Nov 17, 2022
424cb79
Add TODOs
maciaszczykm Nov 17, 2022
6e18b45
Update breadcrumbs styling
maciaszczykm Nov 17, 2022
e0850fa
Move notifications icon
maciaszczykm Nov 17, 2022
21c2cca
Clean up header
maciaszczykm Nov 17, 2022
7c95cc0
Minor improvements
maciaszczykm Nov 17, 2022
45de7d4
Styling adjustments
maciaszczykm Nov 17, 2022
ca04815
Add empty states
maciaszczykm Nov 17, 2022
0af2edb
Remove TODO
maciaszczykm Nov 17, 2022
02112b4
Use new design system package
maciaszczykm Nov 17, 2022
216121d
Fix e2e tests
maciaszczykm Nov 18, 2022
1b0ac07
Add links to the details view
maciaszczykm Nov 21, 2022
ed3674b
Fix sidecar positioning
maciaszczykm Nov 21, 2022
273d4f2
Add dashboard cards
maciaszczykm Nov 21, 2022
ba341a7
Remove sidecar title
maciaszczykm Nov 21, 2022
c2ab423
Add dashboards empty state
maciaszczykm Nov 21, 2022
06446f6
Fix margin
maciaszczykm Nov 21, 2022
01f8b4a
Add app selector
maciaszczykm Nov 21, 2022
2d7a0ab
Fix selector styling
maciaszczykm Nov 21, 2022
9710ccb
Remove unused import
maciaszczykm Nov 21, 2022
934b571
Start removing current application from installation context
maciaszczykm Nov 21, 2022
94edbcb
Fix typo that cost me an hour of debugging
maciaszczykm Nov 21, 2022
15e2a46
Add dashboard view
maciaszczykm Nov 22, 2022
4ffe99f
Use new range picker
maciaszczykm Nov 22, 2022
459b06b
Update graphs
maciaszczykm Nov 22, 2022
0063622
Make graphs full width
maciaszczykm Nov 22, 2022
a82680b
Remove support for app complete status
maciaszczykm Nov 22, 2022
8ccebcf
Add TODO
maciaszczykm Nov 22, 2022
ad09bea
Use design system select
maciaszczykm Nov 23, 2022
773b32a
Adjust graph width
maciaszczykm Nov 23, 2022
c2966d2
Fix bug with graphs not appearing
maciaszczykm Nov 23, 2022
e0835fc
Fix selectors
maciaszczykm Nov 23, 2022
b47b8bf
Add wrap
maciaszczykm Nov 23, 2022
7d95630
Implement new dashboard select
maciaszczykm Nov 24, 2022
690736f
Minor updates
maciaszczykm Nov 24, 2022
a5da075
Update dependencies
maciaszczykm Nov 28, 2022
42d3028
Update dependencies and fix static check
maciaszczykm Nov 28, 2022
f82dc63
Update dependencies
maciaszczykm Nov 28, 2022
bea9fdd
Add missing fonts
maciaszczykm Nov 28, 2022
9f2d5b2
Move app update button to correct place
maciaszczykm Nov 28, 2022
37c2d1e
Update dashboard select button
maciaszczykm Nov 28, 2022
405dace
Add dashboard description
maciaszczykm Nov 28, 2022
b5fef9d
Add ellipsis to app selector
maciaszczykm Nov 28, 2022
d10812f
Start adding cost analysis
maciaszczykm Nov 28, 2022
31638ba
Style Kubernetes cost
maciaszczykm Nov 28, 2022
994353c
Hide Plural cost for now
maciaszczykm Nov 28, 2022
8f6a25e
Styling fixes
maciaszczykm Nov 28, 2022
fb65b2f
Improve file organization and add runbooks list
maciaszczykm Nov 29, 2022
9783e2c
Export utils
maciaszczykm Nov 29, 2022
d0895fe
Format files
maciaszczykm Nov 29, 2022
9aac436
Export utils
maciaszczykm Nov 29, 2022
d379a27
Add status color border
maciaszczykm Nov 29, 2022
1324d3d
Add zero state
maciaszczykm Nov 29, 2022
f020a44
Add chips
maciaszczykm Nov 29, 2022
8244c5a
Add runbook detail view
maciaszczykm Nov 29, 2022
c06b554
Export utils
maciaszczykm Nov 29, 2022
eb046d2
Fix breadcrumbs navigation
maciaszczykm Nov 29, 2022
1a59a06
Remove unused code
maciaszczykm Nov 29, 2022
9b2b33f
Add runbook description
maciaszczykm Nov 29, 2022
c88d8a8
Add statuses to details view
maciaszczykm Nov 29, 2022
d8df80f
Add runbook executions
maciaszczykm Nov 30, 2022
983f8db
Implement infinite scroll in table
maciaszczykm Nov 30, 2022
57deab0
Simplify code
maciaszczykm Nov 30, 2022
fc9b32e
Fix executions query
maciaszczykm Dec 1, 2022
eff1089
Set scrolling areas
maciaszczykm Dec 1, 2022
e2c262b
Styling improvements
maciaszczykm Dec 1, 2022
a142dc6
Update display inputs
maciaszczykm Dec 1, 2022
234d755
Update runbook graphs
maciaszczykm Dec 1, 2022
f6762f1
Add button portal
maciaszczykm Dec 1, 2022
24961a7
Finish splitting display components
maciaszczykm Dec 1, 2022
ad64564
Update table styling
maciaszczykm Dec 1, 2022
f14c381
Merge remote-tracking branch 'origin/master' into reskin
maciaszczykm Dec 1, 2022
c0f6d85
Update comments
maciaszczykm Dec 5, 2022
af3464c
Add logs view
maciaszczykm Dec 5, 2022
960304c
Style filter input
maciaszczykm Dec 5, 2022
fd7aa2c
Style labels
maciaszczykm Dec 5, 2022
994a289
Add tooltip
maciaszczykm Dec 5, 2022
6fdc4ba
Style logs downloader
maciaszczykm Dec 5, 2022
97178df
Add logs filters
maciaszczykm Dec 5, 2022
773a83f
Update positioning
maciaszczykm Dec 5, 2022
e61703f
Export logs info panel component
maciaszczykm Dec 5, 2022
1be92f7
Redesign logs content
maciaszczykm Dec 7, 2022
c1975d0
Hide scroll indicator
maciaszczykm Dec 7, 2022
8b93d31
Export logs card
maciaszczykm Dec 7, 2022
7cf6f31
Add full screen view
maciaszczykm Dec 7, 2022
fcd1fe0
Minor styling updates
maciaszczykm Dec 7, 2022
06e39f3
Add filters button
maciaszczykm Dec 7, 2022
c151bda
Fix typo
maciaszczykm Dec 7, 2022
f1a65ac
Update filters panel positioning
maciaszczykm Dec 7, 2022
d463df1
Wrap log info props
maciaszczykm Dec 7, 2022
955e987
Adjust info panel positioning
maciaszczykm Dec 7, 2022
d5d6bc1
Fix panel opening
maciaszczykm Dec 7, 2022
9e6cae6
Add TODO
maciaszczykm Dec 7, 2022
6932cab
Add vite/vitest support
floreks Dec 9, 2022
4fb2f4a
Fix wait-on in e2e scripts
floreks Dec 9, 2022
9db5532
Update dependencies
maciaszczykm Dec 9, 2022
8414ac2
Update icon frames
maciaszczykm Dec 9, 2022
31aad8f
Update progress bar colors
maciaszczykm Dec 9, 2022
72c3aed
Use icon frames
maciaszczykm Dec 9, 2022
7a9f892
Update subheader
maciaszczykm Dec 9, 2022
c0f7971
Update graph tooltip
maciaszczykm Dec 9, 2022
d418942
Use brighter colors
maciaszczykm Dec 9, 2022
34fe1e3
Remove double tooltip
maciaszczykm Dec 9, 2022
839850a
Update info panel locations
maciaszczykm Dec 9, 2022
95b5d2f
Use design system table component
maciaszczykm Dec 9, 2022
ce64fd9
Fix build list
maciaszczykm Dec 12, 2022
78e8a11
Update builds layout
maciaszczykm Dec 12, 2022
ca71194
Fix bug
maciaszczykm Dec 12, 2022
3022320
Update create build
maciaszczykm Dec 12, 2022
17fa9a1
Update build item
maciaszczykm Dec 12, 2022
636cb89
Update build status
maciaszczykm Dec 12, 2022
17d9964
Refactoring
maciaszczykm Dec 12, 2022
e059d6a
Remove Doughnut as it was causing an error
dherault Dec 12, 2022
81c00f9
Display warning message and restore Donought
dherault Dec 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
env:
CYPRESS_EMAIL: ${{ secrets.CYPRESS_EMAIL }}
CYPRESS_PASSWORD: ${{ secrets.CYPRESS_PASSWORD }}
BASE_URL: https://console.gcp.onplural.sh/
BASE_URL: console.gcp.onplural.sh
defaults:
run:
working-directory: assets
Expand Down
6 changes: 0 additions & 6 deletions assets/.babelrc

This file was deleted.

2 changes: 2 additions & 0 deletions assets/.env
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
EXTEND_ESLINT=true
DISABLE_ESLINT_PLUGIN=true
SKIP_PREFLIGHT_CHECK=true
8 changes: 8 additions & 0 deletions assets/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
extends: [
'@pluralsh/eslint-config-typescript',
],
globals: {
JSX: true,
},
}
23 changes: 0 additions & 23 deletions assets/.eslintrc.yml

This file was deleted.

7 changes: 0 additions & 7 deletions assets/config-overrides.js

This file was deleted.

3 changes: 1 addition & 2 deletions assets/e2e/cypress/e2e/stories/bounce.cy.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { BuildsPage } from '@pages/builds'
import { LoginPage } from '@pages/login'
import { RootPage } from '@pages/root'

context('Bounce story', () => {
describe('bounce the first installed app', () => {
beforeEach(() => LoginPage.login())

it('should bounce the application', () => {
RootPage.visit()
BuildsPage.visit()
BuildsPage.bounce()
})
})
Expand Down
3 changes: 1 addition & 2 deletions assets/e2e/cypress/e2e/stories/deploy.cy.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { BuildsPage } from '@pages/builds'
import { LoginPage } from '@pages/login'
import { RootPage } from '@pages/root'

context('Deploy story', () => {
describe('deploy the first installed app', () => {
beforeEach(() => LoginPage.login())

it('should deploy the application', () => {
RootPage.visit()
BuildsPage.visit()
BuildsPage.deploy()
})
})
Expand Down
5 changes: 3 additions & 2 deletions assets/e2e/cypress/pages/builds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Time } from '@ctypes/time'
import { GQLInterceptor } from '@intercept/graphql'
import { CreateBuildQueryResponse } from '@intercept/query/build'
import { BasePage } from '@pages/base'
import { RootPage } from '@pages/root'

enum BuildStatus {
Running = 'Running',
Expand All @@ -14,14 +13,16 @@ enum BuildStatus {
}

export class BuildsPage extends BasePage {
private static readonly _url = '/builds'

static visit(buildID?: string): void {
if (buildID) {
cy.visit(`/build/${buildID}`)

return
}

RootPage.visit()
cy.visit(this._url)
}

static deploy(): void {
Expand Down
161 changes: 161 additions & 0 deletions assets/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#000">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="/manifest.json" />
<link rel='stylesheet' href='https://highlightjs.org/static/demo/styles/vs2015.css'/>
<style type="text/css">
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}

pre {
margin: 0px 0px;
}

@font-face {
font-family: 'Monument';
src: url("/monument-regular.otf") format("opentype");
font-weight: 400;
}

@font-face {
font-family: 'Monument';
src: url("/monument-medium.woff") format("woff");
font-weight: 450;
}

@font-face {
font-family: 'Monument';
src: url("/monument-medium.woff") format("woff");
font-weight: 500;
}

@font-face {
font-family: 'Monument';
src: url("/monument-bold.woff") format("woff");
font-weight: 500;
}

@font-face {
font-family: 'Monument';
src: url("/monument-regular-italic.woff") format("woff");
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'Monument';
src: url("/monument-medium-italic.woff") format("woff");
font-weight: 500;
font-style: italic;
}

@font-face {
font-family: 'Monument';
src: url("/monument-bold-italic.woff") format("woff");
font-weight: 600;
font-style: italic;
}

@font-face {
font-family: 'Monument Semi-Mono';
src: url("/ABCMonumentGroteskSemi-Mono-Regular.woff") format("woff");
font-weight: 400;
}

@font-face {
font-family: 'Monument Semi-Mono';
src: url("/ABCMonumentGroteskSemi-Mono-Medium.woff") format("woff");
font-weight: 500;
}

@font-face {
font-family: 'Monument Semi-Mono';
src: url("/ABCMonumentGroteskSemi-Mono-Heavy.woff") format("woff");
font-weight: 600;
}

@font-face {
font-family: 'Monument Mono';
src: url("/ABCMonumentGroteskMono-Regular.woff") format("woff");
font-weight: 400;
}

@font-face {
font-family: 'Monument Mono';
src: url("/ABCMonumentGroteskMono-Medium.woff") format("woff");
font-weight: 500;
}

@font-face {
font-family: 'Monument Mono';
src: url("/ABCMonumentGroteskMono-Heavy.woff") format("woff");
font-weight: 600;
}
</style>
<!--
Notice the use of in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Console | Plural</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Loading