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

refactor(Styles): change font family to Outfit google font #23

Merged
merged 18 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
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
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
# Check for updates every weekday
interval: 'daily'
# Check for updates every 1 week
interval: 'weekly'
open-pull-requests-limit: 50
# Disable rebasing for pull requests, as having several open pull requests
# all get simultaneously rebased and this can be noisy from a notification standpoint
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pr-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ jobs:
- name: 🛠 Setup Node
uses: volta-cli/action@v3

- name: 💫 Cache dependencies
id: cache-node-modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}

- name: 📦 Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci

- name: 🕵️‍♀️ Lint the Pull Request name
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,25 @@ jobs:
with:
timeout_minutes: 5
max_attempts: 3
retry_on: error
command: npx nx affected --target=test --ci --code-coverage --exclude=workspace --output-style=stream-without-prefixes -- --runInBand
retry_on: any
command: npx nx affected --target=test --exclude=workspace --output-style=stream-without-prefixes -- --ci --code-coverage --runInBand

- name: ⏳ Build
uses: nick-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
retry_on: error
retry_on: any
command: npm run build

- name: 🧪 Run E2E Tests (only affected)
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
command: npx nx affected --target=e2e --exclude=workspace --output-style=stream-without-prefixes -- --ci --code-coverage --runInBand
max_attempts: 3
retry_on: error
command: npx nx affected --target=e2e --ci --code-coverage --exclude=workspace --output-style=stream-without-prefixes -- --runInBand
on_retry_command: npm run build
retry_on: any
timeout_minutes: 10

- name: 📴 Stop NX Cloud Agent
run: npx nx-cloud stop-all-agents
Expand Down
224 changes: 223 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/bee-q/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export namespace Components {
* An avatar represents an object made of different pieces of information, in a way that is understandable at a glance.
*/
interface BqAvatar {
/**
* Alternate text for the avatar image if the image cannot be displayed
*/
"altText": string;
/**
* The image source to load on the avatar (this can be also a base64 encoded image)
*/
Expand Down Expand Up @@ -576,6 +580,10 @@ declare namespace LocalJSX {
* An avatar represents an object made of different pieces of information, in a way that is understandable at a glance.
*/
interface BqAvatar {
/**
* Alternate text for the avatar image if the image cannot be displayed
*/
"altText"?: string;
/**
* The image source to load on the avatar (this can be also a base64 encoded image)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ describe('bq-avatar', () => {

it('should render image', async () => {
const page = await newE2EPage();
await page.setContent(
'<bq-avatar image="https://images.unsplash.com/photo-1524593689594-aae2f26b75ab?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80"></bq-avatar>',
);
await page.setContent(`
<bq-avatar
image="https://images.unsplash.com/photo-1524593689594-aae2f26b75ab?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80"
></bq-avatar>
`);

const element = await page.find('bq-avatar >>> [part="img"]');

Expand All @@ -42,15 +44,13 @@ describe('bq-avatar', () => {

it('should respect design style', async () => {
const page = await newE2EPage();
await page.setContent(
`
await page.setContent(`
<bq-avatar initials="JS" shape="circle" size="xsmall"></bq-avatar>
<bq-avatar initials="JS" shape="square" size="xsmall"></bq-avatar>
<bq-avatar initials="JS" shape="square" size="small"></bq-avatar>
<bq-avatar initials="JS" shape="square" size="medium"></bq-avatar>
<bq-avatar initials="JS" shape="square" size="large"></bq-avatar>
`,
);
`);

const styleProps = ['width', 'borderRadius', 'height'] as const;

Expand Down
Loading