Skip to content

OFCP-1186 & OFCP-1183 Refactoring#14

Merged
scolastico merged 5 commits into
mainfrom
OFCP-1186-and-OFCP-1183-refactoring
Mar 31, 2026
Merged

OFCP-1186 & OFCP-1183 Refactoring#14
scolastico merged 5 commits into
mainfrom
OFCP-1186-and-OFCP-1183-refactoring

Conversation

@scolastico
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

@ddomroese ddomroese left a comment

Choose a reason for hiding this comment

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

DIe grundstruktur sieht für mich sauber und schlüssig aus. Unit tests sollten am ende des refactorings hinzugefügt werden, da das SDK keine Kernsoftware von uns ist.

Comment thread src/messages/in/DestroyFullScreen.ts Outdated
* Incoming request from the iframe to destroy the full screen ui (aka AppWidget)
*/
export const InMessageDestroyFullScreen = defineMessage<void>('destroy-full-screen', (e, sdk) => {
sdk.closeFullScreen(true);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ich würde hier einen anderen namen für die funktion wählen. kann gerne auch nur ein wrapper sein, der intern sdk.closeFullScreen(true); aufruft

Comment thread src/messages/out/FullScreenClosed.ts Outdated
/**
* Outgoing message to notify the iframe that the full screen ui has been closed
*/
export const OutMessageFullScreenClosed = defineMessage<void>('full-screen-closed');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

muss hier evtl unterschieden werden zwischen FullScreen Closed und Destroyed?

Comment thread src/TecsafeWidgetSDK.ts Outdated
@@ -133,21 +127,74 @@ export class TecsafeApi {
public closeFullScreen(destroy = false): void {
Copy link
Copy Markdown

@ddomroese ddomroese Feb 2, 2026

Choose a reason for hiding this comment

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

closeFullScreen in zwei Funktionen trennen Close und Destroy trennen

Comment thread src/types/BaseWidget.ts Outdated
}

/**
* Hides the widget, without destroying it
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove duplicated typedoc annotation


/**
* The base URL for the widget UIs
*/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

add todo to exchange when needed. Kein muss

Comment thread src/util/Logger.ts Outdated
*
* @param logLevel - The desired logging severity level.
*/
setLogLevel(logLevel: 'mute' | 'error' | 'warn' | 'info' | 'debug'): void {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Log Level als enum hinterlegen

Comment thread src/widget/AppWidget.ts Outdated
Logger.getInstance().error(
'Widget',
String(this.el),
'cannot load url',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Check for CORS Message.

Comment thread src/TecsafeWidgetSDK.ts Outdated
SingleAddToCartHandler,
} from './types/AddToCardHandler'

// import { parseCustomerJwt } from '@tecsafe/jwt-sdk'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove this code artifact

@scolastico scolastico marked this pull request as ready for review March 31, 2026 03:56
@scolastico scolastico merged commit c37ce40 into main Mar 31, 2026
1 check passed
@scolastico scolastico deleted the OFCP-1186-and-OFCP-1183-refactoring branch March 31, 2026 04:09
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