refactor: clean up TODOs and improve comments in FormFlags and chat_sse files
This commit is contained in:
parent
eaf9ecc1d3
commit
7bad7dd480
3 changed files with 2 additions and 40 deletions
|
|
@ -1,9 +1,5 @@
|
||||||
TODOS:
|
TODOS:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
LOGGING:
|
LOGGING:
|
||||||
- https://getpino.io/#/docs/api
|
- https://getpino.io/#/docs/api
|
||||||
- https://logbull.com/installation/
|
- https://logbull.com/installation/
|
||||||
|
|
@ -18,20 +14,10 @@ Minimal Viable Product:
|
||||||
|
|
||||||
- Msg and email queue. se è fuori orario il prop verrà notificato domani mattina
|
- Msg and email queue. se è fuori orario il prop verrà notificato domani mattina
|
||||||
|
|
||||||
- tab locazioni
|
|
||||||
|
|
||||||
- GDPR Iubenda
|
- GDPR Iubenda
|
||||||
|
|
||||||
- Translations
|
- Translations
|
||||||
|
|
||||||
MVP Extras:
|
|
||||||
|
|
||||||
- admin annunci salvati: Da admin vedere indirizzo e interno nella visualizzazione annunci salvati di immobile
|
|
||||||
- Admin annuncio link: se admin, in annuncio, collegamento rapido per copiare risposta x email con dati di tipologia, persone e decorrenza annuncio
|
|
||||||
- info annunci/pack icon: Info Annunci/pack su navbar, icona con casetta con forse numeretti tipocontatore icone con dropdown con n annunci salvati n annunci sbloccati
|
|
||||||
- Extensions: integrare estensioni copiare dati x miogest e packs ecc
|
|
||||||
- Provincie options in maiuscolo
|
|
||||||
|
|
||||||
AFTER MVP:
|
AFTER MVP:
|
||||||
|
|
||||||
- TODO migrazione app router https://nextjs.org/docs/pages/building-your-application/upgrading/app-router-migration#migrating-from-pages-to-app
|
- TODO migrazione app router https://nextjs.org/docs/pages/building-your-application/upgrading/app-router-migration#migrating-from-pages-to-app
|
||||||
|
|
@ -48,23 +34,3 @@ AFTER MVP:
|
||||||
- Document scan: Document scan for upload
|
- Document scan: Document scan for upload
|
||||||
|
|
||||||
- indirizzo autocomplete nomatim:
|
- indirizzo autocomplete nomatim:
|
||||||
|
|
||||||
```
|
|
||||||
https://github.com/tomickigrzegorz/autocomplete
|
|
||||||
function nominatim(currentValue) {
|
|
||||||
const api = `https://nominatim.openstreetmap.org/search?format=geojson&limit=5&q=${encodeURI(
|
|
||||||
currentValue
|
|
||||||
)}`;
|
|
||||||
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
fetch(api)
|
|
||||||
.then((response) => response.json())
|
|
||||||
.then((data) => {
|
|
||||||
resolve(data.features);
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
console.error(error);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,7 @@ import { Button } from "~/components/ui/button";
|
||||||
import { Switch } from "~/components/ui/switch";
|
import { Switch } from "~/components/ui/switch";
|
||||||
import { useZodForm } from "~/lib/zodForm";
|
import { useZodForm } from "~/lib/zodForm";
|
||||||
import type { Flags, FlagsId } from "~/schemas/public/Flags";
|
import type { Flags, FlagsId } from "~/schemas/public/Flags";
|
||||||
export type initialValues = {
|
|
||||||
id: FlagsId;
|
|
||||||
value: string;
|
|
||||||
};
|
|
||||||
//TODO salvare flags come boolean
|
|
||||||
type FormProps = {
|
type FormProps = {
|
||||||
initialValues: Flags | null;
|
initialValues: Flags | null;
|
||||||
submitMutation: (values: Flags) => void;
|
submitMutation: (values: Flags) => void;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ import { ee, type OnlineStatus } from "~/server/sse";
|
||||||
import { zChatId, zUserId } from "~/server/utils/zod_types";
|
import { zChatId, zUserId } from "~/server/utils/zod_types";
|
||||||
import { getKeydbClient } from "~/utils/keydb";
|
import { getKeydbClient } from "~/utils/keydb";
|
||||||
import { getMessagesArray } from "~/utils/kysely-helper";
|
import { getMessagesArray } from "~/utils/kysely-helper";
|
||||||
//todo forse cambiare in semplice interval polling invece di sse
|
//IDEA forse cambiare in semplice interval polling invece di sse
|
||||||
export const chatSSERouter = createTRPCRouter({
|
export const chatSSERouter = createTRPCRouter({
|
||||||
create: protectedProcedure
|
create: protectedProcedure
|
||||||
.input(z.object({ userId: zUserId }))
|
.input(z.object({ userId: zUserId }))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue