mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
update ui
This commit is contained in:
@@ -117,9 +117,6 @@ export default function SponsorsSection() {
|
||||
<div className="border-border border-b bg-muted/20 px-3 py-2">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-primary text-xs">▶</span>
|
||||
<span className="truncate font-mono font-semibold text-xs">
|
||||
[SPONSOR_{String(index + 1).padStart(3, "0")}]
|
||||
</span>
|
||||
<div className="ml-auto flex items-center gap-2 text-muted-foreground text-xs">
|
||||
<span>{entry.isOneTime ? "ONE-TIME" : "MONTHLY"}</span>
|
||||
<span>•</span>
|
||||
|
||||
@@ -319,6 +319,20 @@ const analyzeStackCompatibility = (stack: StackState): CompatibilityResult => {
|
||||
}
|
||||
if (nextStack.api === "none" && (isConvex || isBackendNone)) {
|
||||
} else if (nextStack.api === "none" && !(isConvex || isBackendNone)) {
|
||||
if (nextStack.examples.length > 0) {
|
||||
notes.api.notes.push("API 'None' selected: Examples will be removed.");
|
||||
notes.examples.notes.push(
|
||||
"Examples require an API. They will be removed when API is 'None'.",
|
||||
);
|
||||
notes.api.hasIssue = true;
|
||||
notes.examples.hasIssue = true;
|
||||
nextStack.examples = [];
|
||||
changed = true;
|
||||
changes.push({
|
||||
category: "api",
|
||||
message: "Examples removed (API 'None' does not support examples)",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (nextStack.database === "none") {
|
||||
@@ -1283,6 +1297,17 @@ const StackBuilder = () => {
|
||||
"Disabled: This example requires a web frontend.",
|
||||
);
|
||||
}
|
||||
if (
|
||||
stack.api === "none" &&
|
||||
!rules.isConvex &&
|
||||
!rules.isBackendNone
|
||||
) {
|
||||
addRule(
|
||||
category,
|
||||
techId,
|
||||
"Disabled: Examples require an API. Cannot be selected when API is 'None'.",
|
||||
);
|
||||
}
|
||||
if (
|
||||
stack.database === "none" &&
|
||||
techId === "todo" &&
|
||||
|
||||
@@ -178,7 +178,7 @@ export default function Testimonials() {
|
||||
onClick={handlePrev}
|
||||
disabled={currentPage === 1}
|
||||
className={cn(
|
||||
"terminal-block-hover flex items-center gap-1.5 rounded border border-border bg-background px-3 py-1.5 font-mono text-xs transition-colors",
|
||||
"terminal-block-hover hidden items-center gap-1.5 rounded border border-border bg-background px-3 py-1.5 font-mono text-xs transition-colors sm:flex",
|
||||
currentPage === 1
|
||||
? "cursor-not-allowed opacity-50"
|
||||
: "hover:bg-muted/50",
|
||||
@@ -225,7 +225,7 @@ export default function Testimonials() {
|
||||
onClick={handleNext}
|
||||
disabled={currentPage === totalPages}
|
||||
className={cn(
|
||||
"terminal-block-hover flex items-center gap-1.5 rounded border border-border bg-background px-3 py-1.5 font-mono text-xs transition-colors",
|
||||
"terminal-block-hover hidden items-center gap-1.5 rounded border border-border bg-background px-3 py-1.5 font-mono text-xs transition-colors sm:flex",
|
||||
currentPage === totalPages
|
||||
? "cursor-not-allowed opacity-50"
|
||||
: "hover:bg-muted/50",
|
||||
|
||||
Reference in New Issue
Block a user