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: 🎸 [jira: 2572] new card footer for Joule Object Card #706

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

shengxu7
Copy link
Member

No description provided.

@shengxu7 shengxu7 requested a review from a team as a code owner June 12, 2024 23:15
@shengxu7 shengxu7 requested review from billzhou0223 and removed request for a team June 12, 2024 23:15
for (i, subview) in subviews.enumerated() {
let x = cache.frames[i].origin.x + bounds.minX
let y = cache.frames[i].origin.y + bounds.minY
subview.place(at: CGPointMake(x, y),
Copy link

Choose a reason for hiding this comment

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

Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)


/// .compact, .sameAndFill, same size, up to 2 buttons
/// .reguar, .intrinsic, up to 3 buttons
func calculateLayout(proposalWidth: CGFloat?, subViewSizes: [CGSize], hideRect: CGRect, layoutMode: LayoutMode, cache: inout CacheData) {
Copy link

Choose a reason for hiding this comment

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

Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 15 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 60 lines or less excluding comments and whitespace: currently spans 70 lines (function_body_length)

for (i, subview) in subviews.enumerated() {
let x = cache.frames[i].origin.x + bounds.minX
let y = cache.frames[i].origin.y + bounds.minY
subview.place(at: CGPointMake(x, y),
Copy link

Choose a reason for hiding this comment

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

Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)


/// .compact, .sameAndFill, same size, up to 2 buttons
/// .reguar, .intrinsic, up to 3 buttons
func calculateLayout(proposalWidth: CGFloat?, subViewSizes: [CGSize], hideRect: CGRect, layoutMode: LayoutMode, cache: inout CacheData) {
Copy link

Choose a reason for hiding this comment

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

Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 15 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 60 lines or less excluding comments and whitespace: currently spans 70 lines (function_body_length)


/// Sample cards for testing
public static let cardSamples = [sampleCard1, sampleCard13, sampleCard2, sampleCard3, sampleCard4, sampleCard5, sampleCard6, sampleCard7, sampleCard9, sampleCard10, vbCard, sampleCard11, sampleCard8, fullCard]
public static let cardFooterSamples = [sampleCard6, sampleCard16, sampleCard17, sampleCard12, sampleCard13, sampleCard14, sampleCard15, sampleCard20, sampleCard18, sampleCard19]
Copy link

Choose a reason for hiding this comment

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

Missing Docs Violation: public declarations should be documented. (missing_docs)

for (i, subview) in subviews.enumerated() {
let x = cache.frames[i].origin.x + bounds.minX
let y = cache.frames[i].origin.y + bounds.minY
subview.place(at: CGPointMake(x, y),
Copy link

Choose a reason for hiding this comment

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

Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)


/// .compact, .sameAndFill, same size, up to 2 buttons
/// .reguar, .intrinsic, up to 3 buttons
func calculateLayout(proposalWidth: CGFloat?, subViewSizes: [CGSize], hideRect: CGRect, layoutMode: LayoutMode, cache: inout CacheData) {
Copy link

Choose a reason for hiding this comment

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

Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 15 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 60 lines or less excluding comments and whitespace: currently spans 70 lines (function_body_length)

for (i, subview) in subviews.enumerated() {
let x = cache.frames[i].origin.x + bounds.minX
let y = cache.frames[i].origin.y + bounds.minY
subview.place(at: CGPointMake(x, y),
Copy link

Choose a reason for hiding this comment

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

Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)


/// .compact, .sameAndFill, same size, up to 2 buttons
/// .reguar, .intrinsic, up to 3 buttons
func calculateLayout(proposalWidth: CGFloat?, subViewSizes: [CGSize], hideRect: CGRect, layoutMode: LayoutMode, cache: inout CacheData) {
Copy link

Choose a reason for hiding this comment

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

Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 15 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 60 lines or less excluding comments and whitespace: currently spans 70 lines (function_body_length)


/// Sample cards for testing
public static let cardSamples = [sampleCard1, sampleCard13, sampleCard2, sampleCard3, sampleCard4, sampleCard5, sampleCard6, sampleCard7, sampleCard9, sampleCard10, vbCard, sampleCard11, sampleCard8, fullCard]
public static let cardFooterSamples = [sampleCard6, sampleCard16, sampleCard17, sampleCard12, sampleCard13, sampleCard14, sampleCard15, sampleCard20, sampleCard18, sampleCard19]
Copy link

Choose a reason for hiding this comment

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

Missing Docs Violation: public declarations should be documented. (missing_docs)

import Foundation
import SwiftUI

/**
Copy link

Choose a reason for hiding this comment

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

Orphaned Doc Comment Violation: A doc comment should be attached to a declaration. (orphaned_doc_comment)

for (i, subview) in subviews.enumerated() {
let x = cache.frames[i].origin.x + bounds.minX
let y = cache.frames[i].origin.y + bounds.minY
subview.place(at: CGPointMake(x, y),
Copy link

Choose a reason for hiding this comment

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

Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)


/// .compact, .sameAndFill, same size, up to 2 buttons
/// .reguar, .intrinsic, up to 3 buttons
func calculateLayout(proposalWidth: CGFloat?, subViewSizes: [CGSize], hideRect: CGRect, layoutMode: LayoutMode, cache: inout CacheData) {
Copy link

Choose a reason for hiding this comment

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

Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 15 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 60 lines or less excluding comments and whitespace: currently spans 70 lines (function_body_length)


/// Sample cards for testing
public static let cardSamples = [sampleCard1, sampleCard13, sampleCard2, sampleCard3, sampleCard4, sampleCard5, sampleCard6, sampleCard7, sampleCard9, sampleCard10, vbCard, sampleCard11, sampleCard8, fullCard]
public static let cardFooterSamples = [sampleCard6, sampleCard16, sampleCard17, sampleCard12, sampleCard13, sampleCard14, sampleCard15, sampleCard20, sampleCard18, sampleCard19]
Copy link

Choose a reason for hiding this comment

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

Missing Docs Violation: public declarations should be documented. (missing_docs)

import Foundation
import SwiftUI

/**
Copy link

Choose a reason for hiding this comment

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

Orphaned Doc Comment Violation: A doc comment should be attached to a declaration. (orphaned_doc_comment)

import Foundation
import SwiftUI

/**
Copy link

Choose a reason for hiding this comment

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

Orphaned Doc Comment Violation: A doc comment should be attached to a declaration. (orphaned_doc_comment)

@shengxu7 shengxu7 merged commit b6aea46 into SAP:main Jun 13, 2024
11 checks passed
restaurantt pushed a commit to restaurantt/cloud-sdk-ios-fiori that referenced this pull request Jun 14, 2024
* feat: 🎸 [jira: 2572] new card footer for Joule Object Card

* fix: 🐛 [jira: 2572] change the backgroud of popup in footer
@shengxu7 shengxu7 deleted the carfooter branch June 26, 2024 18:19
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.

2 participants