Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into 6646-advanced-table
Browse files Browse the repository at this point in the history
* origin/dev: (80 commits)
  build(deps): update nx monorepo to v20.4.6 (#11662)
  build(deps): update arcgis to ^4.32.7 (#11648)
  build: update browserslist db (#11639)
  build(deps): update eslint (#11670)
  build(deps): update dependency chromatic to v11.26.1 (#11669)
  build(deps): update dependency rollup to v4.34.9 (#11661)
  build(deps): update dependency tsx to v4.19.3 (#11658)
  chore: release next
  docs(text-area): update limitText description (#11672)
  feat(block, block-section): add `expanded` property and deprecate `open` property (#11582)
  feat(list-item, list): add `expanded` property and deprecate `open` property (#11003)
  chore: release next
  fix(tabs): redisplay close button when more than one tab is closable (#11492)
  test(shell-panel): Fix token story set up (#11635)
  chore: set up 3rd-party license generation (#11640)
  build(deps): update dependency happy-dom to v17.1.8 (#11649)
  build(deps): update dependency prettier to v3.5.2 (#11642)
  build(deps): update dependency happy-dom to v17.1.6 (#11641)
  chore: release next
  fix(card-group): Restore default gap spacing (#11638)
  ...
  • Loading branch information
benelan committed Mar 6, 2025
2 parents a14799e + bd43fc0 commit 9803d28
Show file tree
Hide file tree
Showing 146 changed files with 5,659 additions and 3,828 deletions.
48 changes: 48 additions & 0 deletions .github/scripts/closeNeedMoreInfoIssues.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// @ts-check
const {
labels: { planning },
} = require("./support/resources");

/** @param {import('github-script').AsyncFunctionArguments} AsyncFunctionArguments */
module.exports = async ({ github, context }) => {
const { repo, owner } = context.repo;
const DAYS_BEFORE_CLOSE = 14;
const MILLISECONDS_IN_A_DAY = 1000 * 60 * 60 * 24;

console.log(`Checking for issues with the label: "${planning.needsInfo}" that are stale.`);

const { data: issues } = await github.rest.issues.listForRepo({
owner: owner,
repo: repo,
state: "open",
labels: planning.needsInfo,
per_page: 100,
});

const now = new Date();

for (const issue of issues) {
const lastUpdated = new Date(issue.updated_at);
const daysSinceUpdate = Math.round((now.getTime() - lastUpdated.getTime()) / MILLISECONDS_IN_A_DAY);

if (daysSinceUpdate >= DAYS_BEFORE_CLOSE) {
console.log(`Closing issue #${issue.number} - No updates for ${Math.round(daysSinceUpdate)} days`);

await github.rest.issues.createComment({
owner: owner,
repo: repo,
issue_number: issue.number,
body: "Closing this issue due to inactivity. If the issue persists, feel free to reopen it with additional details.",
});

await github.rest.issues.update({
issue_number: issue.number,
owner: owner,
repo: repo,
state: "closed",
});
}
}

console.log("Finished checking for issues without enough information.");
};
1 change: 1 addition & 0 deletions .github/scripts/support/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const resources = {
planning: {
needsTriage: "needs triage",
needsMilestone: "needs milestone",
needsInfo: "needs more info",
spike: "spike",
spikeComplete: "spike complete",
noChangelogEntry: "no changelog entry",
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/close-needs-more-info-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Close Need More Info Issues

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1" # Runs every Monday at midnight UTC

permissions:
issues: write

jobs:
close-needs-more-info-issues:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Close issue if more info is not provided
uses: actions/github-script@v7
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/closeNeedMoreInfoIssues.js')
await action({github, context, core})
2 changes: 2 additions & 0 deletions .github/workflows/deploy-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
run: |
npm install
npm run build
npm run util:update-3rd-party-licenses
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
Expand All @@ -74,6 +75,7 @@ jobs:
# The "|| true" prevents failure if there are no changes
git add package-lock.json || true
git add **/THIRD-PARTY-LICENSES.md || true
# The release-please PR only updates when there are new deployable
# commits, e.g., fixes, features, or breaking changes. This is fine
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
"*.{json,html,yml}": ["prettier --write"],
"*.{s,}css": ["stylelint --fix", "prettier --write"],
"*.{s,}css": ["prettier --write"],
"*.md": ["prettier --write", "markdownlint --fix"],
};
2 changes: 2 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# prevents modifying licenses
THIRD-PARTY-LICENSES.md
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
**/*.d.ts
**/dist
**/.turbo

# prevents modifying licenses
THIRD-PARTY-LICENSES.md
4 changes: 2 additions & 2 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packages/calcite-components": "3.0.2",
"packages/calcite-components-react": "3.0.2",
"packages/calcite-components": "3.0.3",
"packages/calcite-components-react": "3.0.3",
"packages/calcite-design-tokens": "3.0.0",
"packages/calcite-ui-icons": "4.0.0",
"packages/eslint-plugin-calcite-components": "2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/components/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@angular/platform-browser": "^18.1.0",
"@angular/platform-browser-dynamic": "^18.1.0",
"@angular/router": "^18.1.0",
"@esri/calcite-components": "3.0.2",
"@esri/calcite-components": "3.0.3",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.14.3"
Expand Down
29 changes: 23 additions & 6 deletions examples/components/preact/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
/build
/*.log
src/assets
!src/assets/icons
!src/assets/favicon.ico
!src/assets/preact*
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
14 changes: 14 additions & 0 deletions examples/components/preact/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<title>Vite + Preact</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/index.ts"></script>
</body>
</html>
41 changes: 13 additions & 28 deletions examples/components/preact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "calcite-preact-starter",
"private": true,
"type": "module",
"homepage": "https://developers.arcgis.com/calcite-design-system/",
"description": "Starter application for @esri/calcite-commponents with Preact and TypeScript",
"repository": {
Expand All @@ -9,13 +10,11 @@
"directory": "examples/components/preact"
},
"scripts": {
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider preact build --no-prerender",
"serve": "sirv build --cors --single",
"dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider preact watch",
"build": "vite build",
"dev": "vite",
"lint": "eslint src",
"test": "jest",
"postinstall": "npm run copy",
"copy": "ncp ./node_modules/@esri/calcite-components/dist/calcite/assets/ ./src/assets/"
"preview": "vite preview",
"test": "vitest"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
Expand All @@ -28,34 +27,20 @@
]
},
"dependencies": {
"@esri/calcite-components": "3.0.2",
"preact": "^10.10.0",
"preact-render-to-string": "^5.2.1",
"preact-router": "^3.2.1"
"@esri/calcite-components": "3.0.3",
"preact": "^10.26.2",
"preact-iso": "^2.9.0"
},
"devDependencies": {
"@types/enzyme": "^3.10.12",
"@types/jest": "^27.4.1",
"@preact/preset-vite": "^2.10.1",
"@testing-library/preact": "^3.2.4",
"@typescript-eslint/eslint-plugin": "^5.30.6",
"@typescript-eslint/parser": "^5.30.6",
"cross-env": "^7.0.3",
"enzyme": "^3.11.0",
"enzyme-adapter-preact-pure": "^4.0.1",
"eslint": "^8.20.0",
"eslint-config-preact": "^1.3.0",
"jest": "^27.5.1",
"jest-preset-preact": "^4.0.5",
"ncp": "^2.0.0",
"preact-cli": "^3.4.0",
"sirv-cli": "^2.0.2",
"typescript": "^4.5.2"
},
"jest": {
"preset": "jest-preset-preact",
"setupFiles": [
"<rootDir>/tests/__mocks__/browserMocks.ts",
"<rootDir>/tests/__mocks__/setupTests.ts"
]
"typescript": "^4.5.2",
"vite-plugin-static-copy": "^2.2.0",
"vitest": "^3.0.6"
},
"volta": {
"node": "18.13.0"
Expand Down
Loading

0 comments on commit 9803d28

Please sign in to comment.