Skip to content

Commit 800f01e

Browse files
authored
Merge branch 'master' into fix-bugs
Signed-off-by: Aabid Sofi <[email protected]>
2 parents 682bd91 + f8dcf66 commit 800f01e

File tree

5 files changed

+87
-15
lines changed

5 files changed

+87
-15
lines changed

.github/workflows/multi-platform.yml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,43 +37,64 @@ on:
3737
type: string
3838

3939
env:
40-
GIT_VERSION: ${{github.event.inputs.release-ver}}
40+
GIT_VERSION: ${{github.event.inputs.release-ver || inputs.release-ver }}
4141
RELEASE_CHANNEL: ${{github.event.inputs.release-channel || inputs.release-channel }}
4242

4343
jobs:
44-
print-inputs:
44+
validate-inputs:
4545
runs-on: ubuntu-latest
4646
steps:
47-
- run: |
48-
echo "Env RELEASE_CHANNEL: ${{env.RELEASE_CHANNEL}}"
49-
echo "Env GIT_VERSION: ${{env.GIT_VERSION}}"
47+
- name: Validate inputs
48+
run: |
49+
echo "Validating GIT_VERSION and RELEASE_CHANNEL..."
50+
51+
if [ -z "${{ env.GIT_VERSION }}" ]; then
52+
echo "❌ Error: GIT_VERSION is empty!"
53+
exit 1
54+
fi
55+
56+
if [ ${#GIT_VERSION} -le 3 ]; then
57+
echo "❌ Error: GIT_VERSION '${GIT_VERSION}' is too short. It must be > 3 characters."
58+
exit 1
59+
fi
60+
61+
if [ -z "${{ env.RELEASE_CHANNEL }}" ]; then
62+
echo "❌ Error: RELEASE_CHANNEL is empty!"
63+
exit 1
64+
fi
65+
66+
echo "✓ Validation passed: GIT_VERSION=${{ env.GIT_VERSION }}, RELEASE_CHANNEL=${{ env.RELEASE_CHANNEL }}"
67+
5068
5169
docker-build:
5270
runs-on: ubuntu-latest
5371
steps:
5472
- name: Checkout repo
5573
uses: actions/checkout@v4
74+
5675
- name: Identify Release Values
5776
run: |
58-
# LATEST_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g')
59-
# GIT_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g')
60-
# GIT_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always)
61-
GIT_STRIPPED_VERSION=$(echo $GIT_VERSION | cut -c2-)
62-
# echo "GIT_LATEST=$LATEST_VERSION" >> $GITHUB_ENV
63-
echo "GIT_VERSION=$GIT_VERSION" >> $GITHUB_ENV
77+
GIT_VERSION="${{ env.GIT_VERSION }}"
78+
GIT_STRIPPED_VERSION="${GIT_VERSION#v}"
6479
echo "GIT_STRIPPED_VERSION=$GIT_STRIPPED_VERSION" >> $GITHUB_ENV
6580
shell: bash
6681

6782
- name: Generate release notes
6883
id: release_notes
6984
run: |
7085
RELEASE_NOTES=$(gh release create ${{ github.ref_name }} --generate-notes --repo ${{ github.repository }} | tail -n +2) # Get generated release notes, excluding the first line
71-
RELEASE_NOTES="$RELEASE_NOTES\nSee https://docs.layer5.io/kanvas/reference/releases/$GIT_VERSION"
86+
RELEASE_NOTES="$RELEASE_NOTES\nSee https://docs.layer5.io/kanvas/reference/releases/${{env.GIT_VERSION}}"
7287
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
7388
echo "$RELEASE_NOTES" >> $GITHUB_ENV
7489
echo "EOF" >> $GITHUB_ENV
7590
env:
7691
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92+
93+
- name: Setup image tags in docker-compose.yaml
94+
run: |
95+
sed -i "s/kanvas-docker-extension:stable-latest/kanvas-docker-extension:${{env.RELEASE_CHANNEL}}-${{env.GIT_VERSION}}/g" docker-compose.yaml
96+
sed -i "s/meshery:kanvas-latest/meshery:kanvas-${{env.GIT_VERSION}}/g" docker-compose.yaml
97+
cat docker-compose.yaml
7798
7899
- name: Set up QEMU
79100
uses: docker/setup-qemu-action@v3

ui/src/components/ExtensionComponent/AuthedDashboard.js

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
// import KanvasColor from "../../img/SVGs/kanvasColor";
3131
import KanvasWhite from "../../img/SVGs/kanvasWhite";
3232
import DocsIcon from "../../img/SVGs/docsIcon";
33+
import VideosIcon from "../../img/SVGs/videosIcon";
3334
import KanvasHorizontalLight from "../../img/SVGs/KanvasHorizontalLight";
3435

3536
import { randomApplicationNameGenerator } from "../../utils";
@@ -59,21 +60,46 @@ const DocsButton = ({ isDarkTheme, onClick }) => (
5960
</StyledButton>
6061
);
6162

63+
const VideosButton = ({ isDarkTheme, onClick }) => (
64+
<StyledButton
65+
size="small"
66+
onClick={onClick}
67+
style={{
68+
backgroundColor: isDarkTheme ? "#393F49" : "#D7DADE",
69+
}}
70+
>
71+
<VideosIcon
72+
width="24"
73+
height="24"
74+
CustomColor={isDarkTheme ? "white" : "#3C494F"}
75+
/>
76+
&nbsp;Videos
77+
</StyledButton>
78+
);
79+
6280
const HeaderSection = ({ isDarkTheme }) => (
6381
<MuiBox>
6482
<MuiBox
6583
display="flex"
6684
justifyContent={"end"}
67-
gap={4}
85+
gap={1}
6886
alignItems={"center"}
69-
m={2}
87+
ml={2}
88+
mr={4}
89+
my={2}
7090
>
7191
<VersionInfoSection isDarkTheme={isDarkTheme} />
7292
<DocsButton
7393
isDarkTheme={isDarkTheme}
7494
onClick={() =>
7595
window.ddClient.host.openExternal("https://docs.layer5.io/kanvas/")
7696
}
97+
/>
98+
<VideosButton
99+
isDarkTheme={isDarkTheme}
100+
onClick={() =>
101+
window.ddClient.host.openExternal("https://docs.layer5.io/videos/")
102+
}
77103
/>
78104

79105
<UserAccountSection isDarkTheme={isDarkTheme} />
@@ -281,7 +307,7 @@ const VersionInfoSection = ({ isDarkTheme }) => {
281307
<a
282308
onClick={() =>
283309
openExternalLink(
284-
`https://docs.Kanvas.io/project/releases/${kanvasVersion}`,
310+
`https://docs.layer5.io/project/releases/${kanvasVersion}`,
285311
)
286312
}
287313
target="_blank"

ui/src/components/ExtensionComponent/RecentDesigns.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ export default function RecentDesignsCard({ isDarkTheme }) {
8282
const myDesignsURL = `https://cloud.layer5.io/catalog/content/my-designs/${name}-${design.id}?source=%257B%2522type%2522%253A%2522my-designs%2522%257D`;
8383
window.ddClient.host.openExternal(myDesignsURL);
8484
};
85+
const RecentsTooltipTitle = (
86+
<Typography variant="body2">Designs in this list are those owned by you, available in your currently selected Organization and Workspace. Learn more about Spaces at https://docs.layer5.io/cloud/spaces/</Typography>
87+
);
8588

8689
const RecentDesignsTooltipTitle = (
8790
<Typography variant="body1" component="p" sx={{ mt: 0.5 }}>
@@ -101,6 +104,7 @@ export default function RecentDesignsCard({ isDarkTheme }) {
101104
isDarkTheme={isDarkTheme}
102105
sx={{ flexDirection: "column", pt: "0.5rem", pb: "0.5rem" }}
103106
>
107+
104108
<Box
105109
display="flex"
106110
justifyContent="center"

ui/src/img/SVGs/videosIcon.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from "react";
2+
3+
const VideosIcon = ({ width = 32, height = 32 }) => (
4+
<svg
5+
width={width}
6+
height={height}
7+
version="1.1"
8+
viewBox="0 0 32 32"
9+
fill="#fff"
10+
xmlns="http://www.w3.org/2000/svg"
11+
enable-background="new 0 0 32 32"
12+
>
13+
<title>Videos</title>
14+
15+
<path d="M16 0C7.164 0 0 7.164 0 16s7.164 16 16 16 16-7.164 16-16S24.836 0 16 0zm-6 24V8l16.008 8L10 24z" fill="#00b39f" class="fill-4e4e50"
16+
/>
17+
</svg>
18+
);
19+
20+
export default VideosIcon;

ui/src/img/SVGs/videosIcon.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)