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

[FCE-400] Support names in demo app (and add missing CI checks) #66

Merged
merged 6 commits into from
Aug 23, 2024

Conversation

mironiasty
Copy link
Member

@mironiasty mironiasty commented Aug 22, 2024

Description

Allow test app to handle user names in similar way as mobile app

Also add missing lint/format CI checks. And reformat code using our rules

Motivation and Context

Easier app testing

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)

@mironiasty mironiasty changed the title Support names in demo app [FCE-400] Support names in demo app (and add missing CI checks) Aug 22, 2024
Copy link

linear bot commented Aug 22, 2024

Comment on lines +19 to +20
defaultRoomName: localStorage.getItem("roomName") ?? "",
defaultUserName: localStorage.getItem("userName") ?? "",
Copy link
Member Author

Choose a reason for hiding this comment

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

bug fix 🙈

@@ -67,7 +67,9 @@ function App() {
)}

<div className="absolute bottom-2 left-0 w-full grid place-content-center text-center text-xs z-30">
<p className="bg-slate-100/60 px-1 rounded-sm">{id}</p>
<p className="bg-slate-100/60 px-1 rounded-sm">
{(metadata as { name?: string })?.name ?? id}
Copy link
Member Author

Choose a reason for hiding this comment

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

main change

Copy link
Collaborator

Choose a reason for hiding this comment

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

that inline type is not the prettiest, but will do the job until we have the predefined metadata typed by the sdk

Copy link
Member Author

Choose a reason for hiding this comment

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

That is my assumption - soon we should have these values typed better, so then it will be fixed.

Comment on lines +10 to 13
"lint:check": "eslint . --ext .ts,.tsx",
"format": "prettier --write . --ignore-path ./.eslintignore",
"format:check": "prettier --check . --ignore-path ./.eslintignore",
"preview": "vite preview"
Copy link
Member Author

Choose a reason for hiding this comment

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

Missing commands

@mironiasty mironiasty requested review from czerwiukk and kamil-stasiak and removed request for czerwiukk August 22, 2024 13:11
@mironiasty mironiasty marked this pull request as ready for review August 22, 2024 13:11
@mironiasty mironiasty requested a review from czerwiukk August 22, 2024 13:36
@mironiasty mironiasty merged commit f793da8 into main Aug 23, 2024
2 checks passed
@mironiasty mironiasty deleted the support-names-in-demo-app branch August 23, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants