<commit_before>import React, {Component} from 'react'
import {Table} from 'react-bootstrap'

import Fieldset from 'components/Fieldset'
import LinkTo from 'components/LinkTo'

export default class OrganizationApprovals extends Component {
	render() {
		let org = this.props.organization
		let approvalSteps = org.approvalSteps

		return <Fieldset id="approvals" title="Approval process">
			{approvalSteps.map((step, idx) =>
				<Fieldset title={`Step ${idx + 1}: ${step.name}`} key={'step_' + idx}>
					<Table>
						<thead>
							<tr>
								<th>Name</th>
								<th>Position</th>
							</tr>
						</thead>

						<tbody>
							{step.approvers.map((position, approverIdx) =>
								<tr key={position.uuid} id={`step_${idx}_approver_${approverIdx}`} >
									<td>{position.person && <LinkTo person={position.person} />}</td>
									<td><LinkTo position={position} /></td>
								</tr>
							)}
						</tbody>
					</Table>
				</Fieldset><commit_msg>NCI-Agency/anet#362: Mark vacant positions in approval steps as ‘Unfilled’<commit_after>import React, {Component} from 'react'
import {Table} from 'react-bootstrap'

import Fieldset from 'components/Fieldset'
import LinkTo from 'components/LinkTo'

export default class OrganizationApprovals extends Component {
	render() {
		let org = this.props.organization
		let approvalSteps = org.approvalSteps

		return <Fieldset id="approvals" title="Approval process">
			{approvalSteps.map((step, idx) =>
				<Fieldset title={`Step ${idx + 1}: ${step.name}`} key={'step_' + idx}>
					<Table>
						<thead>
							<tr>
								<th>Name</th>
								<th>Position</th>
							</tr>
						</thead>

						<tbody>
							{step.approvers.map((position, approverIdx) =>
								<tr key={position.uuid} id={`step_${idx}_approver_${approverIdx}`} >
									<td>{(position.person && position.person.uuid)
										? <td>{position.person && <LinkTo person={position.person} />}</td>
										: <td className="text-danger">Unfilled</td>}</td>
									<td><LinkTo position={position} /></td>
								</tr>
							)}
						</tbody>
					</Table>
				</Fieldset>
{'fraction_non_alphanumeric': 0.16445497630331754, 'fraction_numerical': 0.002369668246445498, 'mean_word_length': 3.0752895752895753, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2755637', 'n_tokens_mistral': 917, 'n_tokens_neox': 672, 'n_words': 147}