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"); const btn = document.getElementById("submitDelegateBtn");
if (btn) { if (btn) {
btn.disabled = true; btn.disabled = true;
btn.textContent = "Minting..."; btn.textContent = "Creating Session...";
} }
try { try {
@ -190,7 +190,7 @@ async function handleDelegateSession(e) {
} finally { } finally {
if (btn) { if (btn) {
btn.disabled = false; 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"); const btn = document.getElementById("submitEventBtn");
if (btn) { if (btn) {
btn.disabled = true; btn.disabled = true;
btn.textContent = "Launching..."; btn.textContent = "Creating Event...";
} }
try { try {
@ -264,7 +264,7 @@ async function handleCreateEvent(e) {
} finally { } finally {
if (btn) { if (btn) {
btn.disabled = false; 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 <button
type="submit" type="submit"
id="submitEventBtn" id="submitEventBtn"
data-on-click="@post('/api/events')"
class="btn-primary" class="btn-primary"
style="min-height: 42px; background: var(--success); border-color: var(--success);" style="min-height: 42px; background: var(--success); border-color: var(--success);"
> >
🎟 Launch Workshop Pass 🎟 Create Event
</button> </button>
<button <button
type="button" type="button"

View File

@ -188,7 +188,7 @@ export const DirectPassDrawerFragment = ({
class="btn-primary" class="btn-primary"
style="min-height: 42px;" style="min-height: 42px;"
> >
Mint & Delegate Session Create Session
</button> </button>
<button <button
type="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" }, { id: "app-1", name: "ed-droid", domain: "ed.atyg.org" },
]; ];
const html = <DirectPassDrawerFragment apps={mockApps} isAdmin />; 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), "ed-droid");
assertStringIncludes(String(html), "1-Click Destination App"); assertStringIncludes(String(html), "1-Click Destination App");
}); });