-
-
Notifications
You must be signed in to change notification settings - Fork 19
feat(event): implement preview with drafts #1739
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
Open
huzaifaedhi22
wants to merge
103
commits into
main
Choose a base branch
from
feat/invitation/eventpreview
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
103 commits
Select commit
Hold shift + click to select a range
f48e617
chore(primevue):add primevue to project (draft)
huzaifaedhi22 28dd7a0
Revert "chore(primevue):add primevue to project (draft)"
huzaifaedhi22 c26354e
feat(shadcn): add stepper and dropdown from shadcn
huzaifaedhi22 5f3d695
feat: create components for invitation steps
huzaifaedhi22 e872b07
feat: add eventform composable
huzaifaedhi22 4e9fdbe
feat: add stepper to create event page
huzaifaedhi22 d640db4
feat(primary settings): implement primary settings stepper component
huzaifaedhi22 314bb74
fix(event invite) : fix stepper next button usage
huzaifaedhi22 13ba0e4
feat(validation) : handle validation of all steps using single source…
huzaifaedhi22 413bde7
chore(shadcn): add missing dropdown component
huzaifaedhi22 f96ffd5
feat(shadcn-calendar): modify and add shadcn calendar
huzaifaedhi22 3a206ab
feat(shadcn): add shadcn popover
huzaifaedhi22 5342d89
feat(step2): implement invitation flow step 2 component
huzaifaedhi22 8250d91
chore(shadcn):add shadcn button
huzaifaedhi22 af6a3f9
feat(component): create event time picker component for step 2 flow
huzaifaedhi22 4a44961
feat(step2): refactor parent components to include step 2 flow
huzaifaedhi22 1729506
chore(comments):remove comments
huzaifaedhi22 59ae889
feat(stepper): add event details component
huzaifaedhi22 c620da6
feat(event details): add event details validation
huzaifaedhi22 a294a7c
feat(event details): modify parent component
huzaifaedhi22 3a1a626
chore(shadcn) - rename shadcn button export
huzaifaedhi22 97bc136
feat(tailwind): add colors
huzaifaedhi22 ef58067
feat(shadcn) : add radio group component
huzaifaedhi22 4b46569
feat(stepper): add visibility and cover component
huzaifaedhi22 b28fc3e
fix(stepper): minor design fixes
huzaifaedhi22 f29710c
chore: add internationalized package
huzaifaedhi22 5b92946
feat(cover-step): enable image upload
huzaifaedhi22 866c4b2
chore : update package.json
huzaifaedhi22 217bfc0
fix: remove event format from primary settings stepper
huzaifaedhi22 bf9dd44
feat: add event categories query
huzaifaedhi22 8718709
refactor: reduce address to a single field
huzaifaedhi22 bb25d6c
fix: add length and website validator
huzaifaedhi22 ced2792
refactor: remove unused fields temporarily
huzaifaedhi22 92d818e
fix: add lockfile
huzaifaedhi22 b0c1772
fix : sync lock file
huzaifaedhi22 6da1237
chore: add synced package.json files and gql files
huzaifaedhi22 efa5e75
fix: lock file
huzaifaedhi22 ed6cdf5
feat: add event preview as step 6
huzaifaedhi22 56cc799
feat: add preview step skeleton
huzaifaedhi22 cf8da75
feat: setup event storage strategy
huzaifaedhi22 7d1d6be
feat(savedraft):add savedraft functionality
huzaifaedhi22 a2c5d1f
feat(savedraft):add savedraft functionality
huzaifaedhi22 f7d44c3
fix:exclude account details from browser storage
huzaifaedhi22 c5da088
chore(shad-cn): add shadcn carousel component
huzaifaedhi22 04f0c84
feat: show event images in event preview
huzaifaedhi22 35b3d6e
feat(event-draft): implement save as draft feature for events
huzaifaedhi22 7aa7518
chore: remove console logs
huzaifaedhi22 dcf014c
fix(sync):rebase branch over main
huzaifaedhi22 5e1d1b1
fix(step-1): update design for dark mode
huzaifaedhi22 3da4586
chore(shadcn):update shadcn components
huzaifaedhi22 44d2dce
chore(app.css):merge colors from old tailwind config
huzaifaedhi22 9b372f1
refactor(date-location): improve date location step layout
huzaifaedhi22 f940385
fix(translation): use count as a variable
huzaifaedhi22 bfde40e
fix(cover):implement dark mode for cover step
huzaifaedhi22 18400c5
fix(style): input field style
huzaifaedhi22 7ff6998
refactor(preview): update preview design with new variables
huzaifaedhi22 3b9efa9
refactor(event-form-type): use event form type instead
huzaifaedhi22 c932340
feat(button-colored): use new styles in ButtonColored
huzaifaedhi22 f7f5358
refactor(calendar): improve visibility in dark mode
huzaifaedhi22 3dc907c
fix(drafts): sync drafts implementation with updates from main
huzaifaedhi22 8cd29ad
refactor(stepper): complete stepper implementation
huzaifaedhi22 63c497c
refactor(storage): file moved to types
huzaifaedhi22 da5ee1d
refactor(imports): update import
huzaifaedhi22 43f8b03
feat(published): add published screen
huzaifaedhi22 dc50fcd
chore(social-icons): add social icons
huzaifaedhi22 de8993b
feat(header-title): allow adding title to top nav bar
huzaifaedhi22 2c2573d
fix(preview): make preview a route instead of a step
huzaifaedhi22 d463c8b
fix(preview):remove preview from stepper
huzaifaedhi22 e5e1bd5
chore(tailwind): update colors
huzaifaedhi22 9c1e1c0
refactor(styles): update header dynamically for event creation
huzaifaedhi22 cab0326
feat(form): use store to manage form
huzaifaedhi22 3b91fda
refactor(rebasing): part of rebasing sync
huzaifaedhi22 82ef6fc
chore(preview): add preview route to validation
huzaifaedhi22 91910c0
fix(form-input): remove unnecessary value formatter that prevented sp…
huzaifaedhi22 c028d8d
chore(conflicts): sync branch with main
huzaifaedhi22 65b6346
chore(merge):sync branch with main
huzaifaedhi22 bf23f90
fix(layout): fix temporary layout issues
huzaifaedhi22 85cd403
chore:Merge branch main into feat/invitation/eventpreview
huzaifaedhi22 ecbba00
fix(event-validation): use import.meta to ensure client side
huzaifaedhi22 7f15c7f
refactor(cover-component): divide into sub components
huzaifaedhi22 f177ede
refactor: dependencies
huzaifaedhi22 c324388
refactor: remove empty spaces
huzaifaedhi22 a353225
Merge branch 'main' into feat/invitation/eventpreview
dargmuesli ed5320c
fix(icons): use optimized icons
huzaifaedhi22 c1829da
refactor(timepicker): use defineModel
huzaifaedhi22 4b8e4b8
fix: tailwind syntax
huzaifaedhi22 0b4d622
refactor(storage): auto import local storage
huzaifaedhi22 c944a70
refactor(imports): remove
huzaifaedhi22 220c2b5
refactor: use flex instead of space
huzaifaedhi22 8edeee8
refactor: rename stepper components
huzaifaedhi22 c91056f
Merge branch 'main' into feat/invitation/eventpreview
dargmuesli d9d85e4
Merge branch main into feat/invitation/eventpreview
huzaifaedhi22 3e5a1bd
refactor: use AppStep for event creation flow
huzaifaedhi22 d0a3370
fix: calendar bg
huzaifaedhi22 b281aee
chore: add color to vibetype.css
huzaifaedhi22 4ebbbc4
refactor: updated useEventForm with AppStep
huzaifaedhi22 2e3cceb
chore: use latest validation file
huzaifaedhi22 4e3fca3
chore:remove seperate preview route
huzaifaedhi22 4346d94
fix: use single instance of form
huzaifaedhi22 1743a53
feat:use update photo upload
huzaifaedhi22 b27f9ee
refactor: use proper styles
huzaifaedhi22 9b3c478
chore: add TH2 style
huzaifaedhi22 5ce8e12
chore: add review comment
huzaifaedhi22 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,82 @@ | ||
| <template> | ||
| <div class="flex w-full"> | ||
| <div class="grid w-full grid-cols-2 gap-0"> | ||
| <Popover> | ||
| <PopoverTrigger class="w-full"> | ||
| <div | ||
| class="flex h-14 w-full items-center justify-between rounded-l-xl border border-(--semantic-base-line) px-4 py-2" | ||
| > | ||
| <span class="block truncate text-(--semantic-base-text)"> | ||
| {{ | ||
| modelValue | ||
| ? df.format( | ||
| modelValue instanceof Date | ||
| ? modelValue | ||
| : new Date(String(modelValue)), | ||
| ) | ||
| : props.placeholder | ||
| }} | ||
| </span> | ||
| <CalendarIcon | ||
| class="ml-2 size-6 flex-shrink-0 text-(--semantic-base-text)" | ||
| /> | ||
| </div> | ||
| </PopoverTrigger> | ||
| <PopoverContent | ||
| class="z-50 min-w-[8rem] overflow-hidden rounded-md border border-(--semantic-base-line) bg-(--semantic-base-surface) p-0 shadow-md" | ||
| hide-close | ||
| > | ||
| <Calendar | ||
| class="bg-(--semantic-base-surface-1)" | ||
| :selected="modelValue" | ||
| @update:model-value=" | ||
| (date) => (modelValue = date as unknown as CalendarDate) | ||
| " | ||
| /> | ||
| </PopoverContent> | ||
| </Popover> | ||
| <div | ||
| class="flex h-14 w-full items-center rounded-r-xl border border-l-0 border-(--semantic-base-line) bg-(--semantic-base-surface) px-4 py-2" | ||
| > | ||
| <input | ||
| v-model="time" | ||
| type="time" | ||
| class="w-full border-0 px-0 py-2 text-xl text-(--semantic-base-text) focus:border-transparent focus:ring-0 focus:outline-none" | ||
| placeholder="10:00" | ||
| /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script setup lang="ts"> | ||
| import { CalendarIcon } from 'lucide-vue-next' | ||
| import type { CalendarDate } from '@internationalized/date' | ||
| import { DateFormatter } from '@internationalized/date' | ||
| import dayjs from 'dayjs' | ||
| const { locale } = useI18n() | ||
|
|
||
| const props = defineProps<{ | ||
| placeholder?: string | ||
| }>() | ||
|
|
||
| const modelValue = defineModel<CalendarDate>({ | ||
| default: dayjs().toDate(), | ||
| }) | ||
| const time = defineModel<string>('time', { | ||
| default: '10:00', | ||
| }) | ||
|
|
||
| const emit = defineEmits<{ | ||
| (e: 'update', value: { date: CalendarDate; time: string }): void | ||
| }>() | ||
|
|
||
| const df = new DateFormatter(locale.value, { dateStyle: 'long' }) | ||
|
|
||
| watch([() => modelValue.value, () => time.value], () => { | ||
| emit('update', { | ||
| date: modelValue.value, | ||
| time: time.value, | ||
| }) | ||
| }) | ||
| </script> |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this removed?