Skip to content

Commit 927d484

Browse files
committed
AI UI Designer Idea
1 parent a0bc12d commit 927d484

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
### Initial Idea Submission
2+
3+
Full Name: Mohammed Ayaan
4+
University name: PES University Bangalore
5+
Program you are enrolled in (Degree & Major/Minor): BTech (AI/ML)
6+
Year: 2nd year (2023-2027)
7+
Expected graduation date: 2027
8+
9+
Project Title: AI UI Designer for APIs
10+
Relevant issues: #617
11+
12+
Idea description:
13+
14+
My assumption here is that the requirement is to provide an advanced preview for API responses
15+
which are of type json/xml.
16+
17+
Proposed solution -
18+
19+
When the API responses are of type xml/json we can show additional advanced preview action buttons on the
20+
response widget. eg : Data table, Chart, Summary
21+
22+
We can design a fixed layout as per apidash ui standards (font, colors, themes) for each of the
23+
visualization. This would comprise the static content by reusing the existing widgets. This will ensure
24+
uniform look and feel for all users.
25+
for eg: datatable_page.dart, chart_page.dart, summary_page.dart
26+
27+
Dynamic data based on the json/xml input would come from the codellama service. for eg: visualizations_service.dart.
28+
This service will interface with the codellama server by providing the json/xml as input and
29+
return the generated html/dart widget code or may be just the collections which needs to be placed in
30+
the placeholders in static screen widgets. This can be evaluated and decided as per the support provided
31+
by the codellama service.
32+
33+
To ensure the kind of output(html/dart code or the transforming the json/xml data) we need,
34+
we can provide the llm with few shot prompts as examples.
35+
36+
On click of Data table =>
37+
call visualization_service.dart to get the dynamic content from json/xml as required for data table.
38+
Render the widget. Widget to provide capabilities to sort and search
39+
On click of Chart =>
40+
We can ask for additional inputs like which type of chart, on what columns etc.
41+
call visualization_service.dart to get the dynamic content from json/xml as required for chart widget.
42+
Render the widget. Multiple chart types can be supported like bar graph, pie, bubble etc.
43+
On click of Summary =>
44+
We can provide some options like top 5 data points(eg: positive reviews/ratings), group by
45+
or outliers, book summary, weather report etc
46+
call visualization_service.dart to get the dynamic content from json/xml as required for summary widget.
47+
48+
Additionally I can perhaps also contribute to the har importer project. I do have some exposure to har formats.
49+
I will analyze and update the idea shortly.

0 commit comments

Comments
 (0)