
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
@djangocfg/ext-support
Advanced tools
Customer support and ticketing system extension for DjangoCFG.
Part of DjangoCFG — modern Django framework for production-ready SaaS applications.
pnpm add @djangocfg/ext-support
import { SupportExtensionProvider } from '@djangocfg/ext-support/hooks';
export default function RootLayout({ children }) {
return (
<SupportExtensionProvider>
{children}
</SupportExtensionProvider>
);
}
import { useSupportContext } from '@djangocfg/ext-support/hooks';
function ContactSupport() {
const { createTicket, isCreatingTicket } = useSupportContext();
const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
const formData = new FormData(e.currentTarget);
await createTicket({
subject: formData.get('subject') as string,
description: formData.get('description') as string,
category: 'technical',
priority: 'medium',
});
};
return (
<form onSubmit={handleSubmit}>
<input name="subject" placeholder="Subject" required />
<textarea name="description" placeholder="Describe your issue" required />
<button type="submit" disabled={isCreatingTicket}>
{isCreatingTicket ? 'Submitting...' : 'Submit Ticket'}
</button>
</form>
);
}
import { useSupportContext } from '@djangocfg/ext-support/hooks';
function TicketsPage() {
const { tickets, isLoadingTickets, updateTicket } = useSupportContext();
const handleStatusChange = async (ticketId: string, status: string) => {
await updateTicket(ticketId, { status });
};
return (
<div>
<h2>Support Tickets</h2>
{tickets.map(ticket => (
<div key={ticket.id}>
<h3>{ticket.subject}</h3>
<p>{ticket.description}</p>
<span>Status: {ticket.status}</span>
<span>Priority: {ticket.priority}</span>
<select
value={ticket.status}
onChange={(e) => handleStatusChange(ticket.id, e.target.value)}
>
<option value="open">Open</option>
<option value="in_progress">In Progress</option>
<option value="resolved">Resolved</option>
<option value="closed">Closed</option>
</select>
</div>
))}
</div>
);
}
import { useSupportContext } from '@djangocfg/ext-support/hooks';
function TicketDetails({ ticketId }: { ticketId: string }) {
const { getTicketById, addComment } = useSupportContext();
const [ticket, setTicket] = useState(null);
useEffect(() => {
getTicketById(ticketId).then(setTicket);
}, [ticketId]);
const handleAddComment = async (text: string) => {
await addComment(ticketId, {
text,
is_internal: false,
});
// Refresh ticket
getTicketById(ticketId).then(setTicket);
};
if (!ticket) return <div>Loading...</div>;
return (
<div>
<h2>{ticket.subject}</h2>
<p>{ticket.description}</p>
<div>
<h3>Comments</h3>
{ticket.comments?.map(comment => (
<div key={comment.id}>
<strong>{comment.author}</strong>
<p>{comment.text}</p>
<span>{new Date(comment.created_at).toLocaleString()}</span>
</div>
))}
</div>
<textarea
placeholder="Add a comment..."
onKeyDown={(e) => {
if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault();
handleAddComment(e.currentTarget.value);
e.currentTarget.value = '';
}
}}
/>
</div>
);
}
import { useSupportContext } from '@djangocfg/ext-support/hooks';
function TicketFilters() {
const { tickets, filterTickets } = useSupportContext();
const handleFilter = (status: string) => {
filterTickets({ status });
};
return (
<div>
<button onClick={() => handleFilter('open')}>
Open ({tickets.filter(t => t.status === 'open').length})
</button>
<button onClick={() => handleFilter('in_progress')}>
In Progress ({tickets.filter(t => t.status === 'in_progress').length})
</button>
<button onClick={() => handleFilter('resolved')}>
Resolved ({tickets.filter(t => t.status === 'resolved').length})
</button>
</div>
);
}
tickets - List of all ticketscreateTicket(data) - Create new ticketupdateTicket(id, data) - Update ticketdeleteTicket(id) - Delete ticketgetTicketById(id) - Get ticket detailsaddComment(ticketId, data) - Add comment to ticketassignTicket(ticketId, agentId) - Assign ticket to agentcloseTicket(id) - Close ticketreopenTicket(id) - Reopen closed ticketfilterTickets(filters) - Filter tickets by criteriaisLoadingTickets - Loading stateisCreatingTicket - Creation stateinterface Ticket {
id: string;
subject: string;
description: string;
status: 'open' | 'in_progress' | 'resolved' | 'closed';
priority: 'low' | 'medium' | 'high' | 'urgent';
category: string;
assigned_to?: string;
created_at: string;
updated_at: string;
comments?: Comment[];
}
MIT
FAQs
Support ticket system extension for DjangoCFG
We found that @djangocfg/ext-support demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.