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

Ryan/appeals 15566 merge conflict #19352

Merged
merged 31 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e838d4f
Added Receipt Date dropdown barebones.
Rnmarshall93 Aug 21, 2023
6b055b3
added dropdown with keys
Rnmarshall93 Aug 21, 2023
2a57a40
Added other dateselectors.
Rnmarshall93 Aug 22, 2023
fc4f89a
changed dropdown props so it now displays correct.
Rnmarshall93 Aug 22, 2023
77157f8
Added logic for conditional rendering based on state.
Rnmarshall93 Aug 22, 2023
50be160
Basic error validation. No UI update with errors. Javascript automagi…
Rnmarshall93 Aug 23, 2023
8857d34
Made progress on setting up redux
Rnmarshall93 Aug 25, 2023
dbb8c34
Added reciptDate's filter type and it now updates in redux.
Rnmarshall93 Aug 25, 2023
3a8b053
Added doc filtering dates to redux store. Undid silly validation for …
Rnmarshall93 Aug 25, 2023
c19235b
Added state tracking to docpicker fields.
Rnmarshall93 Aug 25, 2023
ad32904
Changed RecieptDateFilter to place values in the correct place.
Rnmarshall93 Aug 28, 2023
3f911bd
Removed bad validation logic. Renamed onDate handler.
Rnmarshall93 Aug 28, 2023
e21fa73
Implemented reciept date filtering.
Rnmarshall93 Aug 28, 2023
034cbe7
Redid validation logic. Updated to match wireframe in the dropdown fo…
Rnmarshall93 Aug 28, 2023
f809e1a
Cleaned up code.
Rnmarshall93 Aug 28, 2023
8624b64
Added validation and errors for it.
Rnmarshall93 Aug 29, 2023
3475ba2
Fixed display bug caused by array.push. Renamed vars to be consistent.
Rnmarshall93 Aug 29, 2023
ae3fbb4
Updated redux variable names.
Rnmarshall93 Aug 29, 2023
0b3a86f
Added CSS to position the reciept dropdown.
Rnmarshall93 Aug 29, 2023
59bdda8
Added css to make dropdown resemble the wireframes more closely.
Rnmarshall93 Aug 29, 2023
30631e1
backup before fixing vars
Rnmarshall93 Aug 29, 2023
f68c26f
fixed logic bug in validating dates
Rnmarshall93 Aug 29, 2023
d30ff7b
Fixed validation and redux bugs.
Rnmarshall93 Aug 29, 2023
5e03c49
Updated spelling of reciept to be consistent.
Rnmarshall93 Aug 29, 2023
55bd21c
Removed useless proptype.
Rnmarshall93 Aug 29, 2023
c573d87
Fixed filtering bug.
Rnmarshall93 Aug 31, 2023
f6f2b98
Fixed logic bugs.
Rnmarshall93 Aug 31, 2023
ed093b8
Refactored recieptFilter to compare to an enum type const.
Rnmarshall93 Aug 31, 2023
b731742
Added comment for clarification about convertStringToDate
Rnmarshall93 Aug 31, 2023
d737e9d
Fixed conditional rendering.
Rnmarshall93 Sep 1, 2023
9c3ca43
Merge branch 'ryan-APPEALS/25267' into Ryan/APPEALS-15566-merge-conflict
HunJerBAH Sep 1, 2023
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
1 change: 1 addition & 0 deletions client/app/2.0/utils/reader/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const formatFilterCriteria = (filterCriteria) => {
category: Object.keys(filterCriteria.category).filter((cat) => filterCriteria.category[cat] === true).
map((key) => formatCategoryName(key)),
tag: Object.keys(filterCriteria.tag).filter((tag) => filterCriteria.tag[tag] === true),
docType: Object.keys(filterCriteria.docType),
searchQuery: filterCriteria.searchQuery.toLowerCase()
};

Expand Down
17 changes: 17 additions & 0 deletions client/app/reader/DocumentList/DocumentListActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,23 @@ export const clearTagFilters = () => (dispatch) => {
dispatch(updateFilteredIdsAndDocs());
};

export const setRecieptDateFilter = (recieptFilterType, recieptDatesHash) => (dispatch) => {
dispatch({
type: Constants.SET_RECIEPT_DATE_FILTER,
payload: {
recieptFilterType,
recieptDatesHash
},
meta: {
analytics: {
category: CATEGORIES.CLAIMS_FOLDER_PAGE,
action: 'set RecieptFilterType-' + recieptFilterType,
label: 'setRecieptFilter'
}
}
});
dispatch(updateFilteredIdsAndDocs());
}
// Scrolling

export const setDocListScrollPosition = (scrollTop) => ({
Expand Down
24 changes: 22 additions & 2 deletions client/app/reader/DocumentList/DocumentListReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,22 @@ const initialState = {
category: {},
tag: {},
document: {},
searchQuery: ''
searchQuery: '',
recieptFilterType: '',
recieptFilterDates: {
fromDate: '',
toDate: '',
onDate: ''
},
},
pdfList: {
scrollTop: null,
lastReadDocId: null,
dropdowns: {
tag: false,
category: false,
document: false
document: false,
receiptDate: false
}
},
manifestVbmsFetchedAt: null,
Expand Down Expand Up @@ -134,6 +141,19 @@ const documentListReducer = (state = initialState, action = {}) => {
}
}
});

// Reciept date filter
case Constants.SET_RECIEPT_DATE_FILTER:
return update(state, {
docFilterCriteria: {
recieptFilterType: {
$set: action.payload.recieptFilterType
},
recieptFilterDates: {
$set: action.payload.recieptDatesHash
}
},
});
// Scrolling
case Constants.SET_DOC_LIST_SCROLL_POSITION:
return update(state, {
Expand Down
1 change: 1 addition & 0 deletions client/app/reader/DocumentList/actionTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const CLEAR_CATEGORY_FILTER = 'CLEAR_CATEGORY_FILTER';
export const SET_CATEGORY_FILTER = 'SET_CATEGORY_FILTER';
export const UPDATE_FILTERED_RESULTS = 'UPDATE_FILTERED_RESULTS';
export const TOGGLE_FILTER_DROPDOWN = 'TOGGLE_FILTER_DROPDOWN';
export const SET_RECIEPT_DATE_FILTER = 'SET_RECIEPT_DATE_FILTER';

// Document filter
export const SET_DOC_FILTER = 'SET_DOC_FILTER';
Expand Down
Loading
Loading