Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feat] Responses: update to new UI (#299)
* chore(observers ): adjust header title according to the design * feat(answers): add `answers` module * i18n(answers): add translations for table columns * feat(answers): add the `download` functionality to the export button * feat(answers): add filters according to the design * refactor(table-container): extract types & interfaces into a separate file * feat(table-container): allow to use custom `no-rows-found` content * feat(answers): add `no-rows-found` message * feat(table-container): allow rows to be clicked * feat(answers): add `answer-detail` component * allows to view an answer in detail * feat(answers): add `answer-details` component * wip(answer-details): build the base for the forms container * chore(scss): add global variables for gray common colors * border-color-gray / dim-gray * fix(answers): remove unwanted `answer-detail` component * feat(base-checkbox): add transparent variant * feat(answer-details): display sections, their forms, alongside checked/unchecked answers * fix(visually-hidden): remove absolute position * by using `position: absolute`, in Chrome(and Brave as well) we get a weird error: looks like although the content that overflows is hidden by the `sections container`, the scroll bar behaves as if it wouldn't overflow * in Firefox we don't have this error * feat(answer-details): show question's note * fix(answers): fetch answers without previous `state.urgent` value * fix(header): make hambuger menu contain all of its items * feat(answers): add `CanLoad` guard to `answers` module * feat(answer-notification): add page for sending notifications * feat(base-button): allow to have inheritet color * particularly useful when we want the button's color to depend on the class applied on the `container` * fix(answer-details): change `View Note` button's color in accordance with the question's flagged status * i18n(answers/*): add translations * fix(answers): show total number of all records * instead of the number of current records shown in page * feat(table): identify a table column by using a custom directive * feat(answers): make `filters` work * feat(answers): reset filters * as a result, the entries will be shown accordingly * feat(county): add `county` store slice * feat(answers): select `counties` filter from `select` tag * feat(answers): show `Location Type` & `Date&Time` columns in table * feat(answer-details): show `Location Type` & `Date&Time` stats * refactor(answers): remove `from` & `to` filters * feat(base-checkbox): allow checkbox to be readonly(disabled) * feat(answer-details): make every answer readonly * fix(observers): allow the `table` comp to query the tableColumn properly * fix(answers.effects): avoid calling for extra details when initial response is empty * feat(answers/form): fetch forms when only needed * feat(answers): fetch data only when needed & don't refetch redundantly * feat(answers-notification): send notification * feat(notes): fetch data only when needed & don't refetch redundantly * refactor: replace `/urgents` route with `urgent` filter in `/answers` * feat(answer-questions): display questions & answers in separate component * feat(answer-details): add `Notes` tab * feat(answer-details): add `Notes` tab * feat(answer-details): scroll to question from `Notes` tab * feat(answer-details): open modals with content decided by child components * feat(notes): open modal with note on row click * refactor(notes): let the `answer-details` hold the template with the modal content * reason: both `notes` and `answer-questions` are bound to use the same modal template * feat(answer-questions): show note in modal when the `View Note` is called * feat(notes): display shrunk note text with ellipsis when necessaryy * feat(answer-questions): improve highlight of flagged question * fix: make `visually-hidden` class work on both Chrome and Firefox * fix(answer-questions): remove empty spaces from `textarea` * feat(answers): make layout responsive * fix(notes): fetch notes immediately as `answer-details` is rendered * this is to show the questions with notes from the crt tab properly * feat(answers): add loading icon * feat(answer-details): add loading icon * fix(login): redirect to `/answers` instead of the old `/urgents` * feat: reset state after logout * fix(answers): make `Export` button work * fix(answer-details): scroll to question from a tab different than the previous one visited * when, from `Notes` tabm the user is redirected to a form tab which is different than the previous one, shown exactly before the user had visited the `Notes` tab * i18n(answer-details): add translations * feat(answer-notification): show message after notification has been sent * refactor(notes): display '-' when a question link is missing
- Loading branch information
fb7c53c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: