fix(andebol): remove FPA feed origin copy from agenda UI (BIT-26494) #30

Merged
spark merged 1 commits from fix/BIT-26494-agenda-ui-copy into main 2026-07-13 08:41:18 +01:00
3 changed files with 12 additions and 10 deletions

No files matched your search

+5 -5
View File
@@ -44,10 +44,10 @@ test('getUiStrings en search_results_count', () => {
assert.equal(s.search_results_count(3), '3 results');
});
test('getUiStrings pt fpa strings use official federation name', () => {
test('getUiStrings pt fpa strings omit feed origin references', () => {
const s = getUiStrings('pt-PT');
assert.ok(s.fpa_agenda_lead.includes('Federação de Andebol de Portugal'));
assert.ok(s.fpa_source_credit.includes('Federação de Andebol de Portugal'));
assert.equal(s.fpa_agenda_lead.includes('Federação Portuguesa de Andebol'), false);
assert.equal(s.fpa_source_credit.includes('Federação Portuguesa de Andebol'), false);
assert.equal(s.fpa_agenda_lead, 'Agenda de competições nacionais.');
assert.equal(s.fpa_source_credit, '');
assert.equal(s.fpa_agenda_lead.includes('feed'), false);
assert.equal(s.fpa_agenda_lead.includes('ws.fpa'), false);
});
+4 -4
View File
@@ -142,14 +142,14 @@ const en: UiStrings = {
explore_sections: 'Explore',
discover_lead: 'Browse by topic or find an article by keyword.',
fpa_agenda_title: 'Upcoming matches',
fpa_agenda_lead: 'National competition fixtures (public feed from the Handball Federation of Portugal).',
fpa_agenda_lead: 'National competition fixtures.',
fpa_col_when: 'When',
fpa_col_match: 'Match',
fpa_col_score: 'Score',
fpa_col_venue: 'Venue',
fpa_col_competition: 'Competition',
fpa_agenda_empty: 'Fixture list is temporarily unavailable.',
fpa_source_credit: 'Data: Handball Federation of Portugal (ws.fpa.pt).',
fpa_source_credit: '',
fpa_status_finished: 'FT',
fpa_status_upcoming: 'Upcoming',
fpa_status_live: 'Live',
@@ -222,14 +222,14 @@ const pt: UiStrings = {
explore_sections: 'Explorar',
discover_lead: 'Navegue por tema ou encontre um artigo por palavra-chave.',
fpa_agenda_title: 'Próximos jogos',
fpa_agenda_lead: 'Agenda de competições nacionais (feed público da Federação de Andebol de Portugal).',
fpa_agenda_lead: 'Agenda de competições nacionais.',
fpa_col_when: 'Quando',
fpa_col_match: 'Jogo',
fpa_col_score: 'Resultado',
fpa_col_venue: 'Local',
fpa_col_competition: 'Competição',
fpa_agenda_empty: 'A agenda não está disponível de momento.',
fpa_source_credit: 'Dados: Federação de Andebol de Portugal (ws.fpa.pt).',
fpa_source_credit: '',
fpa_status_finished: 'Fim',
fpa_status_upcoming: 'Por jogar',
fpa_status_live: 'Em direto',
@@ -194,7 +194,9 @@ const date_groups = [...by_date.entries()];
</div>
)}
<p class="fpa-agenda__credit">{ui.fpa_source_credit}</p>
{games.length > 0 && ui.fpa_source_credit ? (
<p class="fpa-agenda__credit">{ui.fpa_source_credit}</p>
) : null}
</div>
</section>