Skip to content

Commit

Permalink
Handle location during listing creation and listing
Browse files Browse the repository at this point in the history
  • Loading branch information
kaje94 committed Oct 28, 2023
1 parent 320d852 commit 0661ecc
Show file tree
Hide file tree
Showing 42 changed files with 1,345 additions and 653 deletions.
26 changes: 22 additions & 4 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
> https://next-s3-upload.codingvalue.com/setup
> API changes
- [] purpose of passing location details in the listing create api?
- [] add a new field `hash` to image entity and have max length of 100(even though actually needed is less than 25)
- [] always sort images to make the preview image as the first image (specially in the detail screen)
- [] vehicle description needs to be at least 1000 characters?
// new!
- [] make postal code into alpha numeric (need to be able to save 00500 as a postal code)
- [] make trim as optional
- [] only return name for city api call, only return name and state code for state api call, remove id from country list & detail api call

- [] only return name for city api call, only return name and state code for state api call, remove id from country list & detail api call
- [] is lease field really necessary?
- [] vehicle brands have duplicate values
- [] return empty array instead of 404 if no cities or states found
- [] state city sql query should also use like instead of ==

> Web app todo list
Expand All @@ -31,9 +34,13 @@
- [] add country code as inputPrefix for phone numbers
- [] show currency as inputPrefix for price inputs
- [] avoid session?.user?.sub!
- [] if city list is empty, use the selected state name as city
- [] verify how emtpy, unauthorized and error component redirects & links work
- [] refer create t3 structure and eslint
- [] add watermark to uploaded image
- [] frequently going fowrard and backward in search screen triggers loading bug
- [] having debouncer in search inputs in search screen causes issues when page load during typing
- [] show expiry date in listings throughout. specially when renewing listings
- [] handle when visting posted listing from different country

> Need to verify
- [] loading bug when changing query (while loading type something) (Added a possible fix)
Expand All @@ -51,3 +58,14 @@

> SEO Todo list
- [] https://webmasters.stackexchange.com/questions/104987/how-to-change-which-image-from-website-is-shown-in-google-search-result


> Update next 14
- https://nextjs.org/blog/next-14
- https://nextjs.org/blog/security-nextjs-server-components-actions
- https://www.google.com/search?q=useOptimistic+nextjs&sca_esv=577069831&sxsrf=AM9HkKl0JJWRR2DdtSSLbVHT4AmJA5u_aw%3A1698382865056&ei=EUQ7ZbyLA_XCkPIPyYSlwAI&ved=0ahUKEwj81_SauZWCAxV1IUQIHUlCCSgQ4dUDCBA&uact=5&oq=useOptimistic+nextjs&gs_lp=Egxnd3Mtd2l6LXNlcnAiFHVzZU9wdGltaXN0aWMgbmV4dGpzMgUQABiABDIIEAAYFhgeGAoyCBAAGBYYHhgKSMgNUMACWL8McAF4AZABAJgB7AKgAeQNqgEDMy01uAEDyAEA-AEBwgIKEAAYRxjWBBiwA8ICChAAGIoFGLADGEPCAgcQABiABBgKwgIGEAAYHhgKwgIIEAAYBRgeGAriAwQYACBBiAYBkAYK&sclient=gws-wiz-serp
- https://www.google.com/search?q=useformstate+nextjs&sca_esv=577069831&sxsrf=AM9HkKlXzXTdtiS0i24ryrvOEp6sfjRWpw%3A1698382869133&ei=FUQ7ZcvkB9_AkPIP6__W6Qo&oq=useFormState+ne&gs_lp=Egxnd3Mtd2l6LXNlcnAiD3VzZUZvcm1TdGF0ZSBuZSoCCAAyBRAAGIAESOczUOoEWJEHcAF4AZABAJgB6gKgAakIqgEDMy0zuAEDyAEA-AEBwgIKEAAYRxjWBBiwA8ICChAAGIoFGLADGEPCAgoQABiABBgUGIcCwgIHEAAYigUYQ8ICBhAAGBYYHuIDBBgAIEGIBgGQBgk&sclient=gws-wiz-serp
- https://www.google.com/search?q=useFormStatus+nextjs&sca_esv=577069831&sxsrf=AM9HkKkgd25RRusBkihkQcRbdAx9pu63Sw%3A1698382873110&ei=GUQ7ZbWwBpfvkPIP8q6OyAk&ved=0ahUKEwj1oOCeuZWCAxWXN0QIHXKXA5kQ4dUDCBA&uact=5&oq=useFormStatus+nextjs&gs_lp=Egxnd3Mtd2l6LXNlcnAiFHVzZUZvcm1TdGF0dXMgbmV4dGpzMgcQABiABBgKMggQABgWGB4YCkjAFlC0AVjHC3ABeAGQAQCYAYUDoAH6E6oBAzMtN7gBA8gBAPgBAcICChAAGEcY1gQYsAPCAgoQABiKBRiwAxhDwgIFEAAYgATiAwQYACBBiAYBkAYJ&sclient=gws-wiz-serp
- https://nextjs.org/docs/app/api-reference/functions/generate-viewport
- https://nextjs.org/docs/app/api-reference/functions/unstable_cache

4 changes: 0 additions & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ await import("./src/env.mjs");
/** @type {import("next").NextConfig} */
const config = {
reactStrictMode: true,
swcMinify: true,
images: {
formats: ["image/avif", "image/webp"],
domains: ["ik.imagekit.io"],
},
experimental: {
serverActions: true,
},
};
export default config;
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"fslightbox-react": "^1.7.6",
"lodash.debounce": "^4.0.8",
"nanoid": "^5.0.1",
"next": "13.5.6",
"next": "14.0.0",
"postcss": "8.4.23",
"prop-types": "^15.8.1",
"query-string": "^8.1.0",
Expand All @@ -53,12 +53,12 @@
"devDependencies": {
"@types/fslightbox-react": "^1.7.4",
"@types/lodash.debounce": "^4.0.7",
"@types/react": "^18.2.14",
"@types/react": "^18.2.33",
"@types/react-datepicker": "^4.15.0",
"@types/react-dom": "^18.2.6",
"@types/react-dom": "^18.2.14",
"@typescript-eslint/parser": "^6.7.3",
"eslint": "8.50.0",
"eslint-config-next": "13.5.4",
"eslint-config-next": "14.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.28.1",
Expand Down
Loading

0 comments on commit 0661ecc

Please sign in to comment.