Giter VIP home page Giter VIP logo

Comments (4)

tjuranek avatar tjuranek commented on September 26, 2024

Upon investigation I'm not able to reproduce this bug.

I attempted to replicate the issue in the linked repository but I wasn't able to get it building. I created a new demo application to test the <ResourceExplorer /> component with. When running iot-app-kit locally or running my demo app the component is styled correctly.

The styles are properly applied in the current latest version of app kit, v1.5.0, but I also tried the v1.3.0 version specified in the linked repository but still could not replicate the issue.

Screen Shot 2022-08-09 at 9 58 41 AM

from iot-app-kit.

diehbria avatar diehbria commented on September 26, 2024

Could you share the example code used in attempt to recreate the issue @tjuranek

from iot-app-kit.

tjuranek avatar tjuranek commented on September 26, 2024

I made a create-react-app project and followed the getting started docs. I tried to replicate with different versions of app kit, as well as implementing the styles with a css @import like shown in the linked demo repository. @diehbria

import { ResourceExplorer, WebglContext } from '@iot-app-kit/react-components';
import { initialize } from '@iot-app-kit/source-iotsitewise';
import { useState, useEffect } from 'react';
import "@iot-app-kit/components/styles.css";


function App() {
  const [query, setQuery] = useState(null);

  useEffect(() => {
    setQuery(initialize({
      awsCredentials: {
        accessKeyId: "",
        secretAccessKey: "",
        sessionToken: "",
      },
      awsRegion: 'us-west-2',
      settings: { 
        batchDuration: undefined,
        legacyAPI: false,
      }
    }).query);
  }, []);

  return (
    <>
      <h2>Test App</h2>

      <div style={{ width: '300px', margin: '1rem' }}>
        <ResourceExplorer
          query={query?.assetTree.fromRoot()}
          onSelectionChange={(event) => console.log(event)}
          columnDefinitions={[{
            sortingField: 'name',
            id: 'name',
            header: 'Asset Name',
            cell: ({ name }) => name
          }]}
        />
      </div>

      <WebglContext />
    </>
  );
}

export default App;

from iot-app-kit.

diehbria avatar diehbria commented on September 26, 2024

will reopen if were given a reproducible example

from iot-app-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.