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

Fixes #1122: Button "New request" added to "My Requests" view to improve workflow … #1123

Merged
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion cypress/e2e/privacy-controls/company-search-page.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('Search bar on company search page', () => {
cy.contains('Get access').click();

cy.get('.ais-SearchBox-input').type('twitter');
cy.contains('Twitter International Company');
cy.contains('Twitter International Unlimited Company');
});

it('is not active when the privacy control is disabled', () => {
Expand Down
12 changes: 12 additions & 0 deletions src/Components/RequestList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ export const RequestList = (props: RequestListProps) => {
onClick={() => setSelectionMode(!selectionMode)}>
zner0L marked this conversation as resolved.
Show resolved Hide resolved
{selectionMode ? <Text id="cancel" /> : <Text id="selection-mode" />}
</button>

{!selectionMode && (
<>
zner0L marked this conversation as resolved.
Show resolved Hide resolved
<button
zner0L marked this conversation as resolved.
Show resolved Hide resolved
id="new-request"
className="button button-secondary button-small"
onClick={() => (window.location.href = `${window.BASE_URL}generator`)}>
<Text id="new-request" />
zner0L marked this conversation as resolved.
Show resolved Hide resolved
</button>
zner0L marked this conversation as resolved.
Show resolved Hide resolved
</>
)}

{!selectionMode && (
<>
{props.importEmailsButton}
Expand Down
1 change: 1 addition & 0 deletions src/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@
"more": "více",
"access": "přístup",
"delete-all-btn": "Smazat všechny žádosti",
"new-request": "Nová žádost",
"export-btn": "Exportovat vybrané žádosti jako CSV",
"title": "Moje žádosti",
"explanation": "Tady je seznam všech žádostí, které jste vygeneroval(a) v tomto prohlížeči. To může být například užitečné při kontrole, zda společnosti odpověděly ve stanoveném termínu.",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
"webform": "Webformular",
"sent-via-medium": "per {{medium}} verschickt",
"delete-all-btn": "Alle Anfragen löschen",
"new-request": "Neue Anfrage",
"export-btn": "Ausgewählte als CSV exportieren",
"export-ics": "Ausgewählte in Kalender übernehmen",
"no-requests-heading": "Noch keine Anfragen",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
"webform": "web form",
"sent-via-medium": "sent via {{medium}}",
"delete-all-btn": "Delete all requests",
"new-request": "New request",
"export-btn": "Export selected requests as CSV",
"export-ics": "Export selected requests to calendar",
"no-requests-heading": "No requests yet",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
"email": "correo electrónico",
"letter": "carta",
"delete-all-btn": "Eliminar todas las solicitudes",
"new-request": "Solicitud nueva",
"export-btn": "Exportar solicitudes seleccionadas como CSV",
"export-ics": "Exportar solicitudes seleccionadas a calendario",
"no-requests-heading": "Aún no hay solicitudes",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"email": "e-mail",
"letter": "lettre",
"delete-all-btn": "Supprimer toutes les demandes",
"new-request": "Nouvelle demande",
"export-btn": "Exporter les demandes sélectionnées au format CSV",
"export-ics": "Exporter les demandes sélectionnées au format calendrier",
"no-requests-heading": "Aucune demande pour le moment",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@
"export-ics": "Izvezi odabrane zahtjeve u kalendar",
"export-btn": "Izvezi odabrane zahtjeve kao CSV",
"delete-all-btn": "Izbriši sve zahtjeve",
"new-request": "Novi zahtjev",
"letter": "pismo",
"email": "e-mail",
"fax": "faks",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@
"export-ics": "Exporteer geselecteerde verzoeken naar kalender",
"export-btn": "Exporteer geselecteerde verzoeken als CSV",
"delete-all-btn": "Verwijder alle verzoeken",
"new-request": "Nieuw verzoek",
"letter": "brief",
"email": "email",
"fax": "fax",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@
"email": "e-mail",
"letter": "pismo",
"delete-all-btn": "Usuń wszystkie prośby",
"new-request": "Nowe zapytanie",
"export-btn": "Eksportuj wybrane żądania jako CSV",
"export-ics": "Eksportuj wybrane żądania do kalendarza",
"no-requests-heading": "Brak zapytań",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
"email": "e-mail",
"letter": "carta",
"delete-all-btn": "Apagar todas as solicitações",
"new-request": "Nova solicitação",
"export-btn": "Exportar as solicitações selecionadas em formato CSV",
"export-ics": "Exportar as solicitações selecionadas para o calendário",
"no-requests-heading": "Ainda não há solicitações",
Expand Down