Sha256: bbacb64f593a07a2bf869334610cf783dd4f15637f8768349b33898f9e2735f2

Contents?: true

Size: 1.59 KB

Versions: 31

Compression:

Stored size: 1.59 KB

Contents

/** @jsx h */
import { Component, h } from 'preact';
import Tabs from './Tabs.jsx';
import Tab from './Tab.jsx';
import JourneyView from './JourneyView.jsx';
import ProcessDetailsView from './ProcessDetailsView.jsx';

class DetailsView extends Component {
  render() {
    return (
      <div className="details-view">
        <p>Error ID: {this.props.spec.error.id}</p>
        <Tabs defaultActiveKey="problem-location" id="details-process-tabs">
          <Tab eventKey="problem-location" title="Problem location">
            <p />
            <JourneyView spec={this.props.spec} />
          </Tab>

          <Tab eventKey="core-process" title={this.props.spec.short_program_name + ' core'}>
            <p />
            <ProcessDetailsView spec={this.props.spec.diagnostics.core_process} />
          </Tab>

          {this.maybeRenderPreloaderProcessDetailsTab()}

          <Tab eventKey="subprocess" title="Subprocess">
            <p />
            <ProcessDetailsView spec={this.props.spec.diagnostics.subprocess} />
          </Tab>

          <Tab eventKey="system-wide" title="System-wide stats">
            <p />
            <pre>{this.props.spec.diagnostics.system_wide.system_metrics}</pre>
          </Tab>
        </Tabs>
      </div>
    );
  }

  maybeRenderPreloaderProcessDetailsTab() {
    if (this.props.spec.journey.type === 'SPAWN_THROUGH_PRELOADER') {
      return (
        <Tab eventKey="preloader" title="Preloader process">
          <p />
          <ProcessDetailsView spec={this.props.spec.diagnostics.preloader_process} />
        </Tab>
      );
    }
  }
}

export default DetailsView;

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
passenger-6.0.24 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.23 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.20 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.19 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.18 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.17 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.16 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.15 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.14 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.13 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.12 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.11 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.10 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.9 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.8 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.7 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.6 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.5 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.4 resources/templates/error_renderer/with_details/src/DetailsView.jsx
passenger-6.0.3 resources/templates/error_renderer/with_details/src/DetailsView.jsx