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

Release/11.0 #453

Closed
wants to merge 95 commits into from
Closed

Release/11.0 #453

wants to merge 95 commits into from

Conversation

dominicwest
Copy link
Contributor

Description

Ticket # and link

Summary of the changes and the related issue. List any dependencies that are required for this change:

Type of change

Please check the relevant options.

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • This change requires a documentation update.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes:

  • Unit Test

  • Integration Test (if applicable)

  • End to End Test (if applicable)

Screenshots (if appropriate):

Please attach screenshots of the change if it is a UI change:

Checklist:

  • If I have listed dependencies above, I have ensured that they are present in the target branch.
  • I have performed a self-review of my code.
  • I have commented my code in hard-to-understand areas.
  • I have made corresponding changes to the documentation where applicable.
  • I have ran cypress tests and they all pass locally.

john-tco and others added 30 commits February 27, 2024 16:47
* initial

* push content

* add view-editors page

* blank commit to trigger build

* fix linting

* fix unnamed test component

* update routes

* amend error redirect

* rm

* shift to editor service

* use colour helper

* add editors mock

* fix editors gssp

* Update packages/admin/src/pages/scheme/[schemeId]/manage-editors/index.page.tsx

Co-authored-by: dominicwest <[email protected]>
Signed-off-by: john-tco <[email protected]>

* fix url

* misc

* refactor

* update import

* Update packages/admin/src/pages/scheme/[schemeId]/view-editors/index.page.tsx

Co-authored-by: dominicwest <[email protected]>
Signed-off-by: john-tco <[email protected]>

---------

Signed-off-by: john-tco <[email protected]>
Co-authored-by: dominicwest <[email protected]>
* TMI2-602, TMI2-603, TMI2-604, TMI2-617: Download all applications  (#323)

* TMI2-602 - Initial commit of updated page

* TMI2-602 - Adding unit tests

* TMI2-602 - Restructuring page to accommodate for all journeys

* TMI2-603, TMI-604 - Adding error banner and placeholders for pagination

* TMI2-603 - Tidying up

---------

Co-authored-by: Jim Purvis <[email protected]>

* TMI2-633: Functional 'Download all' button (#340)

* TMI2-602 - Initial commit of updated page

* TMI2-602 - Adding unit tests

* TMI2-602 - Restructuring page to accommodate for all journeys

* TMI2-603, TMI-604 - Adding error banner and placeholders for pagination

* TMI2-603 - Tidying up

* TMI2-633 - Adding functionality to Download All button

* TMI2-633 - Removing console.log

---------

Co-authored-by: Jim Purvis <[email protected]>

* TMI2-603-download-individual-applications-success-path (#346)

* TMI2-602 - Initial commit of updated page

* TMI2-602 - Adding unit tests

* TMI2-602 - Restructuring page to accommodate for all journeys

* TMI2-603, TMI-604 - Adding error banner and placeholders for pagination

* TMI2-603 - Tidying up

* Add individual download page

* Update pagination component

* Add back button url

---------

Co-authored-by: Jim Purvis <[email protected]>
Co-authored-by: jimpurvisTCO <[email protected]>

* TMI2-600 restructure (#351)

* TMI2-600 - Restructuring and moving 'Download all submissions' page to meet new API spec

* TMI2-600 - Connecting up to new export details API

* TMI2-600 - Adding pagination (still to be linked to view page)

---------

Co-authored-by: Jim Purvis <[email protected]>

* TMI2-600 - Only requesting necessary exports for each

* TMI2-600 - Unit tests

* TMI2-603: Update download-individual page

* Integrate API to get submissions
* Implement pagination
* Remove redundant code

* TMI2-603: Add unit tests for download-individual page

* TMI2-605 -  View submission summary (error path) (#352)

* TMI2-605 - View read-only summary of application that could not be downloaded

* TMI2-605 - Added link to view individual read-only submissions

* TMI2-605 - Linking frontend to new failed export details endpoint

---------

Co-authored-by: Jim Purvis <[email protected]>

* TMI2-600 - fix for use of an 'any' in submissions list

* Visual tweaks

* TMI2-600 - typo fix

* Clean up code

* TMI2-669 - download attachments error path (#356)

* TMI2-669 - Added conditional logic for rendering option to download attachments

* TMI2-669 - Added tests

* Update DownloadMessage component

* Component now refers to plural applications if there is more than 1

* Update download-individual page

* Pagination now only displays margin when there is more than 1 page
* Item type is now set to applications

* TMI2-600 - PR comments re: view application

* TMI2-600 - Unit test update

* Update index.page.tsx and download-individual.page.tsx

* Replace DownloadMessage banner with ImportantBanner
* Align text with Figma designs
* Make pagination more readable
* Remove unnecessary components

---------

Co-authored-by: Jim Purvis <[email protected]>
Co-authored-by: Iain Cooper <[email protected]>
Co-authored-by: IlyasBaqqari-CabinetOffice <[email protected]>
Co-authored-by: IlyasBaqqari-CabinetOffice <[email protected]>
Co-authored-by: kiramarstonTCO <[email protected]>
* Triggerring pipelines on PRs to feature branches

* Triggerring pipelines on PRs to feature branches

* GAP-2138: WIP remove page UI complete

* Removing unneeded prop

* GAP-2138: Unit tests start

* GAP-2138: Finish unit tests
* initial

* refactor

* fix tets

* refactor buildadvert

* fix type

* amend tests

* fix test

* amend copy
* initial

* add tests

* fix dates

* mock timezone

* mr feedback

* use correct scheduled date
* fix case on am/pm string

* fix tests
* TMI2-689 - removed unnecessary styling from div

* TMI2-689 - Fixed alignment issues on satisfaction survey
…363)

* Added delete button to mutliple choice/select questions (as seen when editing a question.

* Added unit tests (exact same format as the ones for editing the questions) to cover the delete button rendering.

* Fixed unit tests by adding correct post action along with options

* Refactored callServiceMethod by extracting code out to functions, making it more readable

* make label more sensible

Co-authored-by: Conor Fayle <[email protected]>
Signed-off-by: paul-lawlor-tco <[email protected]>

* PR requested chagnes

---------

Signed-off-by: paul-lawlor-tco <[email protected]>
Co-authored-by: Conor Fayle <[email protected]>
* First pass at changes. Tests currently broken.

* updates to admin dash

* fixing tests

* adding a - when updated by is null

* PR feedback

* further PR feedback

* PR feedback III
* remove new tab link option from rich text editor

* remove link target option from rich text editor
* TMI2-717 - Default to two options rather than one on questions

* TMI2-717 - Typo fix

---------

Co-authored-by: Jim Purvis <[email protected]>
* GAP-2454 / GAP-2457 | get multiple editors working for section title with no email

* GAP-2454 | display email of user that last updated on error page

* GAP-2454 | small refactor

* GAP-2454 | readd lastPublished

* GAP-2454 | fix test

* GAP-2454 | add tests

* GAP-2454 | add ui test for error page

* GAP-2454 | add tests

* GAP-2454 | rename revision back to version

---------

Co-authored-by: conor <[email protected]>
)

* Added copies for deleting user with grants

* Add variable to determin if the admin owns any grants.

* Pushing to change branch - current issue w/ function to check owner. It's based on session ID so always checks the Super admin schemes (not the admin being viewed).

* passed query param that determines if a user owns a scheme.

* Added unit tests - will fail while in draft due to checkbox behaviour being a WIP.

* Conditionally render copy

* Checkbox is disabled conditionally. However issues with roles occur when the user is an owner. Still a WIP.

* modified checbox component to have disab;ed options built in. Handled case of admin role not being selected when the user OWNS a grant.

* removed comments

* Fix unit tests and add cases for 'Change' button URL when a SA views a users details.

* change identifier for disabled element

* implemented PR changes for Checkbox component and updated relevant tests/stories.

* Made role ids a constant object to improve readability
* passes new user roles through query

* fixed test
* GAP-2460 | implement multiple editors error for deleting section

* GAP-2460 | use query param for version instead of path

* GAP-2460 | fix test

---------

Co-authored-by: conor <[email protected]>
john-tco and others added 26 commits April 8, 2024 10:19
* Refresh user-service jwt in admin middleware

* bump expiry timer

* update env.example

* extract parseJwt

* add tests

* rm

* update log

* add comment to jwtExpiry declaration

* fix typo

* GAP-2489: Refactor middleware to be clean

* GAP-2489: Fixing tests

* GAP-2489: Adding additional log

* GAP-2489: Sort env.example alphabetically

* GAP-2489: Refactor to recreate after jwt expires

* GAP-2489: Removing unneeded comment

---------

Co-authored-by: dominicwest <[email protected]>
* Add search-result preview page
* Rename existing preview pages, components, methods etc. to advert-details
* Create PreviewSearchCard component
* Read advert data from backend
* Add tests and update existing tests
* add request/response logging to applicant package

* expand response log message

* amend error logs

* fix tests

* fix middleware tests

* rm logs

* minor additions

* extract ternary

* amend next-logger import

* add request/response logging to admin

* update middleware tests

* minor test refactor

* fix tests

* fix build error

* fix tests

* fix build error
* only call csrf middleware once

* fix tests
* add request/response logging to applicant package

* expand response log message

* amend error logs

* fix tests

* fix middleware tests

* rm logs

* minor additions

* extract ternary

* amend next-logger import

* add request/response logging to admin

* update middleware tests

* minor test refactor

* fix tests

* fix build error

* fix tests

* fix build error

* replace console invocations
* GAP-2587: adds logic to handle redirection to 404 page

* GAP-2587 | Apply suggestions from code review

Signed-off-by: Conor Fayle <[email protected]>

* fix build and rm duplicate csrfMiddleware invocation

---------

Signed-off-by: Conor Fayle <[email protected]>
Co-authored-by: Conor Fayle <[email protected]>
Co-authored-by: JamieGunnCO <[email protected]>
* add axios file to admin

* add api request/reponse logging to admin
… types will have the correct validation (#442)

* Adding validation to patch requests so that updated question response types will have the correct validation

* Handling string value of boolean in patch method for question options

---------

Signed-off-by: Connor Macqueen <[email protected]>
* GAP-2537:fix logic to handle applications with no adverts

* remove unwanted import

* Update packages/applicant/src/pages/api/create-submission.page.tsx

Co-authored-by: jgunnCO <[email protected]>
Signed-off-by: Conor Fayle <[email protected]>

---------

Signed-off-by: Conor Fayle <[email protected]>
Co-authored-by: a-lor-cab <[email protected]>
Co-authored-by: Conor Fayle <[email protected]>
Co-authored-by: jgunnCO <[email protected]>
* Adds small check to give Super Admin the Admin role if they weren't assigned

* GAP-2528 Fix unblock issue

* GAP-2528 | fix implementation and add tests

* GAP-2528 | improve comments

* Update packages/admin/src/pages/super-admin-dashboard/user/[id]/change-roles.test.tsx

Co-authored-by: jgunnCO <[email protected]>
Signed-off-by: tco-olivergodby <[email protected]>

---------

Signed-off-by: tco-olivergodby <[email protected]>
Co-authored-by: conor <[email protected]>
Co-authored-by: tco-olivergodby <[email protected]>
Co-authored-by: jgunnCO <[email protected]>
Co-authored-by: Conor Fayle <[email protected]>
* fetch csrf secret from secrets manager

* fix catch statement

* add log

* edit comment

* convert csrfSecret to class

* add IS_PRODUCTION var to constants

* add note on running in production mode to readme
* GAP-2521 | upgrade patch and minor versions for all packages

* GAP-2521 | remove react-moment from PreviewSearchResultCard due to dep issue

* GAP-2521 | upgrade more minor versions

* GAP-2521 | remove some applicant minor upgrades

* GAP-2521 | upgrade more deps

* GAP-2521 | remove no-server-import-in-page eslint rule

---------

Co-authored-by: conor <[email protected]>
* add explanatory comments and improve security

* add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.