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

Browser react sample project #269

Merged
merged 16 commits into from
Aug 22, 2023
Merged

Browser react sample project #269

merged 16 commits into from
Aug 22, 2023

Conversation

ohadbitt
Copy link
Contributor

@ohadbitt ohadbitt commented Aug 9, 2023

Added

  • Browser react sample project

Fixed

  • Remove crypto-browserify dependency as its not trusted and not used

@ohadbitt ohadbitt requested a review from AsafMah August 9, 2023 13:41
@github-actions
Copy link

github-actions bot commented Aug 9, 2023

Unit Test Results

    1 files  ±0    15 suites  ±0   47s ⏱️ ±0s
254 tests ±0  247 ✔️ ±0  7 💤 ±0  0 ±0 
260 runs  ±0  253 ✔️ ±0  7 💤 ±0  0 ±0 

Results for commit 5db977d. ± Comparison against base commit 916c050.

♻️ This comment has been updated with latest results.

<div
{...getRootProps()}
style={{
borderStyle: "solid",
Copy link

@ruthshemla ruthshemla Aug 10, 2023

Choose a reason for hiding this comment

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

should move all inline css into scss modules files

How to start:
https://stackoverflow.com/a/67353154
install and write scss files with naming convention .module.scss
then import it in the jsx file like so: import styles from './file.module.scss';
then add className to the div as such: <div className={styles.nameOfIt} ...>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think ill leave this as is - because its just a sample and this was easier for me

@@ -0,0 +1,61 @@
import { Button } from "@fluentui/react-components";
import { Client } from "azure-kusto-data";
import React from "react";

Choose a reason for hiding this comment

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

install eslint and prettier and others, It will help with fixing by conventions. like React comes first and the rest better be orders alphabetically

Here is a blog about those:
https://medium.com/dooboolab/using-eslint-prettier-and-sort-imports-vscode-extensions-for-formatting-open-source-project-16edf317129d

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We already use eslint

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We already have eslint - dont think its critical that it will align with what you have on webux

label="Mapping value"
onChange={(_, data: string) => {
state.configData.mappingValue = data;
setState({ ...state });

Choose a reason for hiding this comment

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

Suggested change
setState({ ...state });
setState(state);

error?: string;
disabled?: boolean;
}
export const RowAligned: React.FunctionComponent<{ children: React.ReactNode }> = (props) => {

Choose a reason for hiding this comment

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

Suggested change
export const RowAligned: React.FunctionComponent<{ children: React.ReactNode }> = (props) => {
export const RowAligned: React.FC = ({children}) => {

Copy link
Contributor Author

@ohadbitt ohadbitt Aug 15, 2023

Choose a reason for hiding this comment

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

it doesnt like children without type

@codecov
Copy link

codecov bot commented Aug 15, 2023

Codecov Report

Merging #269 (5db977d) into master (28291f3) will decrease coverage by 0.05%.
Report is 2 commits behind head on master.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           master     #269      +/-   ##
==========================================
- Coverage   82.72%   82.68%   -0.05%     
==========================================
  Files          38       38              
  Lines        1881     1888       +7     
  Branches      425      426       +1     
==========================================
+ Hits         1556     1561       +5     
- Misses        317      319       +2     
  Partials        8        8              
Files Changed Coverage Δ
packages/azure-kusto-data/src/client.ts 83.85% <0.00%> (-1.06%) ⬇️
packages/azure-kusto-data/src/index.ts 100.00% <100.00%> (ø)
packages/azure-kusto-ingest/src/index.ts 100.00% <100.00%> (ø)

Copy link
Collaborator

@AsafMah AsafMah left a comment

Choose a reason for hiding this comment

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

some comments

packages/quick-start-browser/src/kusto_sample_config.json Outdated Show resolved Hide resolved
packages/quick-start-browser/README.md Outdated Show resolved Hide resolved
packages/quick-start-browser/src/Utils.ts Outdated Show resolved Hide resolved
packages/quick-start-browser/README.md Outdated Show resolved Hide resolved
packages/quick-start-browser/src/BrowseFiles.tsx Outdated Show resolved Hide resolved
packages/quick-start-browser/src/CreateTable.tsx Outdated Show resolved Hide resolved
AsafMah
AsafMah previously approved these changes Aug 21, 2023
Copy link
Collaborator

@AsafMah AsafMah left a comment

Choose a reason for hiding this comment

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

Just change the name to quick_start_browser

@ohadbitt ohadbitt merged commit cf73214 into master Aug 22, 2023
7 checks passed
@ohadbitt ohadbitt deleted the browser-react-sample branch August 22, 2023 07:44
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.

4 participants