Skip to content
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

Form for firebase PushNotification json schema does not work #78

Open
FreePhoenix888 opened this issue Jun 22, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@FreePhoenix888
Copy link
Member

FreePhoenix888 commented Jun 22, 2023

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 FreePhoenix888 added the bug Something isn't working label Jun 22, 2023
@FreePhoenix888 FreePhoenix888 moved this to In Progress in Development Jun 22, 2023
@FreePhoenix888
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

1 participant