-
-
Notifications
You must be signed in to change notification settings - Fork 2
release: Rework sharing, list copying, and the product action clusters #161
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e695e4d
chore(agents): Make the review skill clean up after itself, on request
OffCrazyFreak 47821af
fix(watchlist): Gate the save button on a parsed schema, not isValid
OffCrazyFreak 9e2e747
docs(state-persistence): Record that isValid is stale after seeding
OffCrazyFreak 0cdf6fb
feat(shopping-lists): Name the copy before creating it
OffCrazyFreak b40d1e7
docs(shopping-lists): Record the editable copy name
OffCrazyFreak 3af9090
style(shopping-lists): Drop the empty-copy hint from the copy modal
OffCrazyFreak e704d9c
fix(shopping-lists): Budget the copy name prefill in UTF-16 units
OffCrazyFreak b2824de
fix(shopping-lists): Gate Kopiraj on a parsed schema, not a stale isV…
OffCrazyFreak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
frontend/src/app/(user)/shopping-lists/components/forms/shopping-list-title-field.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| "use client"; | ||
|
|
||
| import type { Control } from "react-hook-form"; | ||
|
|
||
| import { Input } from "@/components/ui/input"; | ||
| import { | ||
| FormControl, | ||
| FormField, | ||
| FormItem, | ||
| FormLabel, | ||
| FormMessage, | ||
| } from "@/components/ui/form"; | ||
| import type { ShoppingListRequest } from "@/lib/api/types"; | ||
|
|
||
| interface IShoppingListTitleFieldProps { | ||
| control: Control<ShoppingListRequest>; | ||
| /** Off where the field is not the point of the modal, or where it mounts late. */ | ||
| autoFocus?: boolean; | ||
| } | ||
|
|
||
| /** | ||
| * The list name, shared by the create, edit and copy modals so the label, the | ||
| * placeholder and the validation message read the same in all three. | ||
| */ | ||
| export default function ShoppingListTitleField({ | ||
| control, | ||
| autoFocus = true, | ||
| }: IShoppingListTitleFieldProps) { | ||
| return ( | ||
| <FormField | ||
| control={control} | ||
| name="title" | ||
| render={({ field }) => ( | ||
| <FormItem> | ||
| <FormLabel>Naziv popisa</FormLabel> | ||
| <FormControl> | ||
| <Input | ||
| {...field} | ||
| placeholder="Roštilj 01.05.2026." | ||
| autoFocus={autoFocus} | ||
| /> | ||
| </FormControl> | ||
| <FormMessage /> | ||
| </FormItem> | ||
| )} | ||
| /> | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.