Skip to content

add loading component#909

Merged
sieu-db merged 5 commits intomasterfrom
sieu/p-5198-add-loading-component
Aug 6, 2024
Merged

add loading component#909
sieu-db merged 5 commits intomasterfrom
sieu/p-5198-add-loading-component

Conversation

@sieu-db
Copy link
Collaborator

@sieu-db sieu-db commented Jul 29, 2024

Overview

  • Support AcitivtyIndicator component
  • Make sure it's worked with existing size is "small" or "large", make sure it's scale correctly on iOS device
Screen.Recording.2024-07-31.at.11.05.06.mov

@linear
Copy link

linear bot commented Jul 29, 2024

@sieu-db sieu-db changed the title add activity indicator component add test component Jul 29, 2024
@sieu-db sieu-db marked this pull request as draft July 29, 2024 12:22
@github-actions
Copy link

Published version: @draftbit/ui@50.2.2-132cc7.2

@sieu-db sieu-db changed the title add test component add loading component Jul 29, 2024
@github-actions
Copy link

Published version: @draftbit/ui@50.2.2-05bcd9.2

@github-actions
Copy link

Published version: @draftbit/ui@50.2.2-8f086c.2

@sieu-db sieu-db requested a review from YoussefHenna July 31, 2024 04:01
@github-actions
Copy link

Published version: @draftbit/ui@50.2.2-4b8c78.2

@sieu-db sieu-db marked this pull request as ready for review July 31, 2024 04:01
YoussefHenna
YoussefHenna previously approved these changes Aug 5, 2024
Copy link
Collaborator

@YoussefHenna YoussefHenna left a comment

Choose a reason for hiding this comment

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

Some minor comments, otherwise awesome stuff!

Comment on lines 26 to 27
export enum ActivityIndicatorType {
plane = "plane",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
export enum ActivityIndicatorType {
plane = "plane",
export enum ActivityIndicatorType {
default = "default"
plane = "plane",

Let's have a default type to make it more explicit

Comment on lines 80 to 83
color,
theme,
type,
size,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
color,
theme,
type,
size,
theme,
color = theme.colors.branding.primary,
type = "default",
size = "small",

Let's add default values here to be consistent with how it's in other components

<View
style={{
transform: [{ scale: scaleLevel }],
}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

The style prop should be applied here instead of the child component so we'd need to extract it from rest and apply it directly.

@github-actions
Copy link

github-actions bot commented Aug 6, 2024

Published version: @draftbit/ui@50.2.2-5816fd.2

Copy link
Collaborator

@YoussefHenna YoussefHenna left a comment

Choose a reason for hiding this comment

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

Awesome. Don't forget to make the same changes for the 49 branch

@sieu-db
Copy link
Collaborator Author

sieu-db commented Aug 6, 2024

Yep sure. Thanks

@sieu-db sieu-db merged commit f122a06 into master Aug 6, 2024
@sieu-db sieu-db deleted the sieu/p-5198-add-loading-component branch August 6, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants