NextGen FormGeneric

This commit is contained in:
ValueOn AG 2025-06-02 23:53:13 +02:00
parent 33c9ec1830
commit 096e4052f0
2 changed files with 19 additions and 22 deletions

View file

@ -19,7 +19,6 @@ class FileItem(BaseModel, ModelMixin):
mandateId: str = Field(description="ID of the mandate this file belongs to")
filename: str = Field(description="Name of the file")
mimeType: str = Field(description="MIME type of the file")
workflowId: Optional[str] = Field(None, description="Foreign key to workflow")
fileHash: str = Field(description="Hash of the file")
fileSize: int = Field(description="Size of the file in bytes")
creationDate: str = Field(default_factory=lambda: datetime.now().isoformat(), description="Date when the file was created")
@ -40,7 +39,6 @@ register_model_labels(
"mandateId": {"en": "Mandate ID", "fr": "ID du mandat"},
"filename": {"en": "Filename", "fr": "Nom de fichier"},
"mimeType": {"en": "MIME Type", "fr": "Type MIME"},
"workflowId": {"en": "Workflow ID", "fr": "ID du flux de travail"},
"fileHash": {"en": "File Hash", "fr": "Hash du fichier"},
"fileSize": {"en": "File Size", "fr": "Taille du fichier"},
"creationDate": {"en": "Creation Date", "fr": "Date de création"}

View file

@ -1,39 +1,38 @@
....................... TASKS
FIXES:
- can you add generic sorting by field and pagination to the table, also to have possibility to move table borders
now to adapt files.js with following specifics:
- ADD function: File upload instead of form
now to adapt users.js with following specifics:
- MandateId not editable, to use user's mandateId
- Actions: Edit, Delete
- authenticationAuthority to be "local" authority, not editable
- Actions: Edit, Delete, Toggle "enabled"
- Connections: not to render
- language to select
- privilege to select
clean the module and remove legacy code and renderings, as now everything done in formGeneric
now to adapt files.js with following specifics:
- ADD function: File upload instead of form
- MandateId not editable, to use user's mandateId
- Actions: Edit, Delete
now to adapt mandates.js with following specifics:
- Actions: Edit, Delete, Toggle "enabled"
- language to select
clean the module and remove legacy code and renderings, as now everything done in formGeneric
now to adapt connections.js with following specifics:
- Actions: Delete, toggle Connect/Disconnect (based on status attribute's value)
- Adding a new connection has two custom buttons, no form: One to connect to a "google" account and one to connect to a "msft" account. api connectors are already available. New record is produced.
clean the module and remove legacy code and renderings, as now everything done in formGeneric
To remove unused functions in files.js and to consolidate it to match new formGeneric.
FormGeneric
- ADD prompt: no mandateid for new prompt in the form
- ALLE: After add, modify, delete to reload data new from api
- ADD User: Kein Passwortfeld, connections noch drin
- DELETE User: Fehler
- UPDATE Mandate: enabled als Text statt boolean
- ADD Mandate: error sending
- Connections: Missing
UAC:
- Users disabled nicht sichtbar!
Workflow:
- Liste der Prompts nicht aktualisiert nach Änderungen in FormGeneric
-
- diese seite gesucht: "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 ?