Skip to content

Commit a42a468

Browse files
tenphiCopilot
andauthored
feat(CommandPalette): new component (#716)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f451609 commit a42a468

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2257
-417
lines changed

.changeset/curvy-planes-count.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": minor
3+
---
4+
5+
Add HotKeys component to visualize hot keys combinations.

.changeset/shiny-mangos-double.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Improve ListBox implementation and add support for the empty state with customization via `emptyLabel` property.

.changeset/silent-needles-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Add new chart icons and update the old ones.

.changeset/thin-pumas-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": minor
3+
---
4+
5+
Add `hotkeys` property for menu items to specify hot keys to trigger the action.

.github/workflows/main.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -93,51 +93,3 @@ jobs:
9393
exitOnceUploaded: true
9494
autoAcceptChanges: true
9595
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
96-
97-
deploy-docs:
98-
name: 'Deploy Latest documentation'
99-
needs: publish
100-
if: needs.publish.outputs.published == 'true'
101-
runs-on: ubuntu-latest
102-
environment:
103-
name: Docs Production
104-
url: ${{ steps.publish_docs.outputs.NETLIFY_PREVIEW_URL }}
105-
env:
106-
NODE_OPTIONS: --max-old-space-size=4096
107-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
108-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
109-
steps:
110-
- uses: actions/checkout@v2
111-
112-
- name: Install pnpm
113-
uses: pnpm/action-setup@v4
114-
with:
115-
version: 9.12.2
116-
117-
- uses: actions/cache@v3
118-
name: Download storybook cache
119-
with:
120-
path: |
121-
**/node_modules/.cache
122-
key: ${{ runner.os }}-storybook-${{ github.run_id }}
123-
restore-keys: |
124-
${{ runner.os }}-storybook
125-
126-
- uses: actions/setup-node@v3
127-
with:
128-
node-version-file: '.nvmrc'
129-
cache: 'pnpm'
130-
131-
- name: Install dependencies
132-
run: pnpm install
133-
134-
- name: Build Docs
135-
run: pnpm build-docs --quiet
136-
137-
- name: Deploy docs to Netlify
138-
uses: South-Paw/action-netlify-deploy@v1.2.1
139-
with:
140-
github-token: ${{ secrets.GITHUB_TOKEN }}
141-
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
142-
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
143-
build-dir: ./storybook-docs

.github/workflows/pull-request.yml

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -170,68 +170,3 @@ jobs:
170170
repo: context.repo,
171171
prNumber: context.payload.pull_request.number
172172
})
173-
174-
deploy-docs:
175-
name: 'Prepare Docs for the Review'
176-
runs-on: ubuntu-latest
177-
environment:
178-
name: Docs staging
179-
url: ${{ steps.publish_docs.outputs.preview-url }}
180-
env:
181-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
182-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
183-
steps:
184-
- uses: actions/checkout@v2
185-
186-
- name: Install pnpm
187-
uses: pnpm/action-setup@v4
188-
with:
189-
version: 9.12.2
190-
191-
- uses: actions/cache@v3
192-
name: Download storybook cache
193-
with:
194-
path: |
195-
**/node_modules/.cache
196-
key: ${{ runner.os }}-storybook-${{ github.run_id }}
197-
restore-keys: |
198-
${{ runner.os }}-storybook
199-
200-
- uses: actions/setup-node@v3
201-
with:
202-
node-version-file: '.nvmrc'
203-
cache: 'pnpm'
204-
205-
- name: Install dependencies
206-
run: pnpm install
207-
208-
- name: Build Docs
209-
run: pnpm build-docs --quiet
210-
211-
- name: Deploy docs to Netlify
212-
id: publish_docs
213-
uses: South-Paw/action-netlify-deploy@v1.2.1
214-
with:
215-
github-token: ${{ secrets.GITHUB_TOKEN }}
216-
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
217-
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
218-
draft: true
219-
build-dir: ./storybook-docs
220-
comment-on-commit: true
221-
222-
- name: Comment PR
223-
uses: actions/github-script@v6
224-
with:
225-
github-token: ${{ secrets.GITHUB_TOKEN }}
226-
script: |
227-
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message.cjs')
228-
229-
await setMessage({
230-
header: "## 🏗 Docs are successfully deployed!",
231-
body: `
232-
👀 Preview: ${{ steps.publish_docs.outputs.preview-url }}
233-
`,
234-
github,
235-
repo: context.repo,
236-
prNumber: context.payload.pull_request.number
237-
})

.github/workflows/size-limit.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
name: 'Measure size of the library'
2121
runs-on: ubuntu-latest
2222
env:
23-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_STATOSCOPE }}
24-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
2523
REPORT_FOLDER: './size-limit-report'
2624
NODE_OPTIONS: --max-old-space-size=4096
2725
steps:
@@ -69,18 +67,6 @@ jobs:
6967
if: github.event.number
7068
run: npx statoscope generate -i ${{ env.REPORT_FOLDER }}/stats.json -r ./__compare/${{ env.REPORT_FOLDER }}/stats.json --output ${{ env.REPORT_FOLDER }}/report.html
7169

72-
- name: Deploy Report
73-
id: deploy_report
74-
if: github.event.number
75-
uses: South-Paw/action-netlify-deploy@v1.2.1
76-
with:
77-
github-token: ${{ secrets.GITHUB_TOKEN }}
78-
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
79-
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
80-
draft: true
81-
build-dir: ${{ env.REPORT_FOLDER }}
82-
comment-on-commit: false
83-
8470
- name: Comment PR
8571
uses: actions/github-script@v6
8672
if: github.event.number

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ stats.html
1515
yarn-error.log
1616
coverage
1717
size-limit-report/stats.json
18+
docs-static
19+

DOCUMENTATION_GUIDELINES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Brief description of what the component is and its primary purpose.
4242

4343
<Story of={ComponentStories.Default} />
4444

45+
---
46+
4547
### Properties
4648

4749
<Controls of={componentStories.Default} />

jest.config.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ const config = {
1616
},
1717
],
1818
},
19+
transformIgnorePatterns: [
20+
'node_modules/(?!(.pnpm/)?react-hotkeys-hook)',
21+
],
1922
setupFilesAfterEnv: ['./src/test/setup.ts'],
2023
};
2124

0 commit comments

Comments
 (0)