deep-foundation / deep-memo-app

The Unlicense
11 stars 8 forks source link

Form for firebase PushNotification json schema does not work #78

Open FreePhoenix888 opened 1 year ago

FreePhoenix888 commented 1 year ago

Backstory

In the deep memo, I use automatic json-schema generation from d.ts files and then use it to auto-layout based on json-schema.

Problem

How it must work (In action-sheet page)

In action-sheets this works great. The place where I use Form: https://github.com/deep-foundation/deep-memo/blob/4a60e74305b671f76c82f6e5469e562564635a08/pages/action-sheet.tsx#L63-L74 Impots related to this: https://github.com/deep-foundation/deep-memo/blob/4a60e74305b671f76c82f6e5469e562564635a08/pages/action-sheet.tsx#L46-L49 schema.json: https://github.com/deep-foundation/deep-memo/blob/6c4bbb48270dd827de9bc6c72e7caab5e8cef260/imports/action-sheet/schema.json#L1-L62

How it does not work (In firebase-push-notification page)

In firebase-push-notification, this does not work, or to be more precise, the form is buggy. Editing inputs does not work - the letter appears and is immediately deleted. As a result, the input is always empty. Adding elements to a sheet is also unavailable Using Form: https://github.com/deep-foundation/deep-memo/blob/4a60e74305b671f76c82f6e5469e562564635a08/pages/firebase-push-notification.tsx#L218-L228 Imports: https://github.com/deep-foundation/deep-memo/blob/6787f085522059106f9c11be452a29835d36c3ac/pages/firebase-push-notification.tsx#L79-L82 schema.json - https://github.com/deep-foundation/deep-memo/blob/975a03771de2f283f7c4d13c00dbe2cba6d4217e/imports/firebase-push-notification/schema.json#L1-L27

Additional Information

All the schemas are fresh. Npm script that generates json schemas - https://github.com/deep-foundation/deep-memo/blob/504a630370447e0712f5860c9c5523faa65865d2/package.json#L9

Video where I show how Forms behave:

Screencast from 06-22-2023 03:06:19 PM.webm

FreePhoenix888 commented 1 year ago

@ivansglazunov , I remember we talked about json-schema. I need your help.