-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:porter-dev/porter into upstash-fr…
…ontend
- Loading branch information
Showing
10 changed files
with
106 additions
and
16 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
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
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 |
---|---|---|
|
@@ -400,13 +400,14 @@ const Home: React.FC<Props> = (props) => { | |
<DeploymentTargetProvider> | ||
<StyledHome | ||
padTop={ | ||
!currentProject?.sandbox_enabled && | ||
showCardBanner && | ||
currentProject?.billing_enabled && | ||
currentProject?.metronome_enabled && | ||
!trialExpired && | ||
plan && | ||
true | ||
(!currentProject?.sandbox_enabled && | ||
showCardBanner && | ||
currentProject?.billing_enabled && | ||
currentProject?.metronome_enabled && | ||
!trialExpired && | ||
plan && | ||
true) || | ||
currentProject?.freeze_enabled | ||
} | ||
> | ||
{!currentProject?.sandbox_enabled && | ||
|
@@ -433,6 +434,14 @@ const Home: React.FC<Props> = (props) => { | |
)} | ||
</> | ||
)} | ||
{currentProject?.freeze_enabled && ( | ||
<GlobalBanner> | ||
<i className="material-icons-round">warning</i> | ||
This project has been disabled due to recurring issues with the | ||
connected payment method. Please contact [email protected] to | ||
reenable this project. | ||
</GlobalBanner> | ||
)} | ||
{showBillingModal && ( | ||
<BillingModal | ||
back={() => { | ||
|
@@ -704,6 +713,7 @@ export default withRouter(withAuth(Home)); | |
const GlobalBanner = styled.div` | ||
width: 100vw; | ||
z-index: 999; | ||
padding: 20px; | ||
position: fixed; | ||
top: 0; | ||
color: #fefefe; | ||
|
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 |
---|---|---|
|
@@ -135,7 +135,7 @@ const Resources: React.FC<ResourcesProps> = ({ | |
<> | ||
<Spacer y={1} /> | ||
<Text> | ||
Sleep Service | ||
Sleep service | ||
<a | ||
href="https://docs.porter.run/configure/basic-configuration#sleep-mode" | ||
target="_blank" | ||
|
@@ -151,14 +151,19 @@ const Resources: React.FC<ResourcesProps> = ({ | |
render={({ field: { value, onChange } }) => ( | ||
<Checkbox | ||
checked={Boolean(value?.value)} | ||
disabled={currentProject?.freeze_enabled} | ||
toggleChecked={() => { | ||
onChange({ | ||
...value, | ||
value: !value?.value, | ||
}); | ||
}} | ||
> | ||
<Text color="helper">Pause all instances.</Text> | ||
<Text color="helper"> | ||
{currentProject?.freeze_enabled | ||
? "Contact [email protected] to re-enable your project and unsleep services." | ||
: "Pause all instances."} | ||
</Text> | ||
</Checkbox> | ||
)} | ||
/> | ||
|
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
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