Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: margin and disable buttons for invalid forms #57

Merged
merged 3 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/public-impalas-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"specif-ai": patch
---

Margin and disable buttons for invalid forms
10 changes: 6 additions & 4 deletions ui/src/app/pages/edit-solution/edit-solution.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,21 @@ <h1 class="font-semibold">
<div class="flex items-center justify-between mt-4">
<div class="flex-col">
<div class="flex items-center">
<app-multi-upload
*ngIf="mode === 'add'"
class="mr-2"
(fileContent)="handleFileContent($event)"
></app-multi-upload>
<app-button
buttonContent="Enhance with AI"
icon="heroSparklesSolid"
theme="secondary"
size="sm"
rounded="lg"
(click)="updateRequirementWithAI()"
[disabled]="requirementForm.invalid"
></app-button>
</div>
<app-multi-upload
*ngIf="mode === 'add'"
(fileContent)="handleFileContent($event)"
></app-multi-upload>
</div>
<div class="">
<app-button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,21 @@ <h1 class="text-normal font-semibold mb-4">
<div class="flex items-center justify-between mt-4">
<div class="flex-col">
<div class="flex items-center">
<app-multi-upload
*ngIf="mode === 'add'"
class="mr-2"
(fileContent)="handleFileContent($event)"
></app-multi-upload>
<app-button
buttonContent="Enhance with AI"
icon="heroSparklesSolid"
theme="secondary"
size="sm"
rounded="lg"
(click)="updateUserStoryWithAI()"
[disabled]="userStoryForm.invalid"
></app-button>
</div>

<app-multi-upload
*ngIf="mode === 'add'"
(fileContent)="handleFileContent($event)"
></app-multi-upload>
</div>
<div class="">
<app-button
Expand Down
12 changes: 6 additions & 6 deletions ui/src/app/pages/tasks/add-task/add-task.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,19 @@ <h1 class="text-normal font-semibold mb-4">

<div class="flex items-center justify-between mt-4">
<div class="flex items-center">
<app-multi-upload
*ngIf="mode === 'add'"
class="mr-2"
(fileContent)="handleFileContent($event)"
/>
<app-button
buttonContent="Enhance with AI"
icon="heroSparklesSolid"
theme="secondary"
size="sm"
rounded="lg"
(click)="editTaskWithAI()"
[disabled]="taskForm.invalid"
></app-button>
</div>
<div class="flex items-center">
Expand All @@ -91,12 +97,6 @@ <h1 class="text-normal font-semibold mb-4">
/>
</div>
</div>
<div class="flex items-center justify-start">
<app-multi-upload
*ngIf="mode === 'add'"
(fileContent)="handleFileContent($event)"
/>
</div>
</form>
</div>
<div *ngIf="mode !== 'add'" class="space-y-4 h-full lg:col-span-1">
Expand Down