Skip to content

Commit

Permalink
Update batch action for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
vesnushka committed Dec 19, 2024
1 parent 4d77218 commit c79126d
Show file tree
Hide file tree
Showing 10 changed files with 209 additions and 102 deletions.
3 changes: 1 addition & 2 deletions src/components/BaseLayout/PageContainer/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import styled, { css } from 'styled-components';

import { BasePageContent, BasePageHeader } from '..';
import { Title } from 'src/components/Typography';

const mobileWidth = 768;
import { mobileWidth } from 'src/theme/utils';

export const S = {
HeaderContainer: styled(BasePageHeader)<{ $variant?: 'default' | 'with-table' | 'with-tabs' }>`
Expand Down
3 changes: 1 addition & 2 deletions src/components/SearchBar/styles.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { mobileWidth } from 'src/theme/utils';
import styled, { css } from 'styled-components';

const mobileWidth = 768;

export const S = {
SearchBar: styled.div<{ $showInDrawerOnMobile?: boolean }>`
position: relative;
Expand Down
3 changes: 1 addition & 2 deletions src/components/Table/styles.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { mobileWidth } from 'src/theme/utils';
import styled, { css } from 'styled-components';

const mobileWidth = 768;

export const S = {
Table: styled.div<{ $showCardsOnMobile?: boolean }>`
overflow: auto;
Expand Down
59 changes: 33 additions & 26 deletions src/locale/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ msgstr ""
"Language-Team: \n"
"Plural-Forms: \n"

#: src/uberComponents/ResourceListPage/index.tsx:176
#: src/uberComponents/ResourceListPage/BatchActions.tsx:57
msgid "{0, plural, one {Selected # item} other {Selected # items}}"
msgstr ""

Expand All @@ -31,7 +31,7 @@ msgstr ""
#: src/containers/PatientList/index.tsx:103
#: src/containers/PractitionerList/index.tsx:121
#: src/containers/Prescriptions/index.tsx:148
#: src/uberComponents/ResourceListPage/index.tsx:237
#: src/uberComponents/ResourceListPage/index.tsx:273
msgid "Actions"
msgstr ""

Expand Down Expand Up @@ -110,7 +110,7 @@ msgstr ""

#: src/components/ModalNewPatient/index.tsx:16
#: src/components/ModalNewPatient/index.tsx:20
#: src/containers/PatientResourceListExample/index.tsx:76
#: src/containers/PatientResourceListExample/index.tsx:78
msgid "Add patient"
msgstr ""

Expand Down Expand Up @@ -207,7 +207,7 @@ msgstr ""

#: src/containers/PatientDetails/PatientOverviewDynamic/containers/GeneralIInformationDashboardContainer/hooks.ts:31
#: src/containers/PatientList/index.tsx:87
#: src/containers/PatientResourceListExample/index.tsx:47
#: src/containers/PatientResourceListExample/index.tsx:48
msgid "Birth date"
msgstr ""

Expand Down Expand Up @@ -258,7 +258,7 @@ msgstr ""
msgid "Characteristics"
msgstr ""

#: src/components/SearchBar/index.tsx:30
#: src/components/SearchBar/index.tsx:36
#: src/components/SearchBar/SearchBarMobile/index.tsx:51
msgid "Clear filters"
msgstr ""
Expand Down Expand Up @@ -383,7 +383,7 @@ msgstr ""
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:95
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:142
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:216
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:283
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:271
#: src/containers/PatientDetails/PatientResources/utils.tsx:96
#: src/containers/PatientDetails/PatientResources/utils.tsx:135
#: src/containers/PatientDetails/PatientResources/utils.tsx:174
Expand Down Expand Up @@ -430,7 +430,7 @@ msgstr ""
msgid "Delete"
msgstr ""

#: src/containers/PatientResourceListExample/index.tsx:78
#: src/containers/PatientResourceListExample/index.tsx:80
msgid "Delete patients"
msgstr ""

Expand Down Expand Up @@ -620,7 +620,7 @@ msgid "Filters"
msgstr ""

#: src/containers/PatientList/searchBarUtils.ts:10
#: src/containers/PatientResourceListExample/index.tsx:67
#: src/containers/PatientResourceListExample/index.tsx:68
msgid "Find patient"
msgstr ""

Expand Down Expand Up @@ -711,7 +711,7 @@ msgstr ""
msgid "Inline options?"
msgstr ""

#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:317
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:313
msgid "Intent"
msgstr ""

Expand Down Expand Up @@ -826,7 +826,7 @@ msgstr ""
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:123
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:204
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:240
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:312
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:308
#: src/containers/PatientDetails/PatientResources/utils.tsx:50
#: src/containers/PatientDetails/PatientResources/utils.tsx:85
#: src/containers/PatientDetails/PatientResources/utils.tsx:124
Expand Down Expand Up @@ -864,7 +864,7 @@ msgstr ""
#: src/containers/PractitionerList/index.tsx:101
#: src/containers/QuestionnaireBuilder/QuestionnaireItemSettings/controls.tsx:500
#: src/containers/QuestionnaireList/index.tsx:102
#: src/uberComponents/ResourceListPage/index.tsx:200
#: src/uberComponents/ResourceListPage/index.tsx:214
msgid "No data"
msgstr ""

Expand All @@ -888,6 +888,10 @@ msgstr ""
msgid "Number (default)"
msgstr ""

#: src/containers/PatientResourceListExample/index.tsx:83
msgid "Number of Patients"
msgstr ""

#: src/containers/PatientDetails/PatientResources/utils.tsx:230
msgid "Observations"
msgstr ""
Expand Down Expand Up @@ -936,7 +940,7 @@ msgid "Order added"
msgstr ""

#: src/containers/PatientDetails/PatientDetailsTabs/index.tsx:22
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:304
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:300
msgid "Orders"
msgstr ""

Expand Down Expand Up @@ -1008,7 +1012,6 @@ msgstr ""
#: src/containers/InvoiceList/components/InvoiceListSearchBar/index.tsx:32
#: src/containers/InvoiceList/tableUtils.tsx:114
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:152
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:275
#: src/containers/PatientDetails/PatientResources/utils.tsx:221
msgid "Practitioner"
msgstr ""
Expand Down Expand Up @@ -1094,7 +1097,7 @@ msgstr ""
#~ msgid "Reset password"
#~ msgstr ""

#: src/uberComponents/ResourceListPage/index.tsx:169
#: src/uberComponents/ResourceListPage/BatchActions.tsx:48
msgid "Reset selection"
msgstr ""

Expand Down Expand Up @@ -1187,6 +1190,10 @@ msgstr ""
msgid "Select (default)"
msgstr ""

#: src/uberComponents/ResourceListPage/BatchActions.tsx:69
msgid "Select all"
msgstr ""

#: src/components/BaseQuestionnaireResponseForm/widgets/choice/index.tsx:30
#: src/components/BaseQuestionnaireResponseForm/widgets/choice/index.tsx:55
msgid "Select..."
Expand All @@ -1197,8 +1204,8 @@ msgid "Serum creatinin"
msgstr ""

#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:279
msgid "Service"
msgstr ""
#~ msgid "Service"
#~ msgstr ""

#: src/containers/PatientDetails/PatientResources/utils.tsx:306
msgid "Service Requests"
Expand Down Expand Up @@ -1242,7 +1249,7 @@ msgid "Specialty"
msgstr ""

#: src/containers/PatientList/index.tsx:94
#: src/containers/PatientResourceListExample/index.tsx:54
#: src/containers/PatientResourceListExample/index.tsx:55
msgid "SSN"
msgstr ""

Expand Down Expand Up @@ -1312,9 +1319,9 @@ msgid "Subject Type"
msgstr ""

#: src/containers/QuestionnaireBuilder/PromptForm.tsx:104
#: src/uberComponents/ResourceListPage/actions.tsx:96
#: src/uberComponents/ResourceListPage/actions.tsx:130
#: src/uberComponents/ResourceListPage/actions.tsx:176
#: src/uberComponents/ResourceListPage/actions.tsx:97
#: src/uberComponents/ResourceListPage/actions.tsx:131
#: src/uberComponents/ResourceListPage/actions.tsx:177
msgid "Submit"
msgstr ""

Expand All @@ -1324,9 +1331,9 @@ msgstr ""
#~ msgid "Successfully saved"
#~ msgstr ""

#: src/uberComponents/ResourceListPage/actions.tsx:90
#: src/uberComponents/ResourceListPage/actions.tsx:125
#: src/uberComponents/ResourceListPage/actions.tsx:172
#: src/uberComponents/ResourceListPage/actions.tsx:91
#: src/uberComponents/ResourceListPage/actions.tsx:126
#: src/uberComponents/ResourceListPage/actions.tsx:173
msgid "Successfully submitted"
msgstr ""

Expand Down Expand Up @@ -1359,11 +1366,11 @@ msgstr ""
msgid "Text with macro"
msgstr ""

#: src/containers/App/index.tsx:129
#: src/containers/App/index.tsx:130
msgid "Thank you for filling out the questionnaire. Now you can close this page."
msgstr ""

#: src/containers/App/index.tsx:128
#: src/containers/App/index.tsx:129
msgid "Thank you!"
msgstr ""

Expand Down Expand Up @@ -1400,7 +1407,7 @@ msgstr ""
msgid "Thursday"
msgstr ""

#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:287
#: src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx:275
#: src/containers/Scheduling/Availability/index.tsx:129
msgid "Time"
msgstr ""
Expand Down
Loading

0 comments on commit c79126d

Please sign in to comment.