Skip to content

Commit

Permalink
Merge pull request #199 from bitovi/minor-fixes
Browse files Browse the repository at this point in the history
fixing minor bugs in the team config
  • Loading branch information
justinbmeyer authored Oct 24, 2024
2 parents fbbd0f4 + e2154d5 commit 1fc24c3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const TeamSelector: FC<TeamSelectorProps> = ({
>
<PeopleGroupIcon label={`${team} settings`} />
<div className="flex-1 flex justify-between items-center">
Team {team.name}
{team.name}
{team.status !== "in-both" && (
<Tooltip position="top" content={getStatusText(team.status)}>
<EditorUnlinkIcon label="unlinked team data" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@ const createDefaultJiraFieldGetter = <TFormField extends keyof Configuration>(
}

for (const possibleName of possibleNames) {
const field = jiraFields.find(
(field) => field.name === possibleName || field.name.toLowerCase() === possibleName.toLowerCase()
const strictField = jiraFields.find(
(field) => field.name === possibleName
);

if (field) {
return field.name;
if (strictField) {
return strictField.name;
}
const caseInsensitiveField = jiraFields.find(
(field) => field.name.toLowerCase() === possibleName.toLowerCase()
);

if (caseInsensitiveField) {
return caseInsensitiveField.name;
}
}

Expand Down Expand Up @@ -50,9 +57,9 @@ const getConfidenceField = createDefaultJiraFieldGetter(
["confidence"]
);

const getStartDateField = createDefaultJiraFieldGetter("startDateField", ["start date", "starting date"]);
const getStartDateField = createDefaultJiraFieldGetter("startDateField", ["Start date", "starting date"]);

const getDueDateField = createDefaultJiraFieldGetter("dueDateField", ["due date", "end date", "target date"]);
const getDueDateField = createDefaultJiraFieldGetter("dueDateField", ["Due date", "end date", "target date"]);

const nonFieldDefaults: Omit<Configuration, "estimateField" | "confidenceField" | "startDateField" | "dueDateField"> = {
sprintLength: 10,
Expand Down
12 changes: 6 additions & 6 deletions public/stateful-data/jira-data-requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,19 @@ const CORE_FIELDS = [
];

export function getRawIssues({ isLoggedIn, loadChildren, jiraHelpers, jql, fields, childJQL }, { progressUpdate }) {
debugger;
if (!fields) {
return undefined;
}

let fieldsToLoad = [...new Set([...fields, ...CORE_FIELDS])];

// progressData.value = null; THIS NEEDS TO HAPPEN OUTSIDE
if (isLoggedIn === false) {
// mock data is already field-translated
return bitoviTrainingData(new Date());
}

if (!fields) {
return undefined;
}

let fieldsToLoad = [...new Set([...fields, ...CORE_FIELDS])];

if (!jql) {
return undefined;
}
Expand Down
1 change: 0 additions & 1 deletion public/timeline-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ export class TimelineReport extends StacheElement {
if (!this.groupedParentDownHierarchy.length) {
return [];
}

const unfilteredPrimaryIssuesOrReleases = this.groupedParentDownHierarchy[0];

const hideUnknownInitiatives = this.hideUnknownInitiatives;
Expand Down

0 comments on commit 1fc24c3

Please sign in to comment.