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

chore(portals-my-pages): Move service portal to portals. Rename to my-pages #16234

Merged
merged 35 commits into from
Oct 11, 2024

Conversation

thordurhhh
Copy link
Member

@thordurhhh thordurhhh commented Oct 2, 2024

What

Move service portal to portals and rename to ... my-pages ✨
Starting with apps/service-portal ➡️ apps/portals/my-pages

Next up ... Moving the libs folders. 🚦

Why

Service portals and portals admin and all portals belong in the portals structure.

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Formatting passes locally with my changes
  • I have rebased against main before asking for a review

Summary by CodeRabbit

Release Notes

  • New Features

    • Introduced a new ESLint configuration for the My Pages application, allowing for future customization of linting rules.
  • Improvements

    • Updated the README to clarify the purpose of the My Pages feature.
    • Restructured ownership assignments for various project components to enhance team responsibilities.
  • Configuration Changes

    • Adjusted various configuration files to reflect the new directory structure for the My Pages application.
  • Bug Fixes

    • Corrected import paths across multiple files to ensure proper module resolution.

Copy link
Contributor

coderabbitai bot commented Oct 2, 2024

Walkthrough

The pull request introduces modifications primarily to the ownership assignments in the .github/CODEOWNERS file and updates various configuration files for the my-pages application. Key changes include the reassignment of ownership for specific application paths, the addition of a new ESLint configuration file, and several updates to the project.json and tsconfig files reflecting a restructuring of the application. Additionally, the README file has been updated for clarity, and import paths have been adjusted across multiple files to accommodate the new directory structure.

Changes

File Change Summary
.github/CODEOWNERS Updated ownership assignments for various paths, removing @island-is/hugsmidjan from /apps/service-portal*/ and adding it to /apps/portals/my-pages*/.
apps/portals/my-pages/.eslintrc.json New ESLint configuration file created, extending from @nx/react and a parent config, with specific overrides.
apps/portals/my-pages/README.md Title changed to "My Pages (Service Portal)" and description updated for clarity.
apps/portals/my-pages/infra/portals-my-pages.ts Import path updated for ref, service, and ServiceBuilder to reflect new directory structure.
apps/portals/my-pages/jest.config.ts Added displayName, updated rootDir and coverageDirectory properties.
apps/portals/my-pages/project.json Comprehensive updates to paths reflecting the new directory structure for the my-pages application.
apps/portals/my-pages/src/styles.css Import path for fonts updated to reflect new directory structure.
apps/portals/my-pages/tsconfig.app.json Added new files array for type definitions, updated paths.
apps/portals/my-pages/tsconfig.json Updated extends property to new relative path.
apps/portals/my-pages/tsconfig.spec.json Updated outDir and adjusted test file patterns in include.
apps/portals/my-pages/webpack.config.js Updated import path for nrwlConfig and added ESLint directive.
apps/service-portal/.eslintrc.json Deleted ESLint configuration file for the service portal.
infra/src/uber-charts/islandis.ts Updated import path for servicePortalSetup to reflect new application path.

Possibly related PRs

Suggested labels

automerge

Suggested reviewers

  • thorkellmani
  • lodmfjord
  • eirikurn
  • kksteini

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@thordurhhh thordurhhh changed the title chore(portals-my-pages): Service portal removal. Add portals my pages chore(portals-my-pages): Move service portal to portals. Rename to my-pages Oct 2, 2024
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.74%. Comparing base (3320501) to head (4352230).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #16234   +/-   ##
=======================================
  Coverage   36.74%   36.74%           
=======================================
  Files        6804     6804           
  Lines      140882   140843   -39     
  Branches    40124    40108   -16     
=======================================
- Hits        51761    51753    -8     
+ Misses      89121    89090   -31     
Flag Coverage Δ
air-discount-scheme-backend 54.04% <ø> (ø)
air-discount-scheme-web 0.00% <ø> (ø)
api 3.37% <ø> (ø)
api-catalogue-services 77.85% <ø> (ø)
api-domains-air-discount-scheme 36.90% <ø> (ø)
api-domains-assets 26.71% <ø> (ø)
api-domains-auth-admin 48.48% <ø> (ø)
api-domains-communications 39.90% <ø> (ø)
api-domains-criminal-record 47.96% <ø> (ø)
api-domains-driving-license 44.39% <ø> (ø)
api-domains-education 31.48% <ø> (ø)
api-domains-health-insurance 34.72% <ø> (ø)
api-domains-mortgage-certificate 34.92% <ø> (ø)
api-domains-payment-schedule 41.13% <ø> (ø)
application-api-files 57.97% <ø> (ø)
application-core 71.75% <ø> (+0.24%) ⬆️
application-system-api 41.44% <ø> (ø)
application-template-api-modules 27.97% <ø> (+0.01%) ⬆️
application-templates-accident-notification 29.29% <ø> (ø)
application-templates-car-recycling 3.12% <ø> (ø)
application-templates-criminal-record 26.35% <ø> (ø)
application-templates-driving-license 18.29% <ø> (ø)
application-templates-estate 12.31% <ø> (ø)
application-templates-example-payment 25.14% <ø> (ø)
application-templates-financial-aid 14.27% <ø> (ø)
application-templates-general-petition 23.43% <ø> (ø)
application-templates-health-insurance 26.41% <ø> (ø)
application-templates-inheritance-report 6.43% <ø> (ø)
application-templates-marriage-conditions 15.09% <ø> (ø)
application-templates-mortgage-certificate 43.75% <ø> (ø)
application-templates-parental-leave 30.06% <ø> (+0.09%) ⬆️
application-types 6.71% <ø> (ø)
application-ui-components 1.28% <ø> (ø)
application-ui-shell 21.27% <ø> (ø)
auth-admin-web 2.43% <ø> (ø)
auth-nest-tools 29.84% <ø> (ø)
auth-react 22.77% <ø> (ø)
auth-shared 75.00% <ø> (ø)
clients-charge-fjs-v2 24.11% <ø> (ø)
clients-driving-license 40.63% <ø> (ø)
clients-driving-license-book 43.77% <ø> (ø)
clients-financial-statements-inao 49.29% <ø> (ø)
clients-license-client 1.83% <ø> (ø)
clients-middlewares 73.05% <ø> (-0.09%) ⬇️
clients-regulations 42.76% <ø> (ø)
clients-rsk-company-registry 29.76% <ø> (ø)
clients-rsk-personal-tax-return 38.00% <ø> (ø)
clients-smartsolutions 12.77% <ø> (ø)
clients-syslumenn 49.42% <ø> (ø)
clients-zendesk 54.61% <ø> (ø)
cms 0.43% <ø> (ø)
cms-translations 39.03% <ø> (ø)
content-search-index-manager 95.65% <ø> (ø)
content-search-toolkit 8.16% <ø> (ø)
contentful-apps 5.57% <ø> (ø)
dokobit-signing 63.29% <ø> (ø)
download-service 44.20% <ø> (ø)
email-service 61.05% <ø> (ø)
feature-flags 91.04% <ø> (ø)
file-storage 53.59% <ø> (ø)
icelandic-names-registry-backend 53.97% <ø> (ø)
infra-nest-server 48.17% <ø> (ø)
infra-tracing 43.24% <ø> (ø)
island-ui-core 28.39% <ø> (ø)
judicial-system-api 18.29% <ø> (ø)
judicial-system-audit-trail 69.27% <ø> (ø)
judicial-system-formatters 79.90% <ø> (ø)
judicial-system-message 67.18% <ø> (ø)
judicial-system-message-handler 48.26% <ø> (ø)
judicial-system-scheduler 69.41% <ø> (ø)
judicial-system-types 47.44% <ø> (ø)
judicial-system-web 27.94% <ø> (ø)
license-api 42.71% <ø> (ø)
localization 10.15% <ø> (ø)
logging 48.43% <ø> (ø)
message-queue 68.50% <ø> (+0.78%) ⬆️
nest-audit 68.20% <ø> (ø)
nest-config 78.38% <ø> (ø)
nest-feature-flags 51.46% <ø> (ø)
nest-problem 45.85% <ø> (ø)
nest-sequelize 94.44% <ø> (ø)
nest-swagger 51.71% <ø> (ø)
nova-sms 62.65% <ø> (ø)
portals-admin-regulations-admin 1.85% <ø> (ø)
portals-core 16.15% <ø> (ø)
reference-backend 49.79% <ø> (ø)
regulations 16.78% <ø> (ø)
residence-history 85.00% <ø> (ø)
services-auth-delegation-api 57.39% <ø> (+0.06%) ⬆️
services-auth-personal-representative 45.15% <ø> (ø)
services-endorsements-api 54.18% <ø> (ø)
services-sessions 65.31% <ø> (ø)
services-university-gateway 48.30% <ø> (-0.06%) ⬇️
services-user-notification 47.04% <ø> (+0.02%) ⬆️
services-user-profile 62.17% <ø> (ø)
shared-components 27.65% <ø> (ø)
shared-form-fields 31.59% <ø> (ø)
shared-mocking 64.62% <ø> (ø)
shared-pii 92.85% <ø> (ø)
shared-problem 87.50% <ø> (ø)
shared-utils 27.90% <ø> (ø)
skilavottord-ws 24.24% <ø> (ø)
testing-e2e 66.66% <ø> (ø)
web 1.83% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 11 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3320501...4352230. Read the comment docs.

@datadog-island-is
Copy link

datadog-island-is bot commented Oct 2, 2024

Datadog Report

All test runs e05f775 🔗

101 Total Test Services: 0 Failed, 99 Passed
🔻 Test Sessions change in coverage: 3 decreased, 2 increased, 193 no change

Test Services
This report shows up to 10 services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Code Coverage Change Test Service View
air-discount-scheme-backend 0 0 0 81 0 28.01s N/A Link
air-discount-scheme-web 0 0 0 2 0 8.93s N/A Link
api 0 0 0 4 0 3.67s N/A Link
api-catalogue-services 0 0 0 23 0 11.97s N/A Link
api-domains-air-discount-scheme 0 0 0 6 0 19.11s N/A Link
api-domains-assets 0 0 0 3 0 11.47s N/A Link
api-domains-auth-admin 0 0 0 18 0 12.89s N/A Link
api-domains-communications 0 0 0 5 0 30.34s N/A Link
api-domains-criminal-record 0 0 0 5 0 9.12s N/A Link
api-domains-driving-license 0 0 0 23 0 29.4s N/A Link

🔻 Code Coverage Decreases vs Default Branch (3)

  • clients-middlewares - jest 75.52% (-0.21%) - Details
  • services-auth-ids-api - jest 45% (-0.07%) - Details
  • judicial-system-backend - jest 58.61% (-0.03%) - Details

@thordurhhh thordurhhh added the deploy-feature Deploys features to dev label Oct 2, 2024
Copy link
Contributor

github-actions bot commented Oct 2, 2024

Affected services are: air-discount-scheme-api,air-discount-scheme-backend,api,application-system-api,download-service,financial-aid-api,financial-aid-backend,financial-aid-open-api,github-actions-cache,icelandic-names-registry-backend,judicial-system-api,judicial-system-digital-mailbox-api,judicial-system-backend,judicial-system-message-handler,judicial-system-robot-api,judicial-system-scheduler,judicial-system-xrd-api,license-api,reference-backend,regulations-admin-backend,services-auth-admin-api,services-auth-ids-api,services-auth-delegation-api,services-auth-personal-representative,services-auth-personal-representative-public,services-auth-public-api,services-contentful-entry-tagger,services-documents,services-endorsements-api,services-form-system,services-search-indexer,services-sessions,services-university-gateway,services-user-notification,services-user-profile,services-xroad-collector,skilavottord-ws,air-discount-scheme-web,auth-admin-web,consultation-portal,contentful-apps,financial-aid-web-osk,financial-aid-web-veita,judicial-system-web,skilavottord-web,web,application-system-form,island-ui-storybook,portals-admin,service-portal,system-e2e,external-contracts-tests,
Feature deployment of your services will begin shortly. Your feature will be accessible here:
https://portals-my-pagesservice-portal-removal-api-catalogue.dev01.devland.is/api
https://portals-my-pagesservice-portal-removal-api.dev01.devland.is/download
https://portals-my-pagesservice-portal-removal-application-callback-xrd.internal.dev01.devland.is/application-payment
https://portals-my-pagesservice-portal-removal-application-callback-xrd.internal.dev01.devland.is/applications
https://portals-my-pagesservice-portal-removal-application-payment-callback-xrd.internal.dev01.devland.is/application-payment
https://portals-my-pagesservice-portal-removal-application-payment-callback-xrd.internal.dev01.devland.is/applications
https://portals-my-pagesservice-portal-removal-beta.dev01.devland.is/
https://portals-my-pagesservice-portal-removal-beta.dev01.devland.is/api
https://portals-my-pagesservice-portal-removal-beta.dev01.devland.is/app/skilavottord/
https://portals-my-pagesservice-portal-removal-beta.dev01.devland.is/app/skilavottord/api/graphql
https://portals-my-pagesservice-portal-removal-beta.dev01.devland.is/minarsidur
https://portals-my-pagesservice-portal-removal-beta.dev01.devland.is/samradsgatt
https://portals-my-pagesservice-portal-removal-beta.dev01.devland.is/stjornbord
https://portals-my-pagesservice-portal-removal-beta.dev01.devland.is/umsoknir
https://portals-my-pagesservice-portal-removal-license-api-xrd.internal.dev01.devland.is/
https://portals-my-pagesservice-portal-removal-loftbru-cf.dev01.devland.is/
https://portals-my-pagesservice-portal-removal-loftbru-cf.dev01.devland.is/api/graphql
https://portals-my-pagesservice-portal-removal-loftbru-cf.dev01.devland.is/api/public
https://portals-my-pagesservice-portal-removal-loftbru-cf.dev01.devland.is/api/swagger
https://portals-my-pagesservice-portal-removal-loftbru.dev01.devland.is/
https://portals-my-pagesservice-portal-removal-loftbru.dev01.devland.is/api/graphql
https://portals-my-pagesservice-portal-removal-loftbru.dev01.devland.is/api/public
https://portals-my-pagesservice-portal-removal-loftbru.dev01.devland.is/api/swagger
https://portals-my-pagesservice-portal-removal-service-portal-api.internal.dev01.devland.is/
https://portals-my-pagesservice-portal-removal-services-university-gateway.internal.dev01.devland.is/api
https://portals-my-pagesservice-portal-removal-sessions-api.internal.dev01.devland.is/
https://portals-my-pagesservice-portal-removal-ui.dev01.devland.is/

Deployed services: application-system-api,application-system-form,service-portal,service-portal-api,portals-admin,consultation-portal,api,web,xroad-collector,skilavottord-web,skilavottord-ws,services-documents,island-ui-storybook,download-service,icelandic-names-registry-backend,endorsement-system-api,air-discount-scheme-web,air-discount-scheme-backend,air-discount-scheme-api,regulations-admin-backend,external-contracts-tests,application-system-api-worker,license-api,services-sessions,services-sessions-worker,services-sessions-cleanup,services-university-gateway,services-university-gateway-worker.
Excluded services: search-indexer-service,github-actions-cache,user-notification,user-notification-worker,user-notification-cleanup-worker,contentful-entry-tagger-service,contentful-apps

thordurhhh and others added 17 commits October 2, 2024 22:31
* fix(portals-admin): locklist

* tweak

* msg id fix

* tweak

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* fix: def info and alert

* feat: add feature flag to resolver

* fix: move ff call to seperate function

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* fix: testing fixes v1

* fix: testing comments v2

* fix: better message

* fix: function name

* fix: duplicate loading

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* Add @swc-node/register and @swc/core

* Add testing/e2e library

* update project.json for testing/e2e

* fix import for libTestingE2e

---------

Co-authored-by: Kristofer <kristofer@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* feat(parental-leave): ApplicationRights

Added applicationRights to parental-leave when sending application. Since we are using a new way of calculating periods

* Fix days used by period calculation

* Tests for new periods

* rename function with proper camelCase

* Refactor: Made duplicate code into a function

* Make ApplicationRights nullable

* refactor: function instead of duplicate code

* remove console.log

* error handling for period data

* clientConfig nullable fix

* Fixes for calculation of months. And using clamp to get correct value of daysLeft

* Multiply amount of months by 30 for period calculation with month durations

* Fix old calculation of endDate with months

---------

Co-authored-by: hfhelgason <hfhelgason@deloitte.is>
Co-authored-by: veronikasif <54938148+veronikasif@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* updated readme

* updated readme

* chore: nx format:write update dirty files

---------

Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
…sclaimer text (#16288)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* feat(j-s): Block create subpoena on staging and dev

* Update subpoena.service.ts

* fix(j-s): Fix mailbox API

* remove changes not meant for this branch

* Update subpoena.service.ts

* fix(j-s): reverting changes from other branch

* Update subpoena.response.ts

* Update subpoena.response.ts

* Update subpoena.response.ts

* Update subpoena.response.ts

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* Set style level for shellcheck

* Linting & formatting scripts

* Remove _podman.sh script

* Format all scripts

* Add reviewdog/action-shfmt step

* Configure shfmt

* Merge from main

* Linting

* Move shfmt to before lint

* Remove reviewdog

* Allow external sources in shellcheck

* Use Reviewdog for shellcheck

* Set version for Reviewdog

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: veronikasif <54938148+veronikasif@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* check if 65 renewal is possible

* remove console log

* cleanup

* coderabbit tweaks

* coderabbit changes

* quick fix

* add type?

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
@thordurhhh thordurhhh added deploy-feature Deploys features to dev and removed deploy-feature Deploys features to dev labels Oct 9, 2024
@thordurhhh thordurhhh marked this pull request as ready for review October 10, 2024 15:02
@thordurhhh thordurhhh requested review from a team as code owners October 10, 2024 15:02
@thordurhhh thordurhhh added the automerge Merge this PR as soon as all checks pass label Oct 10, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Outside diff range and nitpick comments (3)
apps/portals/my-pages/jest.config.ts (1)

3-3: Consider updating the displayName to match the new directory name.

The displayName is set to 'service-portal', which doesn't align with the new directory name 'my-pages'. This might lead to confusion when running tests or interpreting test results.

Consider changing it to:

- displayName: 'service-portal',
+ displayName: 'my-pages',
apps/portals/my-pages/tsconfig.spec.json (1)

15-21: LGTM: Test file patterns updated comprehensively

The include patterns have been updated to cover all relevant test file extensions (.ts, .tsx, .js, .jsx). This ensures that all test files will be properly included in the compilation process.

Consider consolidating the patterns to reduce redundancy:

"include": [
  "**/*.test.{ts,tsx,js,jsx}",
  "**/*.spec.{ts,tsx,js,jsx}",
  "**/*.d.ts",
  "jest.config.ts"
],

This change would make the configuration more concise while maintaining the same functionality.

apps/portals/my-pages/project.json (1)

1-2: Consider updating the name property

While all paths have been updated to reflect the new my-pages structure, the name property still refers to "service-portal". Consider updating this to "my-pages" for consistency with the new application name and structure.

Suggested change:

{
-  "name": "service-portal",
+  "name": "my-pages",
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
  ...
}
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between dcba071 and 4cfb49c.

⛔ Files ignored due to path filters (89)
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-300.eot is excluded by !**/*.eot
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-300.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-300.ttf is excluded by !**/*.ttf
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-300.woff is excluded by !**/*.woff
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-300.woff2 is excluded by !**/*.woff2
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-500.woff is excluded by !**/*.woff
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-500.woff2 is excluded by !**/*.woff2
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-600.eot is excluded by !**/*.eot
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-600.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-600.ttf is excluded by !**/*.ttf
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-600.woff is excluded by !**/*.woff
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-600.woff2 is excluded by !**/*.woff2
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-italic.eot is excluded by !**/*.eot
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-italic.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-italic.ttf is excluded by !**/*.ttf
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-italic.woff is excluded by !**/*.woff
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-italic.woff2 is excluded by !**/*.woff2
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-regular.eot is excluded by !**/*.eot
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-regular.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-regular.ttf is excluded by !**/*.ttf
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-regular.woff is excluded by !**/*.woff
  • apps/portals/my-pages/src/assets/fonts/ibm-plex-sans-v7-latin-regular.woff2 is excluded by !**/*.woff2
  • apps/portals/my-pages/src/assets/icons/A.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/AM.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/B.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/BE.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/C.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/CE.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/D.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/DE.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/airplane.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/business.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/car.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/cardWithCheckmark.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/cellular.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/fileTrayFull.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/gavel.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/heart.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/home.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/lockClosed.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/logOut.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/mail.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/menntun.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/people.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/person.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/reader.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/receipt.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/school.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/icons/sidebar/wallet.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/404.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/adr_machine.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/baby.jpg is excluded by !**/*.jpg
  • apps/portals/my-pages/src/assets/images/bedroom.jpg is excluded by !**/*.jpg
  • apps/portals/my-pages/src/assets/images/bench.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/bus.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/coffee.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/company.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/dashboard.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/drivingLessons.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/education.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/educationDegree.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/educationGrades.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/empty.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/emptyState.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/familyGrid.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/health.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/hourglass.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/individualsGrid.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/island.png is excluded by !**/*.png
  • apps/portals/my-pages/src/assets/images/island.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/jobsGrid.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/movingTruck.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/myDocuments.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/myInfo.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/myRights.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/nodata.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/payment.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/retirement.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/rls.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/school.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/settings.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/shopping.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/skjaldarmerki.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/sofa.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/thjodskra.png is excluded by !**/*.png
  • apps/portals/my-pages/src/assets/images/tr.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/umhverfisstofnun.svg is excluded by !**/*.svg
  • apps/portals/my-pages/src/assets/images/working.jpg is excluded by !**/*.jpg
  • apps/portals/my-pages/src/favicon.ico is excluded by !**/*.ico
📒 Files selected for processing (13)
  • .github/CODEOWNERS (1 hunks)
  • apps/portals/my-pages/.eslintrc.json (1 hunks)
  • apps/portals/my-pages/README.md (1 hunks)
  • apps/portals/my-pages/infra/portals-my-pages.ts (1 hunks)
  • apps/portals/my-pages/jest.config.ts (2 hunks)
  • apps/portals/my-pages/project.json (3 hunks)
  • apps/portals/my-pages/src/styles.css (1 hunks)
  • apps/portals/my-pages/tsconfig.app.json (1 hunks)
  • apps/portals/my-pages/tsconfig.json (1 hunks)
  • apps/portals/my-pages/tsconfig.spec.json (2 hunks)
  • apps/portals/my-pages/webpack.config.js (1 hunks)
  • apps/service-portal/.eslintrc.json (0 hunks)
  • infra/src/uber-charts/islandis.ts (1 hunks)
💤 Files with no reviewable changes (1)
  • apps/service-portal/.eslintrc.json
✅ Files skipped from review due to trivial changes (3)
  • apps/portals/my-pages/.eslintrc.json
  • apps/portals/my-pages/infra/portals-my-pages.ts
  • apps/portals/my-pages/tsconfig.json
🧰 Additional context used
📓 Path-based instructions (7)
apps/portals/my-pages/README.md (1)

Pattern apps/**/*: "Confirm that the code adheres to the following:

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
apps/portals/my-pages/jest.config.ts (1)

Pattern apps/**/*: "Confirm that the code adheres to the following:

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
apps/portals/my-pages/project.json (1)

Pattern apps/**/*: "Confirm that the code adheres to the following:

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
apps/portals/my-pages/src/styles.css (1)

Pattern apps/**/*: "Confirm that the code adheres to the following:

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
apps/portals/my-pages/tsconfig.app.json (1)

Pattern apps/**/*: "Confirm that the code adheres to the following:

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
apps/portals/my-pages/tsconfig.spec.json (1)

Pattern apps/**/*: "Confirm that the code adheres to the following:

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
apps/portals/my-pages/webpack.config.js (1)

Pattern apps/**/*: "Confirm that the code adheres to the following:

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
🪛 LanguageTool
apps/portals/my-pages/README.md

[grammar] ~5-~5: You should probably use: “are”.
Context: ...es (Service Portal) ## About My pages is the user personal pages where it will b...

(AGREEMENT_SENT_START)

🔇 Additional comments (19)
apps/portals/my-pages/jest.config.ts (3)

5-5: The rootDir update looks good.

The change to rootDir correctly reflects the new directory structure, moving up one more level to accommodate the 'portals' subdirectory.


15-15: The coverageDirectory update is correct.

The coverageDirectory path has been properly updated to reflect the new location of the 'my-pages' application within the 'portals' directory.


Line range hint 7-13: Verify the tsconfig path in the transform configuration.

The transform configuration uses a relative path for the tsconfig file. Please ensure that this path is still correct after moving the directory:

'^.+\\.[tj]sx?$': [
  'ts-jest',
  { tsconfig: `${__dirname}/tsconfig.spec.json` },
],

If the tsconfig.spec.json file has moved or its location has changed relative to this Jest configuration file, you may need to update this path.

apps/portals/my-pages/tsconfig.app.json (2)

23-23: The "include" array remains appropriate for the application.

The "include" array correctly specifies all necessary JavaScript and TypeScript file types for the application, which is good for maintaining consistency and ensuring all relevant files are processed by TypeScript.


12-15: LGTM! The updated paths align with the new project structure.

The changes in the "files" array correctly reflect the new directory structure for the my-pages application. This is consistent with the PR objective of moving the service portal to apps/portals/my-pages.

Let's verify the new file structure:

apps/portals/my-pages/webpack.config.js (1)

1-1: LGTM: ESLint rule disabled appropriately.

The addition of the ESLint disable comment for @typescript-eslint/no-var-requires is appropriate in this context. It's a common practice in configuration files where require is often used instead of import.

apps/portals/my-pages/tsconfig.spec.json (3)

4-4: LGTM: Output directory path updated correctly

The outDir path has been properly updated to reflect the new directory structure. This change aligns with the PR objective of relocating the service portal.


26-27: LGTM: Type definition paths updated correctly

The paths for the CSS module and image type definitions have been properly updated to reflect the new directory structure. This ensures that the correct type definitions will be used in the new location.


Line range hint 1-30: Summary: File successfully adapted for new directory structure

The changes in this tsconfig.spec.json file accurately reflect the relocation of the service portal to the new apps/portals/my-pages directory. All path updates are consistent and maintain the existing functionality while adapting to the new structure. These modifications align well with the PR objectives of reorganizing the service portal within a unified portals structure.

apps/portals/my-pages/project.json (8)

3-4: LGTM: Updated schema and sourceRoot paths

The changes to $schema and sourceRoot correctly reflect the new directory structure for the my-pages application. This is consistent with the PR objectives of moving the service portal to apps/portals/my-pages.


12-16: LGTM: Updated build configuration paths

The build configuration paths (outputPath, index, main, polyfills, and tsConfig) have been correctly updated to reflect the new apps/portals/my-pages structure. These changes are consistent and align with the PR objectives.


18-20: LGTM: Updated asset paths

The asset paths have been correctly updated to point to the new apps/portals/my-pages location. This change is consistent with the overall restructuring of the application.


22-22: LGTM: Updated styles and webpack configuration paths

The styles and webpackConfig paths have been correctly updated to reflect the new apps/portals/my-pages structure. These changes are consistent with the overall restructuring of the application.

Also applies to: 24-24


31-31: LGTM: Updated production index path

The index path for the production configuration has been correctly updated to reflect the new apps/portals/my-pages structure. This change is consistent with the overall restructuring of the application.


57-57: LGTM: Updated generateDevIndexHTML configuration

The generateDevIndexHTML command and output paths have been correctly updated to reflect the new apps/portals/my-pages structure. These changes are consistent with the overall restructuring of the application.

Also applies to: 60-60


84-84: LGTM: Updated test configuration paths

The jestConfig path and test output path have been correctly updated to reflect the new apps/portals/my-pages structure. These changes are consistent with the overall restructuring of the application.

Also applies to: 86-86


91-91: LGTM: Updated extract-strings command

The extract-strings command has been correctly updated to use the new apps/portals/my-pages path. This change is consistent with the overall restructuring of the application.

infra/src/uber-charts/islandis.ts (1)

14-14: LGTM! Verify consistency across the file.

The import path update for servicePortalSetup aligns with the PR objectives of moving the service portal to the new directory structure under apps/portals/my-pages. This change is consistent with the initiative to organize service portals within a unified portals structure.

To ensure consistency, please run the following script to check if there are any other occurrences of the old import path or related paths that might need updating:

This script will help identify any inconsistencies or missed updates related to the service portal relocation.

✅ Verification successful

Re-running verification scripts with corrected file type specifications.

The previous scripts failed due to an unrecognized file type. The updated scripts use glob patterns to target TypeScript files.


Verification successful: No remaining old import paths found.

The import path update for servicePortalSetup in infra/src/uber-charts/islandis.ts has been successfully applied. No other occurrences of the old import path or related imports from the old service-portal directory were found.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any remaining occurrences of the old import path or related paths

# Test 1: Search for any remaining occurrences of the old import path
echo "Searching for old import path..."
rg --type typescript "apps/service-portal/infra/service-portal"

# Test 2: Search for any other imports from the old service-portal directory
echo "Searching for other imports from the old service-portal directory..."
rg --type typescript "from '.*apps/service-portal/"

# Test 3: Verify that the new import path is used consistently
echo "Verifying consistent use of the new import path..."
rg --type typescript "from '.*apps/portals/my-pages/"

Length of output: 617


Script:

#!/bin/bash
# Description: Check for any remaining occurrences of the old import path or related paths

# Test 1: Search for any remaining occurrences of the old import path
echo "Searching for old import path..."
rg "apps/service-portal/infra/service-portal" --glob "*.ts"

# Test 2: Search for any other imports from the old service-portal directory
echo "Searching for other imports from the old service-portal directory..."
rg "from '.*apps/service-portal/" --glob "*.ts"

# Test 3: Verify that the new import path is used consistently
echo "Verifying consistent use of the new import path..."
rg "from '.*apps/portals/my-pages/" --glob "*.ts"

Length of output: 641

.github/CODEOWNERS (1)

130-130: LGTM: Ownership assignment aligns with PR objectives.

The addition of /apps/portals/my-pages*/ under the ownership of @island-is/hugsmidjan is correct and consistent with the PR's goal of relocating the service portal to the new directory structure.

apps/portals/my-pages/webpack.config.js Show resolved Hide resolved
apps/portals/my-pages/src/styles.css Show resolved Hide resolved
Copy link
Member

@thorkellmani thorkellmani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to test tho

apps/portals/my-pages/README.md Show resolved Hide resolved
@thorkellmani thorkellmani removed the automerge Merge this PR as soon as all checks pass label Oct 10, 2024
Copy link
Member

@snaerseljan snaerseljan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job 👏

@thordurhhh thordurhhh added the automerge Merge this PR as soon as all checks pass label Oct 11, 2024
@kodiakhq kodiakhq bot merged commit 4309e6f into main Oct 11, 2024
531 of 537 checks passed
@kodiakhq kodiakhq bot deleted the portals-my-pages/service-portal-removal branch October 11, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this PR as soon as all checks pass deploy-feature Deploys features to dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.