-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/#71-refactor-error-reducer
- Loading branch information
Showing
12 changed files
with
271 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...tage-plugin/plugins/open-dora/src/components/DropdownComponent/DropdownComponent.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* istanbul ignore file */ | ||
import i18next from 'i18next'; | ||
import { initReactI18next } from 'react-i18next'; | ||
|
||
// Import all translation files | ||
import translationEnglish from './locales/en/translation.json'; | ||
|
||
// Using translation | ||
const resources = { | ||
en: { | ||
translation: translationEnglish, | ||
}, | ||
}; | ||
|
||
i18next.use(initReactI18next).init({ | ||
resources, | ||
lng: 'en', // default language | ||
}); | ||
|
||
export default i18next; |
25 changes: 25 additions & 0 deletions
25
backstage-plugin/plugins/open-dora/src/locales/en/translation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"deployment_frequency": { | ||
"labels": { | ||
"deployment_frequency": "Deployment Frequency", | ||
"deployment_frequency_average": "Deployment Frequency Average" | ||
}, | ||
"overall_labels": { | ||
"lt-6month": "Fewer than once per six months", | ||
"on-demand": "On-demand", | ||
"week-month": "Between once per week and once per month", | ||
"month-6month": "Between once per month and once every 6 months" | ||
} | ||
}, | ||
|
||
"dropdown_time_units": { | ||
"time_unit": "Time Unit", | ||
"weekly": "Weekly", | ||
"monthly": "Monthly", | ||
"quarterly": "Quarterly" | ||
}, | ||
|
||
"custom_errors": { | ||
"data_unavailable": "Data unavailable" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export interface ChartErrors { | ||
countError: Error | null; | ||
averageError: Error | null; | ||
dfBenchmarkError: Error | null; | ||
} |
8 changes: 8 additions & 0 deletions
8
backstage-plugin/plugins/open-dora/src/models/DfBenchmarkData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export interface dfBenchmarkData { | ||
key: dfBenchmarkKey; | ||
} | ||
export type dfBenchmarkKey = | ||
| 'on-demand' | ||
| 'week-month' | ||
| 'month-6month' | ||
| 'lt-6month'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.