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

feat(web): Add image to generic list item #17464

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mannipje
Copy link
Member

@mannipje mannipje commented Jan 9, 2025

Add image to generic list item

What

  • Add optional image field to generic list item
  • Use NewsCard component for generic list item card when using image
  • Possibility to choose whether an image in the view is displayed half the content width or full width

Why

  • So generic list item can have image on card and also view

Screenshots / Gifs

Before (Generic list item view)

image

After (Generic list item view)

image

Before (Generic list overview)

image

After (Generic list overview)

image

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

  • New Features

    • Enhanced list items with optional image support
    • Added ability to customize image display and title text color
    • Introduced responsive image styling for list components
  • Improvements

    • Updated GraphQL queries to include image metadata
    • Expanded data models to support richer content presentation
  • Technical Updates

    • Implemented conditional rendering for images in list items
    • Added new styling options for news cards and list components

@mannipje mannipje added the automerge Merge this PR as soon as all checks pass label Jan 9, 2025
@mannipje mannipje requested review from a team as code owners January 9, 2025 16:19
Copy link
Contributor

coderabbitai bot commented Jan 9, 2025

Warning

There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.

🔧 eslint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

warning [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
warning eslint > @humanwhocodes/[email protected]: Use @eslint/config-array instead
warning eslint > @humanwhocodes/config-array > @humanwhocodes/[email protected]: Use @eslint/object-schema instead
warning eslint > file-entry-cache > flat-cache > [email protected]: Rimraf versions prior to v4 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > [email protected]: Glob versions prior to v9 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning jest > @jest/core > jest-config > [email protected]: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > jest-runtime > [email protected]: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > @jest/reporters > [email protected]: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > @jest/transform > babel-plugin-istanbul > test-exclude > [email protected]: Glob versions prior to v9 are no longer supported
warning storybook > @storybook/cli > puppeteer-core > [email protected]: Rimraf versions prior to v4 are no longer supported
warning storybook > @storybook/cli > puppeteer-core > rimraf > [email protected]: Glob versions prior to v9 are no longer supported
warning storybook > @storybook/cli > jscodeshift > temp > [email protected]: Rimraf versions prior to v4 are no longer supported
warning storybook > @storybook/cli > jscodeshift > temp > rimraf > [email protected]: Glob versions prior to v9 are no longer supported
warning storybook > @storybook/cli > jscodeshift > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
warning storybook > @storybook/cli > jscodeshift > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
warning storybook > @storybook/cli > tempy > del > [email protected]: Rimraf versions prior to v4 are no longer supported
warning storybook > @storybook/cli > jscodeshift > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
warning react-native > @react-native/codegen > [email protected]: Glob versions prior to v9 are no longer supported
warning react-native > @react-native/community-cli-plugin > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning react-native > @react-native-community/cli > @react-native-community/cli-tools > [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
warning react-native > @react-native/community-cli-plugin > @react-native/dev-middleware > @rnx-kit/chromium-edge-launcher > [email protected]: Rimraf versions prior to v4 are no longer supported
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
warning next-auth > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning next-auth > [email protected]: this version is no longer supported
warning next-auth > @next-auth/typeorm-legacy-adapter > typeorm > [email protected]: Glob versions prior to v9 are no longer supported
warning @nx/next > @nx/webpack > stylus > [email protected]: Glob versions prior to v9 are no longer supported
warning @nx/next > @nx/webpack > webpack-dev-server > [email protected]: Rimraf versions prior to v4 are no longer supported
warning @nx/next > @nx/webpack > fork-ts-checker-webpack-plugin > [email protected]: this will be v4
warning @nx/next > @nx/webpack > webpack-dev-server > webpack-dev-middleware > [email protected]: this will be v4
warning workspace-aggregator-5a3fcf28-3192-4462-a176-bc26edf6983c > [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
warning "@nx/eslint > @nx/js > [email protected]" has unmet peer dependency "@types/node@".
warning "@nx/next > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "styled-components > babel-plugin-styled-components > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > [email protected]" has unmet peer dependency "react-is@>= 16.8.0".
warning "@nx/react > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning " > [email protected]" has unmet peer dependency "@types/node@
".
warning " > [email protected]" has incorrect peer dependency "[email protected]".
warning "react-native > @react-native/[email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/community-cli-plugin > @react-native/[email protected]" has unmet peer dependency "@babel/core@*".
warning "@vanilla-extract/next-plugin > @vanilla-extract/[email protected]" has unmet peer dependency "webpack@^4.30.0 || ^5.20.2".
warning " > [email protected]" has incorrect peer dependency "react@^16.13.1 || ^17".
warning " > [email protected]" has incorrect peer dependency "react-dom@^16.13.1 || ^17".
warning "next-auth > @next-auth/[email protected]" has unmet peer dependency "@prisma/client@^2.16.1".
warning "@nx/next > [email protected]" has unmet peer dependency "webpack@^5.1.0".

Walkthrough

This pull request introduces comprehensive changes to the Generic List functionality across multiple files. The primary focus is enhancing the list item rendering by adding image support and improving the visual presentation. The modifications span from GraphQL query updates to component rendering logic, enabling more flexible and visually rich list item displays. The changes allow conditional rendering of NewsCard components and support for floating images within list items.

Changes

File Change Summary
apps/web/components/GenericList/GenericList.tsx - Added NewsCard component import
- Introduced image variable in ClickableItem
- Conditional rendering of NewsCard based on image presence
apps/web/components/NewsCard/NewsCard.tsx - Added optional titleTextColor prop
- Updated rendering to support custom title text color
- Improved image conditional rendering
apps/web/screens/GenericList/GenericListItem.css.ts - Created new CSS module
- Defined floatedImage responsive style
apps/web/screens/GenericList/GenericListItem.tsx - Added classnames import
- Implemented conditional image rendering
- Added support for image optimization
apps/web/screens/queries/GenericList.ts - Added image field to GraphQL queries
- Introduced fullWidthImageInContent field
apps/web/screens/queries/fragments.ts - Updated LatestGenericListItemsFields fragment
- Added image metadata to item response
libs/cms/src/lib/models/genericListItem.model.ts - Added image property
- Introduced fullWidthImageInContent boolean property

Sequence Diagram

sequenceDiagram
    participant Client
    participant GenericList
    participant NewsCard
    participant GraphQL
    
    Client->>GraphQL: Request list items
    GraphQL-->>Client: Return items with image data
    Client->>GenericList: Render list
    GenericList->>GenericList: Check item image
    alt Image exists
        GenericList->>NewsCard: Render NewsCard
    else No image
        GenericList->>GenericList: Render default item
    end
Loading

Possibly related PRs

Suggested Labels

deploy-feature

Suggested Reviewers

  • RunarVestmann

Finishing Touches

  • 📝 Generate Docstrings

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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

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: 1

🧹 Nitpick comments (5)
apps/web/screens/GenericList/GenericListItem.css.ts (1)

5-13: LGTM! Consider adding print media query.

The responsive styling is well-implemented using theme utilities. The float and width values create a balanced layout.

Consider adding a print media query to ensure images are properly rendered in printed documents:

 export const floatedImage = style({
   ...themeUtils.responsiveStyle({
     sm: {
       float: 'right',
       width: '50%',
       marginLeft: '16px',
     },
   }),
+  '@media print': {
+    float: 'none',
+    width: '100%',
+    marginLeft: 0,
+  },
 })
apps/web/screens/queries/GenericList.ts (1)

52-58: Consider adding alt text field for accessibility.

While the image fields are comprehensive, consider adding an alt field for better accessibility.

      image {
        url
        title
        width
        height
+       alt
      }
      fullWidthImageInContent
libs/cms/src/lib/models/genericListItem.model.ts (1)

77-78: Consider adding validation for image dimensions.

The mapping function could benefit from validation of image dimensions.

-    image: fields.image ? mapImage(fields.image) : null,
+    image: fields.image ? validateAndMapImage(fields.image) : null,
     fullWidthImageInContent: fields.fullWidthImageInContent ?? true,
   }
 }
+
+const validateAndMapImage = (image: any) => {
+  const mappedImage = mapImage(image);
+  if (mappedImage && (!mappedImage.width || !mappedImage.height)) {
+    console.warn('Image dimensions missing:', mappedImage.url);
+  }
+  return mappedImage;
+}
apps/web/screens/GenericList/GenericListItem.tsx (1)

55-65: Add loading and error handling for images.

Consider adding loading state and error handling for better user experience.

 <Image
   {...item?.image}
+  loading="lazy"
+  onError={(e) => {
+    console.error('Failed to load image:', item?.image?.url);
+    e.currentTarget.style.display = 'none';
+  }}
   url={
     item?.image?.url
       ? item.image?.url + '?w=1000&fm=webp&q=80'
       : ''
   }
apps/web/components/GenericList/GenericList.tsx (1)

151-170: Consider these improvements to the NewsCard implementation.

  1. The empty readMoreText="" prop could be omitted since it's optional.
  2. The date prop should be properly typed to handle undefined.
  3. Consider making the color values (blue400, purple400) configurable through props for better reusability.
-        readMoreText=""
-        date={item.date ?? ''}
-        titleTextColor="blue400"
-        dateTextColor="purple400"
+        date={item.date}
+        titleTextColor={titleTextColor}
+        dateTextColor={dateTextColor}
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 98124ef and 75f2216.

⛔ Files ignored due to path filters (1)
  • libs/cms/src/lib/generated/contentfulTypes.d.ts is excluded by !**/generated/**
📒 Files selected for processing (7)
  • apps/web/components/GenericList/GenericList.tsx (3 hunks)
  • apps/web/components/NewsCard/NewsCard.tsx (5 hunks)
  • apps/web/screens/GenericList/GenericListItem.css.ts (1 hunks)
  • apps/web/screens/GenericList/GenericListItem.tsx (3 hunks)
  • apps/web/screens/queries/GenericList.ts (2 hunks)
  • apps/web/screens/queries/fragments.ts (1 hunks)
  • libs/cms/src/lib/models/genericListItem.model.ts (3 hunks)
🧰 Additional context used
📓 Path-based instructions (7)
apps/web/screens/GenericList/GenericListItem.css.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/web/components/NewsCard/NewsCard.tsx (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/web/screens/GenericList/GenericListItem.tsx (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."
libs/cms/src/lib/models/genericListItem.model.ts (1)

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

  • Reusability of components and hooks across different NextJS apps.
  • TypeScript usage for defining props and exporting types.
  • Effective tree-shaking and bundling practices."
apps/web/screens/queries/GenericList.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/web/screens/queries/fragments.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/web/components/GenericList/GenericList.tsx (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."
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: prepare
🔇 Additional comments (8)
apps/web/screens/queries/GenericList.ts (1)

28-33: LGTM! Image fields are well-structured.

The image fields include all necessary metadata for proper rendering and optimization.

libs/cms/src/lib/models/genericListItem.model.ts (1)

41-45: LGTM! Well-structured model changes.

The new fields are properly decorated for GraphQL schema generation and include appropriate nullability.

apps/web/components/NewsCard/NewsCard.tsx (3)

27-27: LGTM! Well-typed prop addition.

The new titleTextColor prop is properly typed with a union type of valid color values.


41-41: LGTM! Consistent implementation.

The titleTextColor prop is consistently applied across all Text components that render the title.

Also applies to: 72-72, 112-112


Line range hint 135-149: LGTM! Improved image rendering logic.

The image rendering condition is properly guarded with both showImage and image checks.

apps/web/screens/queries/fragments.ts (1)

979-984: LGTM! Complete image field definition.

The image field includes all necessary properties (url, title, width, height) for proper image rendering and optimization.

apps/web/components/GenericList/GenericList.tsx (2)

29-29: LGTM! Clean imports.

The imports are properly organized and specific.

Also applies to: 36-36


138-139: LGTM! Null coalescing for image.

Good use of the null coalescing operator for safe image access.

Comment on lines +48 to +67
{item.image && (
<Box
paddingY={2}
className={cn({
[styles.floatedImage]: item.fullWidthImageInContent !== false,
})}
>
<Image
{...item?.image}
url={
item?.image?.url
? item.image?.url + '?w=1000&fm=webp&q=80'
: ''
}
thumbnail={
item?.image?.url ? item.image?.url + '?w=50&fm=webp&q=80' : ''
}
/>
</Box>
)}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Extract image URL transformation to a utility function.

The image URL transformation logic should be extracted for reusability and maintainability.

Create a new utility function:

+const getOptimizedImageUrl = (url: string, options: { width: number, quality: number }) => {
+  if (!url) return '';
+  return `${url}?w=${options.width}&fm=webp&q=${options.quality}`;
+};

 {item.image && (
   <Box
     paddingY={2}
     className={cn({
       [styles.floatedImage]: item.fullWidthImageInContent !== false,
     })}
   >
     <Image
       {...item?.image}
-      url={
-        item?.image?.url
-          ? item.image?.url + '?w=1000&fm=webp&q=80'
-          : ''
-      }
-      thumbnail={
-        item?.image?.url ? item.image?.url + '?w=50&fm=webp&q=80' : ''
-      }
+      url={getOptimizedImageUrl(item?.image?.url ?? '', { width: 1000, quality: 80 })}
+      thumbnail={getOptimizedImageUrl(item?.image?.url ?? '', { width: 50, quality: 80 })}
     />
   </Box>
 )}

Committable suggestion skipped: line range outside the PR's diff.

@datadog-island-is
Copy link

Datadog Report

All test runs 3f95121 🔗

10 Total Test Services: 0 Failed, 9 Passed
🔻 Test Sessions change in coverage: 1 decreased (-0.01%), 30 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
api 0 0 0 4 0 2.71s 1 no change Link
api-domains-auth-admin 0 0 0 18 0 10.11s 1 no change Link
api-domains-communications 0 0 0 5 0 30.98s 1 no change Link
api-domains-license-service 0 0 0 0 0 523.89ms 1 no change Link
application-system-api 0 0 0 46 0 2m 3.94s 1 no change Link
application-template-api-modules 0 0 0 118 0 2m 4.96s 1 no change Link
cms-translations 0 0 0 3 0 29.42s 1 no change Link
judicial-system-api 0 0 0 61 0 5.43s 1 no change Link
judicial-system-backend 0 0 0 20387 0 18m 33.47s 1 no change Link
services-user-notification 0 0 0 51 0 1m 35.27s 1 decreased (-0.01%) Link

🔻 Code Coverage Decreases vs Default Branch (1)

  • services-user-notification - jest 68.85% (-0.01%) - Details

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 14.28571% with 18 lines in your changes missing coverage. Please review.

Project coverage is 35.65%. Comparing base (af80723) to head (75f2216).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
apps/web/components/GenericList/GenericList.tsx 0.00% 7 Missing ⚠️
apps/web/screens/GenericList/GenericListItem.tsx 0.00% 5 Missing ⚠️
libs/cms/src/lib/models/genericListItem.model.ts 42.85% 4 Missing ⚠️
apps/web/components/NewsCard/NewsCard.tsx 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #17464      +/-   ##
==========================================
- Coverage   35.66%   35.65%   -0.02%     
==========================================
  Files        6941     6946       +5     
  Lines      149144   149253     +109     
  Branches    42650    42678      +28     
==========================================
+ Hits        53193    53211      +18     
- Misses      95951    96042      +91     
Flag Coverage Δ
api 3.35% <ø> (ø)
api-domains-auth-admin 48.49% <ø> (ø)
api-domains-communications 39.48% <42.85%> (+<0.01%) ⬆️
application-system-api 38.76% <42.85%> (+<0.01%) ⬆️
application-template-api-modules 27.73% <42.85%> (-0.01%) ⬇️
cms 0.39% <0.00%> (-0.01%) ⬇️
cms-translations 38.80% <42.85%> (+<0.01%) ⬆️
judicial-system-api 20.23% <ø> (ø)
judicial-system-backend 55.87% <42.85%> (-0.01%) ⬇️
services-user-notification 46.53% <42.85%> (-0.01%) ⬇️
skilavottord-ws 23.97% <ø> (-0.30%) ⬇️
web 2.39% <0.00%> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
apps/web/screens/queries/GenericList.ts 0.00% <ø> (ø)
apps/web/screens/queries/fragments.ts 0.00% <ø> (ø)
apps/web/components/NewsCard/NewsCard.tsx 0.00% <0.00%> (ø)
libs/cms/src/lib/models/genericListItem.model.ts 41.66% <42.85%> (+0.20%) ⬆️
apps/web/screens/GenericList/GenericListItem.tsx 0.00% <0.00%> (ø)
apps/web/components/GenericList/GenericList.tsx 0.00% <0.00%> (ø)

... and 21 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 af80723...75f2216. Read the comment docs.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant