2
0

refactor(ui): consolidate pages navigation into main settings navbar
Some checks failed
Build and Release / Unit Tests (push) Successful in 7m33s
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 7m40s
Build and Release / Lint (push) Successful in 7m57s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Failing after 9h1m36s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 7m8s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 7m21s
Build and Release / Build Binary (linux/arm64) (push) Successful in 7m37s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 20m50s

Remove redundant pages_nav.tmpl and integrate the advanced pages link directly into the main settings navbar. Reduces template duplication while maintaining the same navigation structure.
This commit is contained in:
2026-03-30 03:23:26 -04:00
parent b26bf4bfe8
commit 7fbbd26b20
3 changed files with 5 additions and 44 deletions

View File

@@ -16,6 +16,7 @@ env:
GOPRIVATE: git.marketally.com GOPRIVATE: git.marketally.com
GONOSUMDB: git.marketally.com GONOSUMDB: git.marketally.com
GOTOOLCHAIN: local GOTOOLCHAIN: local
GOMODCACHE: /tmp/gomod-${{ github.run_id }}-${{ github.job }}
GO_VERSION: "1.25.5" GO_VERSION: "1.25.5"
NODE_VERSION: "22" NODE_VERSION: "22"
@@ -52,7 +53,6 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
go clean -modcache
make deps-frontend deps-backend make deps-frontend deps-backend
- name: Run Go linter - name: Run Go linter
@@ -86,7 +86,6 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
go clean -modcache
go mod download go mod download
- name: Run unit tests - name: Run unit tests
@@ -145,7 +144,6 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
go clean -modcache
make deps-frontend deps-backend make deps-frontend deps-backend
- name: Build frontend - name: Build frontend
@@ -385,14 +383,12 @@ jobs:
- name: Install dependencies (Unix) - name: Install dependencies (Unix)
if: matrix.goos != 'windows' if: matrix.goos != 'windows'
run: | run: |
go clean -modcache
make deps-frontend deps-backend make deps-frontend deps-backend
- name: Install dependencies (Windows) - name: Install dependencies (Windows)
if: matrix.goos == 'windows' if: matrix.goos == 'windows'
shell: pwsh shell: pwsh
run: | run: |
go clean -modcache
go mod download go mod download
pnpm install pnpm install
@@ -643,7 +639,6 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
/usr/local/go/bin/go clean -modcache
/usr/local/go/bin/go mod download /usr/local/go/bin/go mod download
pnpm install pnpm install

View File

@@ -53,7 +53,7 @@
</a> </a>
{{end}} {{end}}
{{end}} {{end}}
<details class="item toggleable-item" {{if or .PageIsSettingsPagesGeneral .PageIsSettingsPagesBrand .PageIsSettingsPagesHero .PageIsSettingsPagesContent .PageIsSettingsPagesComparison .PageIsSettingsPagesSocial .PageIsSettingsPagesPricing .PageIsSettingsPagesFooter .PageIsSettingsPagesTheme .PageIsSettingsPagesLanguages}}open{{end}}> <details class="item toggleable-item" {{if or .PageIsSettingsPagesGeneral .PageIsSettingsPagesBrand .PageIsSettingsPagesHero .PageIsSettingsPagesContent .PageIsSettingsPagesComparison .PageIsSettingsPagesSocial .PageIsSettingsPagesPricing .PageIsSettingsPagesFooter .PageIsSettingsPagesTheme .PageIsSettingsPagesLanguages .PageIsSettingsPagesAdvanced}}open{{end}}>
<summary>{{ctx.Locale.Tr "repo.settings.pages"}}</summary> <summary>{{ctx.Locale.Tr "repo.settings.pages"}}</summary>
<div class="menu"> <div class="menu">
<a class="{{if .PageIsSettingsPagesGeneral}}active {{end}}item" href="{{.RepoLink}}/settings/pages"> <a class="{{if .PageIsSettingsPagesGeneral}}active {{end}}item" href="{{.RepoLink}}/settings/pages">
@@ -86,6 +86,9 @@
<a class="{{if .PageIsSettingsPagesLanguages}}active {{end}}item" href="{{.RepoLink}}/settings/pages/languages"> <a class="{{if .PageIsSettingsPagesLanguages}}active {{end}}item" href="{{.RepoLink}}/settings/pages/languages">
{{ctx.Locale.Tr "repo.settings.pages.languages"}} {{ctx.Locale.Tr "repo.settings.pages.languages"}}
</a> </a>
<a class="{{if .PageIsSettingsPagesAdvanced}}active {{end}}item" href="{{.RepoLink}}/settings/pages/advanced">
{{ctx.Locale.Tr "repo.settings.pages.advanced"}}
</a>
</div> </div>
</details> </details>
<details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsSecrets .PageIsSharedSettingsVariables .PageIsActionsSettingsGeneral}}open{{end}}> <details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsSecrets .PageIsSharedSettingsVariables .PageIsActionsSettingsGeneral}}open{{end}}>

View File

@@ -1,37 +0,0 @@
{{if .PagesEnabled}}
<div class="ui secondary pointing menu tw-mb-4">
<a class="{{if .PageIsSettingsPagesGeneral}}active {{end}}item" href="{{.RepoLink}}/settings/pages">
{{ctx.Locale.Tr "repo.settings.pages.general"}}
</a>
<a class="{{if .PageIsSettingsPagesBrand}}active {{end}}item" href="{{.RepoLink}}/settings/pages/brand">
{{ctx.Locale.Tr "repo.settings.pages.brand"}}
</a>
<a class="{{if .PageIsSettingsPagesHero}}active {{end}}item" href="{{.RepoLink}}/settings/pages/hero">
{{ctx.Locale.Tr "repo.settings.pages.hero"}}
</a>
<a class="{{if .PageIsSettingsPagesContent}}active {{end}}item" href="{{.RepoLink}}/settings/pages/content">
{{ctx.Locale.Tr "repo.settings.pages.content"}}
</a>
<a class="{{if .PageIsSettingsPagesComparison}}active {{end}}item" href="{{.RepoLink}}/settings/pages/comparison">
{{ctx.Locale.Tr "repo.settings.pages.comparison"}}
</a>
<a class="{{if .PageIsSettingsPagesSocial}}active {{end}}item" href="{{.RepoLink}}/settings/pages/social">
{{ctx.Locale.Tr "repo.settings.pages.social"}}
</a>
<a class="{{if .PageIsSettingsPagesPricing}}active {{end}}item" href="{{.RepoLink}}/settings/pages/pricing">
{{ctx.Locale.Tr "repo.settings.pages.pricing"}}
</a>
<a class="{{if .PageIsSettingsPagesFooter}}active {{end}}item" href="{{.RepoLink}}/settings/pages/footer">
{{ctx.Locale.Tr "repo.settings.pages.footer"}}
</a>
<a class="{{if .PageIsSettingsPagesTheme}}active {{end}}item" href="{{.RepoLink}}/settings/pages/theme">
{{ctx.Locale.Tr "repo.settings.pages.theme"}}
</a>
<a class="{{if .PageIsSettingsPagesLanguages}}active {{end}}item" href="{{.RepoLink}}/settings/pages/languages">
{{ctx.Locale.Tr "repo.settings.pages.languages"}}
</a>
<a class="{{if .PageIsSettingsPagesAdvanced}}active {{end}}item" href="{{.RepoLink}}/settings/pages/advanced">
{{ctx.Locale.Tr "repo.settings.pages.advanced"}}
</a>
</div>
{{end}}