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

match style of main index page #996

Merged
merged 7 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
28 changes: 28 additions & 0 deletions .github/workflows/ci-feat-url.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Add URL to Feature PRs

on:
pull_request:
branches:
- dev

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Set KEBAB_CASE_BRANCH
run: |
# Convert github.head_ref to kebab case
kebab_case=$(echo "${{ github.head_ref }}" | sed 's/_/-/g; s/\//-/g')
echo "::set-output name=KEBAB_CASE_BRANCH::${kebab_case}"
id: set-branch-id

- name: Check the KEBAB_CASE_BRANCH output
run: echo "The KEBAB_CASE_BRANCH is ${{ steps.set-branch-id.outputs.KEBAB_CASE_BRANCH }}"

- name: PR Description
if: startsWith(github.head_ref, 'feature/') == true
uses: bcgov-nr/action-pr-description-add@v1.1.1
with:
add_markdown: |
---
🚀 Feature branch deployment: https://api-services-portal-${{ steps.set-branch-id.outputs.KEBAB_CASE_BRANCH }}.apps.silver.devops.gov.bc.ca
24 changes: 13 additions & 11 deletions src/nextapp/pages/devportal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,19 @@ const HomePage: React.FC = () => {
)
.map((action) => (
<Card key={action.url}>
<Heading size="md" mb={2}>
<NextLink passHref href={action.url}>
<Link color="bc-link" display="flex" alignItems="center">
<Icon as={action.icon} color="bc-yellow" mr={2} />
{action.title}
</Link>
</NextLink>
</Heading>
<p>
{action.description}
</p>
<Box p={4}>
<Heading size="md" mb={2}>
<NextLink passHref href={action.url}>
<Link color="bc-link" display="flex" alignItems="center">
<Icon as={action.icon} color="bc-yellow" mr={2} />
{action.title}
</Link>
</NextLink>
</Heading>
<p>
{action.description}
</p>
</Box>
</Card>
))}
</GridLayout>
Expand Down
24 changes: 13 additions & 11 deletions src/nextapp/pages/manager/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,19 @@ const HomePage: React.FC = () => {
)
.map((action) => (
<Card key={action.url}>
<Heading size="md" mb={2}>
<NextLink passHref href={action.url}>
<Link color="bc-link" display="flex" alignItems="center">
<Icon as={action.icon} color="bc-yellow" mr={2} />
{action.title}
</Link>
</NextLink>
</Heading>
<p>
{action.description}
</p>
<Box p={4}>
<Heading size="md" mb={2}>
<NextLink passHref href={action.url}>
<Link color="bc-link" display="flex" alignItems="center">
<Icon as={action.icon} color="bc-yellow" mr={2} />
{action.title}
</Link>
</NextLink>
</Heading>
<p>
{action.description}
</p>
</Box>
</Card>
))}
</GridLayout>
Expand Down
Loading