Commit 022e2c0
Project Page Mutations (#58)
* build: add necessary form dependencies
* refactor(dashboard): enable new project cta
* feature(dashboard): set up base for new project dialog
* feature(dashboard): set up base for new project dialog
* refactor(new-project): add select component for organization selection
* refactor(new-project): move select organization label to app.config
* feature(new-project): add necessary form inputs
* feature(new-project): apply form field validation schema
* refactor(new-project): update schema validation for project slug
* feature(graphql): add create project mutation
* refactor(graphql): update organizations query
* feature(dashboard): add proper mutation for creating a new project
* refactor(new-project): add async validation for project slug
* fix(build): update queries to fix build errors due to merge conflicts
* refactor: update routing to use org and proj slugs
* fix(new-project): update create porject payload to include org slug
* feature(dashboard): add dialog for creating a new organization
* feature(dashboard): add functionality for creating an organization
* refactor(dashboard): update responsive design pattern for pinned orgs
* refactor(dashboard): adjust state management for CTAs when there are no user orgs
* chore: format
* refactor: adjust pattern for form submissions
* chore: format
* refactor: adjust pattern for FormFieldError
* docs: add JSDoc to custom Link component
* chore: format
* fix: update field level validator for organization name
* build: update to use JSONC formatted lockfile
* feature(organizations): apply logic to handle mutations
* refactor: update auth flow to inject database rowId into the session user object
* chore: format
* chore: add TODO comment regarding augmentation of session object
* chore: update comment related to onChangeAsync validator
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>
* chore: update comment regarding onChangeAsync validator
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>
* refactor(components): use custom link component throughout app
* refactor(config): update placeholder text for form inputs
* fix(link): extend props to include html anchor element attributes
* refactor(link): remove unnecessary children prop override
* refactor: update slug validations, use custom validation adapter
* feature(organization): add appropriate create project mutations
* refactor(providers): adjust query client prover implementation
* chore: format
* refactor: adjust graphqlFetch to allow for properly exposed fetchers
* fix: remove unused export
* feature(dashboard): prefetch pinned organizations
* chore: format
* refactor(organizations): prefetch query, use nuqs search params server side
* chore: format
* refactor(search-params): use cache pattern for future proofing
* feature(organization): fetch projects server side and hydrate client
* fix: update organizations page to query orgs from currently signed in user
* refactor: update early return / bail pattern for async RSCs
* fix: update enabled variable for queries that require specifics from the user
* refactor: remove unused return from mutation
* refactor: adjust comments and TODOs, remove web3 dependencies
* refactor: adjust naming convention for schema validator import, update comment
* refactor: adjust casing for schema validator import
* chore: update comments
* feature: turbo or bust
* refactor: manage states based on isLoading from useAuth hook
* refactor: update prefetch patterns to include multiple queries
* refactor(projects): add prefetch pattern
* feature(project-page): add prefetching pattern
* refactor: update dialog state management to use zustand factory pattern
* refactor(hooks): extract useDialogStore options interface
* refactor(prefetch-pattern): use Promise.all rather than Promise.allSettled
* build(deps): update dependencies
* feature(feedback): set up prefetching pattern for dynamic feedback page
* fix(feedback): establish hydration boundary
* chore(layout): updating casing for comment
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>
* refactor(create-project): extract custom mutation key
* chore: format
* refactor(account-info): adjust styles for menu
* refactor(project): extract feedback form into separate component
* chore: format
* refactor(project): update form to use labels, restructure placeholders
* chore: format
* feature(project): add create feedback functionality WIP
* refactor(constants): adjust mutation keys to use generated keys from codegen
* chore: format
* feature(graphql): add create upvote / downvote mutations
* feature(graphql): add create upvote / downvote mutations
* feature(feedback): add upvote / downvote functionality
* feature(feedback): toggle upvotes / downvotes for user
* refactor(feedback): strengthen optimistic update pattern
* refactor(feedback): allow removal of individual upvotes or downvotes
* chore: format
* refactor(feedback-metrics): optimistically update total engagement
* refactor: optimistally update total responses and total feedback counts
* chore: format
* refactor: add default orderBy for posts query
* chore: format
* feature(project): optimistically update the project feedback upon submit
* fix(feedback): update FeedbackDetails to dynamically determine how feedback is queried
* refactor(create-feedback): simplify disabled state for create button
* refactor(dashboard): update new organization CTA variant for consistency across app
* fix(project-overview): update props to remove incorrect typing of projectId
* refactor(feedback-details): remove unecessary conditional href
* refactor(create-feedback): update schema error messages
* chore: format
* refactor: update mutations and queries for voting to avoid confusion with id vs rowId
* chore(query-provider): add comment regarding change to global invalidation
* fix: typo
* chore(mutation-keys): add additional imports
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>
* fix(mutation-keys): update delete upvote
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>
* fix(mutation-keys): update delete downvote
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>
* chore(codegen): update comment regarding exposeMutationKeys setting
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>
* refactor(config): update placeholder copy
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>
* refactor: remove optimistic updates for project metrics, conditionally render vote buttons
* refactor(feedback-details): update pattern for isPending
* refactor(project-overview): adjust type reference for projectId prop
---------
Co-authored-by: Brian Cooper <20056195+coopbri@users.noreply.github.com>1 parent 44e43e1 commit 022e2c0
File tree
25 files changed
+1121
-383
lines changed- src
- app/organizations/[organizationSlug]/projects/[projectSlug]
- components
- dashboard/DashboardPage
- feedback
- CreateFeedback
- FeedbackDetails
- project
- ProjectFeedback
- ProjectOverview
- generated
- lib
- config
- constants
- graphql
- fragments
- mutations
- downvote
- post
- upvote
- queries
- hooks/store/useDialogStore
- providers/QueryProvider
25 files changed
+1121
-383
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
Lines changed: 237 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
0 commit comments