Skip to content

337 sudo new sections#433

Open
Nolab0 wants to merge 5 commits intomainfrom
337-sudo-new-sections
Open

337 sudo new sections#433
Nolab0 wants to merge 5 commits intomainfrom
337-sudo-new-sections

Conversation

@Nolab0
Copy link
Member

@Nolab0 Nolab0 commented Feb 24, 2026

Close #337

@Nolab0 Nolab0 requested a review from supun-io February 24, 2026 15:49
Copy link
Member

@supun-io supun-io left a comment

Choose a reason for hiding this comment

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


namespace App\Api\Sudo\Object;

use App\Entity\Newsletter;
Copy link
Member

Choose a reason for hiding this comment

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

use SudoObjectFactory

@@ -0,0 +1,38 @@
<?php

namespace App\Api\Sudo\Object;
Copy link
Member

Choose a reason for hiding this comment

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

use SudoObjectFactory

@@ -0,0 +1 @@
export const ssr = false;
Copy link
Member

Choose a reason for hiding this comment

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

this should be added to the outest layout of sudo

metadata: Record<string, string> | null;
};

export type SudoNewsletter = {
Copy link
Member

Choose a reason for hiding this comment

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

just Newsletter (follow the above patten)


export type IssueStatus = 'draft' | 'scheduled' | 'sending' | 'sent';

export type SudoIssue = {
Copy link
Member

Choose a reason for hiding this comment

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

just "Issue"


<SplitControl label="Sending profiles">
<span>{stats.sending_profiles_count}</span>
</SplitControl>
Copy link
Member

Choose a reason for hiding this comment

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

Dump Object in a CodeBlock (screenshot from core sudo):

Image

Copy link
Member

Choose a reason for hiding this comment

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

@@ -0,0 +1 @@
export const ssr = false;
Copy link
Member

Choose a reason for hiding this comment

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

add to global level

<SplitControl label="Error (private)">
<TextInput value={issue.error_private} disabled block />
</SplitControl>
{/if}
Copy link
Member

Choose a reason for hiding this comment

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

dump object (see below)

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.

[sudo] new sections

2 participants