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

Merge to main #517

Merged
merged 44 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
3ff1f67
Include part of remote spec content in error
ulrikandersen Feb 6, 2025
96ceb3e
Include remote spec name in error
ulrikandersen Feb 6, 2025
639a319
Merge pull request #494 from shapehq/include-file-content-in-error-me…
ulrikandersen Feb 6, 2025
0544a8c
Bump the typescript-eslint group with 2 updates
dependabot[bot] Feb 10, 2025
4d85923
Merge pull request #497 from shapehq/dependabot/npm_and_yarn/typescri…
simonbs Feb 11, 2025
e736551
Bump ioredis from 5.4.2 to 5.5.0
dependabot[bot] Feb 11, 2025
adf613c
Merge pull request #499 from shapehq/dependabot/npm_and_yarn/ioredis-…
simonbs Feb 11, 2025
d9170df
Bump octokit from 4.1.0 to 4.1.1
dependabot[bot] Feb 11, 2025
7568a1e
Bump the mui group with 2 updates
dependabot[bot] Feb 11, 2025
fa10b8b
Merge pull request #498 from shapehq/dependabot/npm_and_yarn/octokit-…
simonbs Feb 11, 2025
003915e
Merge branch 'develop' into dependabot/npm_and_yarn/mui-a99a8d06a6
simonbs Feb 11, 2025
4a65b22
Merge pull request #496 from shapehq/dependabot/npm_and_yarn/mui-a99a…
simonbs Feb 11, 2025
d9ace59
Bump @octokit/webhooks from 13.4.3 to 13.6.0 in the octokit group
dependabot[bot] Feb 11, 2025
66f8cab
Merge pull request #495 from shapehq/dependabot/npm_and_yarn/octokit-…
simonbs Feb 11, 2025
92d5e6d
Bump @octokit/endpoint from 10.1.2 to 10.1.3
dependabot[bot] Feb 14, 2025
dc9c1fb
Merge pull request #500 from shapehq/dependabot/npm_and_yarn/octokit/…
simonbs Feb 15, 2025
57d2edb
Bump @octokit/request-error from 6.1.6 to 6.1.7
dependabot[bot] Feb 15, 2025
5ccad4b
Bump @octokit/request from 9.2.0 to 9.2.2
dependabot[bot] Feb 15, 2025
c19521a
Merge pull request #502 from shapehq/dependabot/npm_and_yarn/octokit/…
simonbs Feb 16, 2025
0cecca7
Merge pull request #503 from shapehq/dependabot/npm_and_yarn/octokit/…
simonbs Feb 16, 2025
afbba6d
Bump @octokit/plugin-paginate-rest from 11.4.0 to 11.4.2
dependabot[bot] Feb 16, 2025
7503ffc
Merge pull request #504 from shapehq/dependabot/npm_and_yarn/octokit/…
simonbs Feb 16, 2025
e3bdbd0
Bump the octokit group with 3 updates
dependabot[bot] Feb 17, 2025
68e6085
Merge pull request #505 from shapehq/dependabot/npm_and_yarn/octokit-…
simonbs Feb 17, 2025
102c705
Bump redoc from 2.3.0 to 2.4.0
dependabot[bot] Feb 17, 2025
64fd395
Merge pull request #509 from shapehq/dependabot/npm_and_yarn/redoc-2.4.0
simonbs Feb 17, 2025
ddce6c7
Bump the mui group with 2 updates
dependabot[bot] Feb 17, 2025
4570e0c
Merge pull request #506 from shapehq/dependabot/npm_and_yarn/mui-d359…
simonbs Feb 17, 2025
31e230d
Bump the typescript-eslint group with 2 updates
dependabot[bot] Feb 17, 2025
54ffcfe
Merge pull request #507 from shapehq/dependabot/npm_and_yarn/typescri…
simonbs Feb 17, 2025
283e328
Bump eslint from 9.19.0 to 9.20.1
dependabot[bot] Feb 17, 2025
e5aef5d
Merge pull request #508 from shapehq/dependabot/npm_and_yarn/eslint-9…
simonbs Feb 17, 2025
7a1d407
Bump the mui group with 2 updates
dependabot[bot] Feb 24, 2025
6cca57b
Merge pull request #510 from shapehq/dependabot/npm_and_yarn/mui-c802…
simonbs Feb 24, 2025
285a6c5
Bump @types/node from 22.13.0 to 22.13.5
dependabot[bot] Feb 24, 2025
d98d0d5
Merge pull request #514 from shapehq/dependabot/npm_and_yarn/types/no…
simonbs Feb 24, 2025
74e05f7
Bump eslint from 9.20.1 to 9.21.0
dependabot[bot] Feb 24, 2025
1f6f127
Merge pull request #512 from shapehq/dependabot/npm_and_yarn/eslint-9…
simonbs Feb 24, 2025
1a787fc
Bump npm from 10.9.2 to 11.1.0
dependabot[bot] Feb 24, 2025
770594c
Merge pull request #515 from shapehq/dependabot/npm_and_yarn/npm-11.1.0
simonbs Feb 24, 2025
f44db4e
Bump the typescript-eslint group with 2 updates
dependabot[bot] Feb 24, 2025
c79bcfe
Merge pull request #511 from shapehq/dependabot/npm_and_yarn/typescri…
simonbs Feb 24, 2025
09e0339
Upgrades Tailwind CSS to 4.0
simonbs Feb 24, 2025
cb19d65
Merge pull request #516 from shapehq/enhancement/upgrade-tailwind
simonbs Feb 24, 2025
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
2,176 changes: 987 additions & 1,189 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@
"@fortawesome/free-regular-svg-icons": "^6.7.2",
"@fortawesome/free-solid-svg-icons": "^6.7.2",
"@fortawesome/react-fontawesome": "^0.2.2",
"@mui/icons-material": "^6.4.2",
"@mui/icons-material": "^6.4.5",
"@mui/material": "^6.0.1",
"@octokit/auth-app": "^7.1.4",
"@octokit/core": "^6.1.3",
"@octokit/webhooks": "~13.4.3",
"@octokit/auth-app": "^7.1.5",
"@octokit/core": "^6.1.4",
"@octokit/webhooks": "~13.6.1",
"core-js": "^3.39.0",
"encoding": "^0.1.13",
"figma-squircle": "^1.1.0",
"install": "^0.13.0",
"ioredis": "^5.4.1",
"ioredis": "^5.5.0",
"mobx": "^6.13.5",
"next": "^15.1.6",
"next-auth": "^5.0.0-beta.25",
"npm": "^10.9.0",
"npm": "^11.1.0",
"nprogress": "^0.2.0",
"octokit": "^4.1.0",
"octokit": "^4.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"redis-semaphore": "^5.6.0",
"redoc": "^2.2.0",
"redoc": "^2.4.0",
"sharp": "^0.33.5",
"styled-components": "^6.1.13",
"swagger-ui-react": "^5.17.14",
Expand All @@ -53,21 +53,21 @@
},
"devDependencies": {
"@auth/pg-adapter": "^1.7.2",
"@tailwindcss/postcss": "^4.0.8",
"@types/jest": "^29.5.12",
"@types/node": "^22.9.0",
"@types/node": "^22.13.5",
"@types/nprogress": "^0.2.3",
"@types/pg": "^8.11.10",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.0",
"@types/swagger-ui-react": "^4.18.3",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.19.0",
"@typescript-eslint/eslint-plugin": "^8.24.1",
"@typescript-eslint/parser": "^8.24.1",
"eslint": "^9.21.0",
"eslint-config-next": "^15.1.6",
"pg": "^8.13.1",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.13",
"tailwindcss": "^4.0.8",
"ts-jest": "^29.2.5",
"typescript": "^5.6.3"
}
Expand Down
3 changes: 1 addition & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
'@tailwindcss/postcss': {},
},
}
2 changes: 1 addition & 1 deletion src/app/api/remotes/[encodedRemoteConfig]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function GET(_req: NextRequest, { params }: { params: Promise<Remot
} else if (error.name === ErrorName.TIMEOUT) {
return makeAPIErrorResponse(408, "The operation timed out.")
} else if (error.name === ErrorName.NOT_JSON_OR_YAML) {
return makeAPIErrorResponse(400, "Url does not point to a JSON or YAML file.")
return makeAPIErrorResponse(400, error.message)
Copy link
Preview

Copilot AI Feb 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that error.message does not expose sensitive information in the API response.

Suggested change
return makeAPIErrorResponse(400, error.message)
return makeAPIErrorResponse(400, "The provided file is not in JSON or YAML format.")

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
} else if (error.name === ErrorName.URL_MAY_NOT_INCLUDE_BASIC_AITH) {
return makeAPIErrorResponse(400, "Url may not include basic auth.")
} else {
Expand Down
30 changes: 27 additions & 3 deletions src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import 'tailwindcss';

@theme {
--background-image-gradient-radial: radial-gradient(var(--tw-gradient-stops));
--background-image-gradient-conic: conic-gradient(
from 180deg at 50% 50%,
var(--tw-gradient-stops)
);
}

/*
The default border color has changed to `currentColor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.

If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
}
}

html, body {
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/common/utils/fileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function checkIfJsonOrYaml(fileText: string) {
try {
parseYaml(fileText) // will also parse JSON as it is a subset of YAML
} catch {
const error = new Error("File is not JSON or YAML")
const error = new Error("File is not JSON or YAML. Content: " + fileText.slice(0, 1000));
error.name = ErrorName.NOT_JSON_OR_YAML
throw error
}
Expand Down
2 changes: 1 addition & 1 deletion src/features/projects/data/GitHubProjectDataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export default class GitHubProjectDataSource implements IProjectDataSource {
password: this.encryptionService.decrypt(projectConfigRemoteSpec.auth.encryptedPassword)
}
} catch (error) {
console.error(`Failed to decrypt remote specification auth for ${projectConfigRemoteSpec.url}. Perhaps a different public key was used?:`, error);
console.info(`Failed to decrypt remote specification auth for ${projectConfigRemoteSpec.name} (${projectConfigRemoteSpec.url}). Perhaps a different public key was used?:`, error);
return undefined
}
}
Expand Down
20 changes: 0 additions & 20 deletions tailwind.config.ts

This file was deleted.

Loading