Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change fidelity card label and remove library_card from qualification #1529

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 0 additions & 4 deletions packages/cozy-client/src/assets/qualifications.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@
"label": "fidelity_card",
"sourceCategory": "shopping"
},
{
"label": "library_card",
"sourceCategory": "individual"
},
{
"label": "single_parent_benefit",
"purpose": "attestation",
Expand Down
7 changes: 0 additions & 7 deletions packages/cozy-client/src/models/document/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export const THEME_TRANSPORT_LABELS = [
export const THEME_ACTIVITY_LABELS = [
'personal_sporting_licence',
'fidelity_card',
'library_card',
'note_activity_document',
'other_activity_document'
]
Expand Down Expand Up @@ -216,11 +215,6 @@ const ICON_GLOBE_LABELS = ['residence_permit']
*/
const ICON_PLANE_LABELS = ['passport']

/**
* @type {Array<import("../../types").iconLibraryLabels>}
*/
const ICON_LIBRARY_LABELS = ['library_card']

/**
* @type {Array<import("../../types").iconImageLabels>}
*/
Expand Down Expand Up @@ -442,7 +436,6 @@ export const iconLabelPairs = [
{ icon: 'image', labels: ICON_IMAGE_LABELS },
{ icon: 'justice', labels: ICON_JUSTICE_LABELS },
{ icon: 'laudry', labels: ICON_LAUDRY_LABELS },
{ icon: 'library', labels: ICON_LIBRARY_LABELS },
{ icon: 'lightning', labels: ICON_LIGHTNING_LABELS },
{ icon: 'people', labels: ICON_PEOPLE_LABELS },
{ icon: 'plane', labels: ICON_PLANE_LABELS },
Expand Down
3 changes: 1 addition & 2 deletions packages/cozy-client/src/models/document/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"expense_claim": "Expense claim |||| Expense claims",
"family_record_book": "Family record book |||| Family record books",
"family": "Family",
"fidelity_card": "Fidelity card |||| Fidelity cards",
"fidelity_card": "Benefit card |||| Benefit cards",
"fine": "Fine |||| Fines",
"gradebook": "Gradebook |||| Gradebooks",
"grocery_invoice": "Grocery invoice |||| Grocery invoices",
Expand All @@ -57,7 +57,6 @@
"isp_invoice": "ISP invoice |||| ISP invoices",
"large_family_card": " Large Family Card |||| Large Family Cards",
"lease": "Lease |||| Leases",
"library_card": "library card |||| library cards",
"loan_agreement": "Loan agreement |||| Loan agreements",
"mechanic_invoice": "Repair bill |||| Repair bills",
"motivation_letter": "Motivation letter |||| Motivation letters",
Expand Down
3 changes: 1 addition & 2 deletions packages/cozy-client/src/models/document/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"expense_claim": "Note de frais |||| Notes de frais",
"family_record_book": "Livret de famille |||| Livrets de famille",
"family": "Famille",
"fidelity_card": "Carte de fidélité |||| Cartes de fidélité",
"fidelity_card": "Carte avantage |||| Cartes avantages",
"fine": "Amende |||| Amendes",
"gradebook": "Bulletin de notes |||| Bulletins de notes",
"grocery_invoice": "Facture de courses |||| Factures de courses",
Expand All @@ -57,7 +57,6 @@
"isp_invoice": "Facture d'internet |||| Factures d'internet",
"large_family_card": "Carte famille nombreuse |||| Cartes famille nombreuse",
"lease": "Bail |||| Baux",
"library_card": "Carte de bibliothèque |||| Cartes de bibliothèque",
"loan_agreement": "Contrat de prêt |||| Contrats de prêt",
"mechanic_invoice": "Facture de réparation |||| Factures de réparation",
"motivation_letter": "Lettre de motivation |||| Lettres de motivation",
Expand Down
6 changes: 2 additions & 4 deletions packages/cozy-client/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ import { QueryDefinition } from './queries/dsl'
*
* @typedef {'phone_invoice'|'isp_invoice'|'telecom_invoice'|'energy_invoice'|'water_invoice'|'appliance_invoice'|'web_service_invoice'|'restaurant_invoice'|'work_invoice'|'transport_invoice'|'health_invoice'|'other_invoice'|'note_invoice'|'expense_claim'|'energy_contract'|'grocery_invoice'} InvoiceLabels
*
* @typedef {'personal_sporting_licence'|'other_activity_document'|'fidelity_card'|'library_card'|'note_activity_document'} ActivityLabels
* @typedef {'personal_sporting_licence'|'other_activity_document'|'fidelity_card'|'note_activity_document'} ActivityLabels
*
* @typedef {'other_administrative_document'|'note_other'} OthersLabels
*
Expand All @@ -750,8 +750,6 @@ import { QueryDefinition } from './queries/dsl'
*
* @typedef {'passport'} iconPlaneLabels
*
* @typedef {'library_card'} iconLibraryLabels
*
* @typedef {'identity_photo'} iconImageLabels
*
* @typedef {'fidelity_card'|'grocery_invoice'} iconShopLabels
Expand Down Expand Up @@ -804,7 +802,7 @@ import { QueryDefinition } from './queries/dsl'
*/

/**
* @typedef {'bank-check'|'bank'|'benefit'|'bill'|'car'|'child'|'email'|'euro'|'exchange'|'file-type-note'|'fitness'|'globe'|'gouv'|'heart'|'home'|'image'|'justice'|'laudry'|'library'|'lightning'|'people'|'plane'|'remboursement'|'restaurant'|'school'|'shop'|'team'|'telecom'|'telephone'|'water'|'work'} IconQualificationLabels
* @typedef {'bank-check'|'bank'|'benefit'|'bill'|'car'|'child'|'email'|'euro'|'exchange'|'file-type-note'|'fitness'|'globe'|'gouv'|'heart'|'home'|'image'|'justice'|'laudry'|'lightning'|'people'|'plane'|'remboursement'|'restaurant'|'school'|'shop'|'team'|'telecom'|'telephone'|'water'|'work'} IconQualificationLabels
*/

/**
Expand Down
7 changes: 3 additions & 4 deletions packages/cozy-client/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1352,15 +1352,14 @@ export type HomeLabels = "house_sale_agreeement" | "building_permit" | "technica
export type TransportLabels = "driver_license" | "transport_card" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document" | "note_transport_document";
export type FinanceLabels = "pay_sheet" | "single_parent_benefit" | "other_revenue" | "real_estate_tax" | "tax_certificate" | "tax_return" | "tax_notice" | "tax_timetable" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "receipt" | "payment_proof_family_allowance" | "expense_claim" | "fine" | "note_finance";
export type InvoiceLabels = "health_invoice" | "transport_invoice" | "work_invoice" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "energy_contract" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "grocery_invoice" | "other_invoice" | "expense_claim" | "note_invoice";
export type ActivityLabels = "fidelity_card" | "library_card" | "personal_sporting_licence" | "other_activity_document" | "note_activity_document";
export type ActivityLabels = "fidelity_card" | "personal_sporting_licence" | "other_activity_document" | "note_activity_document";
export type OthersLabels = "other_administrative_document" | "note_other";
export type ItemsLabels = "resume" | "identity_photo" | "national_id_card" | "passport" | "residence_permit" | "family_record_book" | "birth_certificate" | "driver_license" | "other_identity_document" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document" | "diploma" | "work_contract" | "pay_sheet" | "fidelity_card" | "library_card" | "single_parent_benefit" | "transport_card" | "electoral_card" | "employment_center_certificate" | "unemployment_benefit" | "pension" | "other_revenue" | "gradebook" | "student_card" | "motivation_letter" | "other_work_document" | "health_book" | "health_certificate" | "pregnancy_medical_certificate" | "work_disability_recognition" | "national_health_insurance_card" | "national_health_insurance_right_certificate" | "health_insurance_card" | "prescription" | "health_invoice" | "other_health_document" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document" | "house_sale_agreeement" | "real_estate_tax" | "building_permit" | "technical_diagnostic_record" | "lease" | "rent_receipt" | "house_insurance" | "work_quote" | "work_invoice" | "other_house_document" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "energy_contract" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "grocery_invoice" | "other_invoice" | "tax_certificate" | "tax_return" | "tax_notice" | "tax_timetable" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "receipt" | "payment_proof_family_allowance" | "school_attendance_certificate" | "school_insurance_certificate" | "unfit_for_habitation_declaration" | "accommodation_proof" | "citizen_registration_certificate" | "personal_sporting_licence" | "other_activity_document" | "real_estate_insurance" | "person_insurance" | "other_administrative_document" | "expense_claim" | "fine" | "condition_report" | "note_identity_document" | "note_family_document" | "note_work_document" | "note_health_document" | "note_house_document" | "note_transport_document" | "note_activity_document" | "note_finance" | "note_invoice" | "note_other";
export type ItemsLabels = "resume" | "identity_photo" | "national_id_card" | "passport" | "residence_permit" | "family_record_book" | "birth_certificate" | "driver_license" | "other_identity_document" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document" | "diploma" | "work_contract" | "pay_sheet" | "fidelity_card" | "single_parent_benefit" | "transport_card" | "electoral_card" | "employment_center_certificate" | "unemployment_benefit" | "pension" | "other_revenue" | "gradebook" | "student_card" | "motivation_letter" | "other_work_document" | "health_book" | "health_certificate" | "pregnancy_medical_certificate" | "work_disability_recognition" | "national_health_insurance_card" | "national_health_insurance_right_certificate" | "health_insurance_card" | "prescription" | "health_invoice" | "other_health_document" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document" | "house_sale_agreeement" | "real_estate_tax" | "building_permit" | "technical_diagnostic_record" | "lease" | "rent_receipt" | "house_insurance" | "work_quote" | "work_invoice" | "other_house_document" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "energy_contract" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "grocery_invoice" | "other_invoice" | "tax_certificate" | "tax_return" | "tax_notice" | "tax_timetable" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "receipt" | "payment_proof_family_allowance" | "school_attendance_certificate" | "school_insurance_certificate" | "unfit_for_habitation_declaration" | "accommodation_proof" | "citizen_registration_certificate" | "personal_sporting_licence" | "other_activity_document" | "real_estate_insurance" | "person_insurance" | "other_administrative_document" | "expense_claim" | "fine" | "condition_report" | "note_identity_document" | "note_family_document" | "note_work_document" | "note_health_document" | "note_house_document" | "note_transport_document" | "note_activity_document" | "note_finance" | "note_invoice" | "note_other";
export type iconPeopleLabels = "resume" | "national_id_card" | "other_identity_document" | "work_disability_recognition";
export type iconWorkLabels = "work_contract" | "employment_center_certificate" | "unemployment_benefit" | "student_card" | "motivation_letter" | "other_work_document" | "school_attendance_certificate" | "school_insurance_certificate";
export type iconJusticeLabels = "fine";
export type iconGlobeLabels = "residence_permit";
export type iconPlaneLabels = "passport";
export type iconLibraryLabels = "library_card";
export type iconImageLabels = "identity_photo";
export type iconShopLabels = "fidelity_card" | "grocery_invoice";
export type iconGouvLabels = "electoral_card";
Expand All @@ -1386,7 +1385,7 @@ export type iconFitnessLabels = "personal_sporting_licence" | "other_activity_do
export type iconHeartLabels = "health_book" | "health_certificate" | "pregnancy_medical_certificate" | "national_health_insurance_card" | "national_health_insurance_right_certificate" | "health_insurance_card" | "prescription" | "health_invoice" | "other_health_document" | "person_insurance";
export type iconExchangeLabels = "bank_statement";
export type iconFileTypeNoteLabels = "note_identity_document" | "note_family_document" | "note_work_document" | "note_health_document" | "note_house_document" | "note_transport_document" | "note_activity_document" | "note_finance" | "note_invoice";
export type IconQualificationLabels = "image" | "work" | "car" | "telecom" | "water" | "bank" | "child" | "bank-check" | "benefit" | "bill" | "email" | "euro" | "exchange" | "file-type-note" | "fitness" | "globe" | "gouv" | "heart" | "home" | "justice" | "laudry" | "library" | "lightning" | "people" | "plane" | "remboursement" | "restaurant" | "school" | "shop" | "team" | "telephone";
export type IconQualificationLabels = "image" | "work" | "car" | "telecom" | "water" | "bank" | "child" | "bank-check" | "benefit" | "bill" | "email" | "euro" | "exchange" | "file-type-note" | "fitness" | "globe" | "gouv" | "heart" | "home" | "justice" | "laudry" | "lightning" | "people" | "plane" | "remboursement" | "restaurant" | "school" | "shop" | "team" | "telephone";
export type iconLabelPairs = {
icon: IconQualificationLabels;
labels: Array<string>;
Expand Down
Loading