Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
0d71e12
feat: report card
iacopolea Nov 3, 2022
a429f77
feat(report): update bugs_excel report behavior
marcbon Nov 7, 2022
f7992b7
feat: report card
iacopolea Nov 3, 2022
b5dd44f
feat(report): update bugs_excel report behavior
marcbon Nov 7, 2022
5ca458b
Merge branch 'UN-14' of github.com:AppQuality/unguess-react into UN-14
marcbon Nov 8, 2022
ad2974e
fix(report): execute yarn translate + update translations
marcbon Nov 8, 2022
ccb5059
wip: pageheader for mother dashboard
Nov 10, 2022
4950006
wip(mother-dashboard): menu
iacopolea Nov 10, 2022
754381e
wip(mother dashboard): test counters icons
iacopolea Nov 10, 2022
86c4562
wip(mother-dashboard): test header button
iacopolea Nov 10, 2022
f51e870
rework(navigation): extract sticky container
iacopolea Nov 10, 2022
bbff3c8
wip(mother-dashboard): init navigation
iacopolea Nov 10, 2022
8c72438
wip(mother-dashboard): navigation external link
iacopolea Nov 10, 2022
6e95553
feat(navigation): close sidebar action
iacopolea Nov 10, 2022
dd64239
feat(mother dashboard): closed sidebar
iacopolea Nov 10, 2022
9f84adc
fix(mother dash): get correct external link
iacopolea Nov 11, 2022
85b1f68
refactor(service): use common component
iacopolea Nov 11, 2022
82594e2
wip:iacopops
Nov 11, 2022
4273fe5
feat(mother dash): finalize pill
iacopolea Nov 11, 2022
7f1eff4
fix(mother dash): align header elements
iacopolea Nov 11, 2022
2afadec
chore: Update design system
d-beezee Nov 11, 2022
6603dd8
feat: use Pill component
Nov 11, 2022
2b7ab8e
feat(campaign-header): set basic button
Nov 14, 2022
288abcc
refactor(cp-header): change pills component name + styled component
marcbon Nov 14, 2022
4bcd9a6
refactor(pill): refactor props + style
marcbon Nov 14, 2022
99c0933
fix(cp-header): fix icons svg
marcbon Nov 14, 2022
02a8703
refactor(pill): clean component + style
marcbon Nov 14, 2022
b01016e
feat(cp-header): show start_date year if years are different
marcbon Nov 14, 2022
1084f40
feat(cp-header): add mobile icon
marcbon Nov 14, 2022
62c795a
feat(cp-header): check campaign details in order to show platforms an…
marcbon Nov 14, 2022
a38401b
feat(cp-header): update translations
marcbon Nov 14, 2022
81a5b17
fix(mother dash): custom functional navigation
iacopolea Nov 14, 2022
f2ae839
fix(mother dash): use external link interface
iacopolea Nov 14, 2022
65db98b
feat(navigation): open sidebar if route is "campaigns"
marcbon Nov 14, 2022
4f0c206
Merge pull request #269 from AppQuality/UN-96
marcbon Nov 14, 2022
63e034a
Merge pull request #268 from AppQuality/UN-95
marcbon Nov 14, 2022
e08ee4a
Merge branch 'UN-14' into UN-93
marcbon Nov 14, 2022
12921c0
chore: Update design system
d-beezee Nov 14, 2022
d8ad1ff
chore: Update api
d-beezee Nov 14, 2022
104a998
feat(cp-page): remove empty state reports
marcbon Nov 14, 2022
711bd29
Merge branch 'UN-93' into UN-94-page-header
marcbon Nov 14, 2022
c2af494
Merge pull request #270 from AppQuality/UN-94-page-header
marcbon Nov 14, 2022
0717a3f
fix(bugs-report): move component to common + update translations keys
marcbon Nov 14, 2022
e89e2d8
refactor(page-header): refactor name page header footer
marcbon Nov 14, 2022
e4e93b9
refactor(campaign): move useExternalLink function to hooks folder
marcbon Nov 14, 2022
207c12d
feat: Add widget base card
d-beezee Nov 14, 2022
7c6bb0d
feat(campaign): add hook to retrieve second dashboard detail url
marcbon Nov 14, 2022
23d2a03
fix(cp-page): fix navigation items
marcbon Nov 15, 2022
887fa5d
Merge pull request #271 from AppQuality/setup-widget-card
iacopolea Nov 15, 2022
20e9241
wip(mother dash): init widgets row
iacopolea Nov 15, 2022
960552e
fix(cp-page): check outputs instead of type
marcbon Nov 15, 2022
8b93e12
fix(cp-page): clean code
marcbon Nov 15, 2022
7ea6669
feat(localize-dashboard): redirect cp with outputs bugs to react
marcbon Nov 15, 2022
e47581d
chore(waffle): update library des-sys
Nov 15, 2022
a374c56
feat(cp-page): show bugs widgets only if outputs includes bugs
marcbon Nov 15, 2022
30c9c48
refactor(cp-navigation): refactor navigation component + update trans…
marcbon Nov 15, 2022
1b47f8b
chore(package.json): update unguess library
marcbon Nov 15, 2022
aa03aff
wip(page-header): add fake campaign-meta
Nov 16, 2022
5ca7bf0
feat(api): update api
Nov 16, 2022
0356069
fix(Campaign Type): replace Campaign with CampaignWithoutput
Nov 16, 2022
1744584
feat(page-header): fetch campaigns meta from api
Nov 16, 2022
870d408
wip(page-header): add fake campaign-meta
Nov 16, 2022
2efdd4b
feat(api): update api
Nov 16, 2022
e0a86cc
fix(Campaign Type): replace Campaign with CampaignWithoutput
Nov 16, 2022
705b62a
feat(page-header): fetch campaigns meta from api
Nov 16, 2022
aba7cfe
Merge branch 'UN-94-page-header' of github.com:AppQuality/unguess-rea…
Nov 16, 2022
b333f15
chore(page-header): rename Pills component
Nov 16, 2022
dfbd536
chore(page-header): rename pageHeaderFooter component
Nov 16, 2022
72b47a0
refactor(page-header): add tablet icon
Nov 16, 2022
8bb9cb5
build(design-system): bump design system to 2.12.33
cannarocks Nov 17, 2022
6b810cc
build(designSystem): update yarn.lock
cannarocks Nov 17, 2022
3734c8d
fix(cp-page): show bugs report card only if cp family is functional
marcbon Nov 18, 2022
a03c34e
feat(cp-page): add nav loading + check is functional and reports length
marcbon Nov 18, 2022
2ab2969
fix(cp-page): show reports section title if cp family is functional o…
marcbon Nov 18, 2022
9e23949
feat(cp-page): add empty state + update translation
marcbon Nov 18, 2022
26a1709
fix(cp-page): show empty state for cp with outputs different than bugs
marcbon Nov 18, 2022
8fa5f2e
feat(unique-bugs): add title
Nov 15, 2022
538698c
wip: initial setup unique-bugs + translations
Nov 15, 2022
aff88d8
translations
Nov 15, 2022
da0eba7
feat(waffle): uptade translation tag
Nov 15, 2022
552780c
feat(unique-bugs): add title
Nov 15, 2022
82f1d72
translations
Nov 15, 2022
a755aa0
feat(waffle): uptade translation tag
Nov 15, 2022
fd00338
refact(waffle): remove useless XL
Nov 16, 2022
486c0ae
wip(waffle): basic structure
Nov 16, 2022
2efb972
chore: Allow using custom components in props (for waffle tooltip)
d-beezee Nov 16, 2022
e980b31
feat(campaign): Add data and translation to unique bug widget
d-beezee Nov 16, 2022
f8cfa82
rework: Extract waffletooltip component
d-beezee Nov 16, 2022
695b55a
wip(waffle): remove footer for now
Nov 17, 2022
77530aa
feat(unique-bugs): add title
Nov 15, 2022
d41c222
wip: initial setup unique-bugs + translations
Nov 15, 2022
d22b9f9
translations
Nov 15, 2022
cc3239a
feat(waffle): uptade translation tag
Nov 15, 2022
dfc2355
feat(unique-bugs): add title
Nov 15, 2022
8a90e96
translations
Nov 15, 2022
e37c637
feat(waffle): uptade translation tag
Nov 15, 2022
00fbe30
refact(waffle): remove useless XL
Nov 16, 2022
9973b3d
rework: Extract waffletooltip component
d-beezee Nov 16, 2022
7edf046
fix(unique-bugs): replace Separator with Divider component
marcbon Nov 18, 2022
3d30f47
fix(unique-bugs): remove useless progress demo component
marcbon Nov 18, 2022
1ccc610
fix(unique-bugs): fix tooltip size and type
marcbon Nov 18, 2022
72c2e3c
fix(unique-bugs): update translations
marcbon Nov 18, 2022
7aaab2b
wip(progress widget): init customization
iacopolea Nov 15, 2022
b7c4188
wip(progress widget): footers style
iacopolea Nov 15, 2022
dc5bc80
fix(progress widget): copy and style footer
iacopolea Nov 15, 2022
4331c8a
fix(progress widget): style and copy
iacopolea Nov 15, 2022
f6b4563
feat(progress wdgt): format dates
iacopolea Nov 15, 2022
405ce54
feat(progress widget): campaign duration
iacopolea Nov 16, 2022
720f2f3
feat(progress): estimated time & format start date
iacopolea Nov 16, 2022
643682a
chore: update api & schema
iacopolea Nov 16, 2022
dbdcf52
feat(progress widget): use api formatted results
iacopolea Nov 16, 2022
cffe846
fix(progress widget): count and percentage
iacopolea Nov 16, 2022
5310853
fix(widget card): label color
iacopolea Nov 17, 2022
d0c04c6
fix(bullet): label size
iacopolea Nov 17, 2022
8f9aa9f
fix(widget card): title color
iacopolea Nov 21, 2022
94313de
fix(i18n): add missing translations
cannarocks Nov 21, 2022
0334c6d
Merge pull request #275 from AppQuality/UN-94-page-header
cannarocks Nov 21, 2022
dc94f65
chore: Replace i18next scanner with parser
d-beezee Nov 21, 2022
d9426d6
Merge remote-tracking branch 'origin/replace-i18nex-scanner-with-pars…
cannarocks Nov 21, 2022
0953f4c
feat(i18n): add plural form on bug count
cannarocks Nov 21, 2022
9c82ef3
Merge pull request #272 from AppQuality/UN-90
cannarocks Nov 21, 2022
3811ba0
fix(progress widget): wrong count import
iacopolea Nov 21, 2022
8580a25
Merge branch 'UN-93' into UN-64-progress-widget
iacopolea Nov 21, 2022
3299ea7
chore: Use typescript undef check instead of eslint
d-beezee Nov 14, 2022
3cac269
chore: Add partialrecord generic type
d-beezee Nov 14, 2022
56a9db3
feat: Tag get bugs by campaign id as campaign route
d-beezee Nov 14, 2022
fa32833
feat: Add bug distribution card
d-beezee Nov 14, 2022
2970c93
feat: Add translations and dashboard link
d-beezee Nov 15, 2022
c7197cd
chore: Update design system
d-beezee Nov 15, 2022
004ab0c
feat(campaign): Add external icon to bug distribution link
d-beezee Nov 16, 2022
9b0792d
fix(mother dash): add campaignId
iacopolea Nov 21, 2022
d5b0e76
feat: Add plurals and fix some linting errors
d-beezee Nov 21, 2022
be02fd3
Merge pull request #273 from AppQuality/add-bugs-halfpie-widget
cannarocks Nov 21, 2022
ccd6b30
fix(progress widget): english defaults
iacopolea Nov 21, 2022
8419b2d
chore: Add translation defaults
d-beezee Nov 21, 2022
c5f94d2
fix: Capitalize first letter in widget card header
d-beezee Nov 21, 2022
2a1e20e
feat(progress wdgt): tooltip large
iacopolea Nov 21, 2022
15a2095
Merge remote-tracking branch 'origin/UN-93' into UN-64-progress-widget
iacopolea Nov 21, 2022
35d0ae3
chore: update design system
iacopolea Nov 21, 2022
6db374f
fix(progress wdgt): set correct width
iacopolea Nov 21, 2022
cd4d7c7
fix: Make localized route an absolute path
d-beezee Nov 21, 2022
421c5a9
chore: update des sys
iacopolea Nov 21, 2022
b3dfa6e
fix: Use calendar year instead of week-based year
d-beezee Nov 21, 2022
5beb01d
fix(progress wdgt): correct height
iacopolea Nov 21, 2022
ed2d5a1
fix: Correct localized dashboard link
d-beezee Nov 21, 2022
89c5276
fix: Remove debugger
d-beezee Nov 21, 2022
7023279
fix: Use ux dashboard url only if media are available
d-beezee Nov 21, 2022
2203f59
Merge pull request #274 from AppQuality/UN-64-progress-widget
d-beezee Nov 22, 2022
43e3185
fix: Improve widget style
d-beezee Nov 22, 2022
adab31e
fix(page-header): fix pill status colors and icons
Nov 22, 2022
b2b7305
Merge pull request #278 from AppQuality/fix-header-pill
cannarocks Nov 22, 2022
8ade229
feat(mother dash): add section title component
iacopolea Nov 22, 2022
e13bac4
chore: cleanup unused vars
iacopolea Nov 22, 2022
838ee85
fix: Use size small on widgetcard tooltip icon
d-beezee Nov 22, 2022
69590c5
fix(widget card): title and icon size
iacopolea Nov 22, 2022
a44abd0
fix: Use new dashboard for bugs and no output campaigns
d-beezee Nov 22, 2022
59d58d6
fix: UN-158
iacopolea Nov 23, 2022
8458910
fix: Set campaing as completed when is completed
d-beezee Nov 23, 2022
82e8d7a
chore: Remove unused variable
d-beezee Nov 23, 2022
3e9cfd6
fix(pills): remove FC
marcbon Nov 23, 2022
c45e4d8
refactor(bugs-distribution): move colors and type to constants and types
marcbon Nov 23, 2022
44084a3
fix(pill): remove FC
marcbon Nov 23, 2022
e7e76f9
feat(translations): update locales
marcbon Nov 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.exports = {
unnamedComponents: 'arrow-function',
},
],
'react/no-unstable-nested-components': ['error', { allowAsProps: true }],
'react/prop-types': 'off', // Since we do not use prop-types
'react/require-default-props': 'off', // Since we do not use prop-types
'react/jsx-props-no-spreading': 'off', // This is an anti-pattern, to be removed.
Expand All @@ -69,4 +70,12 @@ module.exports = {
fetch: true,
HeadersInit: true,
},
overrides: [
{
files: ['*.ts', '*.mts', '*.cts', '*.tsx'],
rules: {
'no-undef': 'off',
},
},
],
};
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

.eslintcache
.eslintcache

generate-devel-token.json
106 changes: 106 additions & 0 deletions i18next-parser.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
module.exports = {
contextSeparator: '_',
// Key separator used in your translation keys

createOldCatalogs: false,
// Save the \_old files

defaultNamespace: 'translation',
// Default namespace used in your i18next config

defaultValue: '',
// Default value to give to keys with no value
// You may also specify a function accepting the locale, namespace, key, and value as arguments

indentation: 2,
// Indentation of the catalog files

keepRemoved: false,
// Keep keys from the catalog that are no longer in code

keySeparator: ':::',
// Key separator used in your translation keys
// If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance.

// see below for more details
lexers: {
hbs: ['HandlebarsLexer'],
handlebars: ['HandlebarsLexer'],

htm: ['HTMLLexer'],
html: ['HTMLLexer'],

mjs: ['JavascriptLexer'],
js: ['JavascriptLexer'], // if you're writing jsx inside .js files, change this to JsxLexer
ts: ['JavascriptLexer'],
jsx: ['JsxLexer'],
tsx: ['JsxLexer'],

default: ['JavascriptLexer'],
},

lineEnding: 'auto',
// Control the line ending. See options at https://github.com/ryanve/eol

locales: ['en', 'it'],
// An array of the locales in your applications

namespaceSeparator: false,
// Namespace separator used in your translation keys
// If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance.

output: 'src/locales/$LOCALE/$NAMESPACE.json',
// Supports $LOCALE and $NAMESPACE injection
// Supports JSON (.json) and YAML (.yml) file formats
// Where to write the locale files relative to process.cwd()

pluralSeparator: '_',
// Plural separator used in your translation keys
// If you want to use plain english keys, separators such as `_` might conflict. You might want to set `pluralSeparator` to a different string that does not occur in your keys.

input: undefined,
// An array of globs that describe where to look for source files
// relative to the location of the configuration file

sort: true,
// Whether or not to sort the catalog. Can also be a [compareFunction](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#parameters)

verbose: false,
// Display info about the parsing including some stats

failOnWarnings: false,
// Exit with an exit code of 1 on warnings

failOnUpdate: false,
// Exit with an exit code of 1 when translations are updated (for CI purpose)

customValueTemplate: null,
// If you wish to customize the value output the value as an object, you can set your own format.
// ${defaultValue} is the default value you set in your translation function.
// Any other custom property will be automatically extracted.
//
// Example:
// {
// message: "${defaultValue}",
// description: "${maxLength}", // t('my-key', {maxLength: 150})
// }

resetDefaultValueLocale: null,
// The locale to compare with default values to determine whether a default value has been changed.
// If this is set and a default value differs from a translation in the specified locale, all entries
// for that key across locales are reset to the default value, and existing translations are moved to
// the `_old` file.

i18nextOptions: null,
// If you wish to customize options in internally used i18next instance, you can define an object with any
// configuration property supported by i18next (https://www.i18next.com/overview/configuration-options).
// { compatibilityJSON: 'v3' } can be used to generate v3 compatible plurals.

yamlOptions: null,
// If you wish to customize options for yaml output, you can define an object here.
// Configuration options are here (https://github.com/nodeca/js-yaml#dump-object---options-).
// Example:
// {
// lineWidth: -1,
// }
};
159 changes: 0 additions & 159 deletions i18next-scanner.config.js

This file was deleted.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.4.0",
"private": true,
"dependencies": {
"@appquality/unguess-design-system": "2.12.17",
"@appquality/unguess-design-system": "2.12.36",
"@headwayapp/react-widget": "^0.0.4",
"@reduxjs/toolkit": "^1.8.0",
"@rtk-query/codegen-openapi": "^1.0.0-alpha.1",
Expand Down Expand Up @@ -41,7 +41,7 @@
"test": "react-scripts test",
"recover": "yarn install --check-files",
"eject": "react-scripts eject",
"translate": "i18next-scanner",
"translate": "i18next 'src/**/*.{js,jsx,ts,tsx}' ",
"generate-schema": ". ./.env.local; npx openapi-typescript $REACT_APP_API_URL/reference/ --output src/common/schema.ts ",
"generate-api": ". ./.env.local; API_URL=$REACT_APP_API_URL/reference/ npx @rtk-query/codegen-openapi src/features/api/config.ts",
"generate-strapi": "npx @rtk-query/codegen-openapi src/features/backoffice/config.ts",
Expand Down Expand Up @@ -110,8 +110,7 @@
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-security": "^1.5.0",
"husky": ">=6",
"i18next-scanner": "^3.1.0",
"i18next-scanner-typescript": "^1.0.6",
"i18next-parser": "^7.0.3",
"lint-staged": ">=10",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
Expand All @@ -131,4 +130,4 @@
"lint-staged": {
"*.{tsx,ts,js,css,md}": "prettier --write"
}
}
}
6 changes: 6 additions & 0 deletions src/assets/icons/clock-stroke.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/pill-icon-clock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/assets/icons/pill-icon-completed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/pill-icon-desktop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/assets/icons/pill-icon-gear.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/icons/pill-icon-incoming.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading