-
Notifications
You must be signed in to change notification settings - Fork 223
PMM-15216 fix ui build: bootstrap pnpm via corepack, drop yarn leftover #5653
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
Open
fabio-silva
wants to merge
20
commits into
main
Choose a base branch
from
PMM-15216
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4425981
chore(ui): migrate toolchain to pnpm + oxlint/oxfmt (SEP migration Ph…
1bd6495
feat(ui): React 19 / RR7 / Vite 8 / Vitest 4 / TS 6 (SEP migration Ph…
e430d3d
feat(ui): bring in @sep/{api,shared,framework} with tests (SEP migrat…
c711ca9
feat(ui): mount snippets + mysql_backups as native routes (SEP migrat…
eabef01
Sync post-migration SEP frontend features into PMM
78d7429
feat: use PageContainer from @percona/percona-ui for page width
7b88ca2
Sync SEP-1555 + SEP-1556 frontend changes into migrated PMM apps
a61777b
feat(ui): gate SEP nav apps behind admin + settings in inventory section
079b63b
fix(ui): pass routeBase to mysql_backups plugin so Restore tab resolves
5e90798
PMM-15216: chore: update @percona/percona-ui to version 1.0.24 and ad…
a2453ce
PMM-15216 fix ui build: bootstrap pnpm via corepack, drop yarn leftover
03d5f02
PMM-15216 fix ui build: install pnpm in rpmbuild images
cursoragent c2c84db
Merge branch 'main' into PMM-15216
cursoragent f4248ea
fix(ui): pass initial value to useRef in InstallClientPage
cursoragent 6905c60
style(ui): oxfmt Settings.tsx after main merge
cursoragent 627550c
feat(pmm-ui): replace Snippets app with Collect Diagnostic Data (dipper)
22e0824
Merge branch 'main' into PMM-15216
418d104
fix(pmm-ui): migrate ATW (Collect Diagnostic Data) instead of dipper
0047157
PMM-15216: fix linter formatting
3869d15
Merge branch 'main' into PMM-15216
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -29,6 +29,9 @@ RUN dnf update -y && \ | |
| dnf install -y --enablerepo=ol9_codeready_builder glibc-static && \ | ||
| dnf clean all && rm -rf /var/cache/dnf | ||
|
|
||
| # UI build uses pnpm (packageManager in ui/package.json); nodesource nodejs ships npm/yarn only. | ||
| RUN npm install -g pnpm@11.1.3 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the same as above |
||
|
|
||
| # Copy Go from official golang image to avoid QEMU extraction issues | ||
| COPY --from=golang /usr/local/go /usr/local/go | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "$schema": "./node_modules/oxfmt/configuration_schema.json", | ||
| "singleQuote": true, | ||
| "trailingComma": "es5", | ||
| "tabWidth": 2, | ||
| "semi": true, | ||
| "printWidth": 80, | ||
| "bracketSpacing": true, | ||
| "arrowParens": "always", | ||
| "endOfLine": "lf", | ||
| "ignorePatterns": [ | ||
| "dist", | ||
| "node_modules", | ||
| "pnpm-lock.yaml", | ||
| "storybook-static", | ||
| "**/.config/**" | ||
| ] | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,27 +1,32 @@ | ||
| dev: | ||
| yarn dev | ||
| pnpm dev | ||
|
|
||
| ci: setup format-check lint test build | ||
|
|
||
| format: setup | ||
| yarn format | ||
| pnpm format | ||
|
|
||
| format-check: setup | ||
| yarn format:check | ||
| pnpm format:check | ||
|
|
||
| lint: setup | ||
| yarn lint | ||
| pnpm lint | ||
|
|
||
| test: setup | ||
| yarn test | ||
| pnpm test | ||
|
|
||
| setup: | ||
| yarn install | ||
| # Prefer corepack (honors packageManager pin). Fall back to a global npm | ||
| # install so feature builds work against the current rpmbuild image, which | ||
| # ships nodejs+yarn but not pnpm until rpmbuild:3 is republished. | ||
| corepack enable pnpm || sudo corepack enable pnpm || true | ||
| command -v pnpm >/dev/null 2>&1 || sudo npm install -g pnpm@11.1.3 | ||
| pnpm install | ||
|
|
||
| build: setup | ||
| yarn build | ||
| pnpm build | ||
|
|
||
| release: build | ||
|
|
||
| clean: | ||
| yarn clean | ||
| pnpm clean |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to pass ppm version during docker build (read from some file in repo)? It will simplify the maintenance in future (less files are required to be changed during version bump).