fix(ui): align create button terminology with ui-audit specifications (Create Session & Create Event)

This commit is contained in:
Tyler Gillispie 2026-08-27 22:06:01 -07:00
parent cd2dd194ec
commit ed9bdb8852
4 changed files with 7 additions and 8 deletions

View File

@ -154,7 +154,7 @@ async function handleDelegateSession(e) {
const btn = document.getElementById("submitDelegateBtn");
if (btn) {
btn.disabled = true;
btn.textContent = "Minting...";
btn.textContent = "Creating Session...";
}
try {
@ -190,7 +190,7 @@ async function handleDelegateSession(e) {
} finally {
if (btn) {
btn.disabled = false;
btn.textContent = "Mint & Delegate Session";
btn.textContent = "Create Session";
}
}
}
@ -217,7 +217,7 @@ async function handleCreateEvent(e) {
const btn = document.getElementById("submitEventBtn");
if (btn) {
btn.disabled = true;
btn.textContent = "Launching...";
btn.textContent = "Creating Event...";
}
try {
@ -264,7 +264,7 @@ async function handleCreateEvent(e) {
} finally {
if (btn) {
btn.disabled = false;
btn.textContent = "🎟️ Launch Workshop Pass";
btn.textContent = "🎟️ Create Event";
}
}
}

View File

@ -181,11 +181,10 @@ export const WorkshopPassDrawerFragment = ({ apps }: { apps: any[] }) => {
<button
type="submit"
id="submitEventBtn"
data-on-click="@post('/api/events')"
class="btn-primary"
style="min-height: 42px; background: var(--success); border-color: var(--success);"
>
🎟 Launch Workshop Pass
🎟 Create Event
</button>
<button
type="button"

View File

@ -188,7 +188,7 @@ export const DirectPassDrawerFragment = ({
class="btn-primary"
style="min-height: 42px;"
>
Mint & Delegate Session
Create Session
</button>
<button
type="button"

View File

@ -79,7 +79,7 @@ Deno.test("[Sessions] DirectPassDrawerFragment renders options and form", () =>
{ id: "app-1", name: "ed-droid", domain: "ed.atyg.org" },
];
const html = <DirectPassDrawerFragment apps={mockApps} isAdmin />;
assertStringIncludes(String(html), "Mint &amp; Delegate Session");
assertStringIncludes(String(html), "Create Session");
assertStringIncludes(String(html), "ed-droid");
assertStringIncludes(String(html), "1-Click Destination App");
});