Refine creation tab UX, generation flow, and bindings

Large changes across frontend, backend and docs to align creation-tab and generation-page behavior with new product UI/UX and Spacetime bindings. Updated hermes decision-log and pitfalls with concrete rules (banner carousel, font sizing, unread-dot tokens, template-card layout, direct card->entry routing, separation of account balance vs prize pools, removal of global page card shell, generation progress milestones and unified circular progress, and background video handling). Added GenerationProgressHero component and media assets, plus generation-related UI/tests updates (CustomWorldGenerationView, BarkBattleGeneratingView, creation hub/cards, platform entry routing, index tests). Backend and contract updates include new category fields in admin API types and admin UI form/list, spacetime-client/module/migration changes and generated bindings script. Misc: many tests adjusted, new docs and plan files added, and several server-rs crate changes to support the updated creation/ generation workflows.
This commit is contained in:
2026-05-25 00:41:30 +08:00
parent 2ba4691bc0
commit 50a0d6f982
75 changed files with 5533 additions and 1101 deletions

View File

@@ -571,6 +571,8 @@ body {
--platform-button-danger-border: rgba(185, 75, 58, 0.22);
--platform-button-danger-fill: rgba(255, 237, 229, 0.94);
--platform-button-danger-text: #a6402f;
--platform-unread-dot-fill: #8b5a3d;
--platform-unread-dot-glow: rgba(139, 90, 61, 0.34);
--platform-success-border: rgba(73, 144, 96, 0.24);
--platform-success-bg: rgba(237, 248, 239, 0.92);
--platform-success-text: #2f7b46;
@@ -837,6 +839,8 @@ body {
--platform-button-danger-border: rgba(251, 113, 133, 0.2);
--platform-button-danger-fill: rgba(244, 63, 94, 0.1);
--platform-button-danger-text: rgb(255 228 230);
--platform-unread-dot-fill: #d6a27c;
--platform-unread-dot-glow: rgba(214, 162, 124, 0.24);
--platform-success-border: rgba(52, 211, 153, 0.24);
--platform-success-bg: rgba(16, 185, 129, 0.1);
--platform-success-text: rgb(220 252 231);
@@ -1469,6 +1473,32 @@ html[data-mobile-keyboard-open='true'] .platform-mobile-bottom-dock {
gap: 0.72rem;
}
.platform-mobile-home-channel {
position: relative;
min-height: 2rem;
border: 0;
background: transparent;
color: var(--platform-text-soft);
font-size: 0.92rem;
font-weight: 700;
white-space: nowrap;
}
.platform-mobile-home-channel--active {
color: var(--platform-text-strong);
}
.platform-mobile-home-channel--active::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0.1rem;
height: 0.16rem;
border-radius: 9999px;
background: var(--platform-warm-text);
}
.platform-category-filter-row {
display: flex;
min-width: 0;
@@ -2119,10 +2149,10 @@ html[data-mobile-keyboard-open='true'] .platform-mobile-bottom-dock {
width: 0.6rem;
height: 0.6rem;
border-radius: 9999px;
background: #b64a35;
background: var(--platform-unread-dot-fill);
box-shadow:
0 0 0 3px rgba(255, 255, 255, 0.26),
0 0 12px rgba(239, 68, 68, 0.68);
0 0 12px var(--platform-unread-dot-glow);
}
@keyframes creation-work-card-spinner {
@@ -2626,10 +2656,10 @@ html[data-mobile-keyboard-open='true'] .platform-mobile-bottom-dock {
width: 0.48rem;
height: 0.48rem;
border-radius: 9999px;
background: #b64a35;
background: var(--platform-unread-dot-fill);
box-shadow:
0 0 0 2px rgba(255, 255, 255, 0.28),
0 0 12px rgba(239, 68, 68, 0.72);
0 0 12px var(--platform-unread-dot-glow);
}
.platform-bottom-nav__label,
@@ -4689,6 +4719,11 @@ html[data-mobile-keyboard-open='true'] .platform-mobile-bottom-dock {
max-width: calc(100vw - 1rem);
}
.platform-profile-page {
overflow: visible;
padding-bottom: calc(var(--platform-bottom-dock-outer-height) + 0.35rem);
}
.platform-mobile-home-stage .platform-surface--hero {
max-width: 100%;
}
@@ -5632,6 +5667,587 @@ html[data-mobile-keyboard-open='true'] .platform-mobile-bottom-dock {
filter: brightness(1.02);
}
.platform-profile-page {
gap: 0.75rem;
}
.platform-profile-header {
position: relative;
overflow: hidden;
padding: 1.05rem 0.95rem 0.9rem;
border: 1px solid rgba(255, 255, 255, 0.62);
border-radius: 1.8rem;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.96),
rgba(250, 241, 232, 0.93)
);
box-shadow: 0 20px 50px rgba(112, 57, 30, 0.12);
}
.platform-profile-header__actions {
position: absolute;
right: 0.8rem;
top: 0.72rem;
z-index: 2;
display: flex;
align-items: center;
gap: 0.85rem;
}
.platform-profile-header__icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.2rem;
height: 2.2rem;
border: 0;
border-radius: 9999px;
background: transparent;
color: #1e120c;
}
.platform-profile-scene-decor {
position: absolute;
right: 0.15rem;
bottom: 0.1rem;
width: min(44vw, 12rem);
max-width: 12rem;
opacity: 0.98;
pointer-events: none;
user-select: none;
}
.platform-profile-header__identity {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 0.75rem;
min-width: 0;
padding-top: 2.6rem;
padding-right: 6.75rem;
}
.platform-profile-edit-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.85rem;
height: 1.85rem;
border: 1px solid rgba(210, 185, 166, 0.7);
border-radius: 9999px;
background: rgba(255, 255, 255, 0.78);
color: #6e5a4e;
}
.platform-profile-copy-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 1.8rem;
padding: 0 0.78rem;
border: 1px solid rgba(230, 192, 160, 0.9);
border-radius: 9999px;
background: rgba(255, 252, 248, 0.9);
color: #7f4f31;
font-size: 11px;
font-weight: 700;
}
.platform-profile-membership-card {
position: relative;
display: flex;
align-items: center;
gap: 0.85rem;
width: 100%;
min-height: 6.7rem;
padding: 1rem 1rem 1rem 0.95rem;
border: 0;
border-radius: 1.55rem;
background: linear-gradient(135deg, #eaa06a, #cf7a4a 58%, #b55c3b);
color: white;
text-align: left;
box-shadow: 0 18px 38px rgba(189, 103, 60, 0.22);
}
.platform-profile-membership-card__badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 4rem;
height: 4rem;
flex: none;
border-radius: 1.1rem;
background: rgba(255, 245, 233, 0.26);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.platform-profile-membership-card__crown {
width: 1.9rem;
height: 1.9rem;
}
.platform-profile-membership-card__action {
flex: none;
padding: 0.92rem 1.05rem;
border: 1px solid rgba(255, 250, 244, 0.88);
border-radius: 9999px;
color: white;
font-size: 13px;
font-weight: 700;
}
.platform-profile-stats-panel,
.platform-profile-shortcut-panel,
.platform-profile-settings-panel,
.platform-profile-legal-strip {
overflow: hidden;
border: 1px solid rgba(235, 221, 208, 0.82);
border-radius: 1.45rem;
background: rgba(255, 255, 255, 0.74);
box-shadow: 0 10px 28px rgba(112, 57, 30, 0.06);
}
.platform-profile-stats-panel {
padding: 1rem 0.9rem;
}
.platform-profile-stat-card {
display: flex;
min-width: 0;
border: 0;
border-radius: 1rem;
background: transparent;
}
.platform-profile-stat-card__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.8rem;
height: 2.8rem;
flex: none;
border-radius: 9999px;
background: rgba(255, 243, 230, 0.9);
color: #bc5f34;
}
.platform-profile-daily-task-card {
display: flex;
align-items: center;
gap: 0.85rem;
width: 100%;
min-height: 8rem;
padding: 1rem 1rem 1rem 1.05rem;
border: 1px solid rgba(235, 221, 208, 0.82);
border-radius: 1.55rem;
background: rgba(255, 250, 246, 0.9);
text-align: left;
box-shadow: 0 10px 28px rgba(112, 57, 30, 0.06);
}
.platform-profile-daily-task-card__track {
display: inline-flex;
width: 9rem;
height: 0.45rem;
overflow: hidden;
border-radius: 9999px;
background: rgba(240, 226, 214, 0.88);
}
.platform-profile-daily-task-card__bar {
width: 0;
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, #e47631, #ce5f2a);
}
.platform-profile-daily-task-card__mascot {
width: 7.4rem;
height: auto;
align-self: end;
margin-bottom: -0.2rem;
}
.platform-profile-daily-task-card__action {
flex: none;
padding: 0.85rem 1.15rem;
border-radius: 9999px;
background: linear-gradient(135deg, #f08b44, #e56a27);
color: white;
font-size: 14px;
font-weight: 700;
box-shadow: 0 12px 24px rgba(229, 106, 39, 0.24);
}
.platform-profile-shortcut-panel {
padding: 0.95rem 0.85rem 1rem;
}
.platform-profile-shortcut-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 0.25rem;
}
.platform-profile-shortcut-button {
border: 0;
border-radius: 0.95rem;
background: transparent;
}
.platform-profile-shortcut-button__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.65rem;
height: 2.65rem;
border-radius: 9999px;
background: linear-gradient(
135deg,
rgba(255, 239, 226, 0.96),
rgba(245, 202, 166, 0.92)
);
box-shadow: 0 10px 20px rgba(201, 123, 73, 0.15);
color: #c76a38;
}
.platform-profile-secondary-shortcuts {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
}
.platform-profile-secondary-shortcut {
border: 1px solid rgba(232, 214, 201, 0.82);
background: rgba(255, 252, 248, 0.96);
color: var(--platform-text-strong);
box-shadow: 0 8px 18px rgba(112, 57, 30, 0.05);
}
.platform-profile-secondary-shortcut__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.9rem;
height: 1.9rem;
flex: none;
border-radius: 9999px;
background: rgba(255, 237, 222, 0.95);
color: #bf673b;
}
.platform-profile-settings-panel {
padding: 0.2rem 0;
}
.platform-profile-settings-row {
border: 0;
background: transparent;
}
.platform-profile-settings-row + .platform-profile-settings-row {
border-top: 1px solid rgba(235, 221, 208, 0.82);
}
.platform-profile-settings-row__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.35rem;
height: 2.35rem;
flex: none;
border-radius: 9999px;
background: rgba(255, 245, 234, 0.95);
color: #3b2a20;
}
.platform-profile-legal-strip {
padding: 0.55rem 0.75rem 0.8rem;
text-align: center;
}
.platform-profile-legal-strip__links {
display: flex;
align-items: stretch;
justify-content: center;
gap: 0;
}
.platform-profile-legal-strip__link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.2rem 0.35rem;
border: 0;
background: transparent;
color: var(--platform-text-strong);
font-size: 13px;
font-weight: 500;
}
.platform-profile-legal-strip__divider {
width: 1px;
margin: 0.2rem 0.45rem;
background: rgba(229, 206, 190, 0.88);
}
.platform-profile-legal-strip__record {
display: block;
margin-top: 0.35rem;
color: #6e6a67;
font-size: 12px;
font-weight: 500;
}
@media (max-width: 639px) {
.platform-profile-page {
gap: 0.82rem;
}
.platform-profile-header {
padding: 0.95rem 0.85rem 0.82rem;
border-radius: 1.4rem;
}
.platform-profile-header__actions {
right: 0.64rem;
top: 0.6rem;
gap: 0.5rem;
}
.platform-profile-header__identity {
padding-top: 2.45rem;
padding-right: 4.9rem;
}
.platform-profile-header__identity-row {
align-items: flex-start;
gap: 0.78rem;
}
.platform-profile-header__text {
min-width: 0;
flex: 1 1 auto;
}
.platform-profile-header__name {
font-size: clamp(1rem, 4.8vw, 1.2rem);
line-height: 1.15;
}
.platform-profile-header__code {
margin-top: 0.55rem;
font-size: 11px;
line-height: 1.4;
}
.platform-profile-header__icon-button {
width: 1.78rem;
height: 1.78rem;
}
.platform-profile-scene-decor {
right: -0.08rem;
bottom: 0;
width: min(39vw, 8.8rem);
}
.platform-profile-membership-card {
min-height: 5.85rem;
padding: 0.78rem 0.82rem;
gap: 0.72rem;
}
.platform-profile-membership-card__badge {
width: 3.2rem;
height: 3.2rem;
}
.platform-profile-membership-card__title {
font-size: 1rem;
}
.platform-profile-membership-card__subtitle {
margin-top: 0.4rem;
font-size: 12px;
line-height: 1.45;
}
.platform-profile-membership-card__action {
padding: 0.64rem 0.78rem;
font-size: 11px;
}
.platform-profile-stats-panel,
.platform-profile-shortcut-panel,
.platform-profile-settings-panel,
.platform-profile-legal-strip {
border-radius: 1.12rem;
}
.platform-profile-stats-panel {
padding: 0.72rem 0.66rem;
}
.platform-profile-stats-grid {
gap: 0.45rem;
}
.platform-profile-stat-card {
min-height: 4.95rem;
align-items: center;
gap: 0.56rem;
padding: 0.55rem 0.42rem;
}
.platform-profile-stat-card__icon {
width: 2.35rem;
height: 2.35rem;
}
.platform-profile-stat-card__value {
font-size: 0.95rem;
line-height: 1.08;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.platform-profile-stat-card__label {
margin-top: 0.22rem;
font-size: 11px;
line-height: 1.18;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.platform-profile-daily-task-card {
min-height: 6.55rem;
padding: 0.8rem 0.8rem 0.8rem 0.86rem;
border-radius: 1.12rem;
gap: 0.7rem;
}
.platform-profile-daily-task-card__track {
width: min(7rem, 52vw);
}
.platform-profile-daily-task-card__mascot {
width: min(5.2rem, 24vw);
}
.platform-profile-daily-task-card__title {
font-size: 14px;
}
.platform-profile-daily-task-card__desc {
margin-top: 0.45rem;
font-size: 12px;
line-height: 1.42;
}
.platform-profile-daily-task-card__progress {
margin-top: 0.55rem;
gap: 0.55rem;
}
.platform-profile-daily-task-card__progress-value {
font-size: 12px;
}
.platform-profile-shortcut-panel {
padding: 0.78rem 0.66rem 0.8rem;
}
.platform-profile-shortcut-grid {
gap: 0.12rem;
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.platform-profile-shortcut-button {
min-height: 4.35rem;
padding: 0.48rem 0.08rem 0.52rem;
}
.platform-profile-shortcut-button__label {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
font-size: 12px;
line-height: 1.15;
white-space: normal;
}
.platform-profile-shortcut-button__sub-label {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
font-size: 10px;
line-height: 1.2;
white-space: nowrap;
}
.platform-profile-shortcut-button__icon {
width: 2.12rem;
height: 2.12rem;
}
.platform-profile-settings-panel {
padding: 0.2rem 0;
}
.platform-profile-settings-row {
padding: 0.72rem 0.8rem;
}
.platform-profile-settings-row__icon {
width: 2.1rem;
height: 2.1rem;
}
.platform-profile-settings-row span:last-child {
font-size: 14px;
}
.platform-profile-legal-strip {
padding: 0.5rem 0.52rem 0.68rem;
}
.platform-profile-legal-strip__links {
flex-wrap: wrap;
}
.platform-profile-legal-strip__link {
font-size: 11px;
line-height: 1.3;
}
.platform-profile-legal-strip__record {
font-size: 10px;
}
.platform-mobile-create-wallet-chip {
max-width: min(48vw, 10rem);
}
.platform-mobile-create-wallet-chip > span:last-child {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.platform-mobile-create-wallet-chip,
.platform-desktop-create-wallet-chip {
min-width: 0;
}
}
.platform-role-studio__preview {
border: 1px solid var(--platform-subpanel-border);
background: radial-gradient(