Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Genui demo Brian's draft. #3216

Draft
wants to merge 70 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
0d6353a
corrected gemini logo
malloc-error Mar 3, 2025
88ac6c3
gemini menu position and labels
malloc-error Mar 3, 2025
63bc014
stubbed in gemini code edit feature
malloc-error Mar 3, 2025
444a37f
new project behavior works as in designs
malloc-error Mar 3, 2025
65d1b00
tweaked gemini logo sizes
malloc-error Mar 3, 2025
e493a0a
added prefix and suffix icons/buttons to gemini edit text field
malloc-error Mar 5, 2025
b2a41b7
tweaked positioning
malloc-error Mar 5, 2025
b32bb54
Instruct how to connect to local service. (#3166)
polina-c Mar 3, 2025
fa0adc0
Update README.md (#3168)
polina-c Mar 3, 2025
8884844
add a check to validate that genai hasn't been enabled (#3172)
devoncarew Mar 4, 2025
796f5b5
remove route annotations (#3171)
devoncarew Mar 4, 2025
f2cd028
Adjust gemini variable name (#3173)
johnpryan Mar 4, 2025
a2bbba8
Remove unused OAuth handler. (#3174)
johnpryan Mar 4, 2025
eb24617
Fix asset paths for gemini branch (#3176)
johnpryan Mar 5, 2025
503036c
implemented hint color
malloc-error Mar 5, 2025
2d684e1
added code edit box flyout menu
malloc-error Mar 5, 2025
9dbeb3b
renamed code edit menu item
malloc-error Mar 5, 2025
debf4bb
savepont
malloc-error Mar 6, 2025
44f74fe
Merge branch 'main' into gen-ai-ux
malloc-error Mar 6, 2025
1c66330
sense flutter vs dart code
malloc-error Mar 7, 2025
41b44f5
prompt suggestion buttons working
malloc-error Mar 7, 2025
8bdb49f
removed unnecessary import
malloc-error Mar 7, 2025
bab016f
Merge branch 'main' into gen-ai-ux
malloc-error Mar 7, 2025
304bc9e
flyout menu icons revised
malloc-error Mar 7, 2025
99d7eaf
dialog redesign
malloc-error Mar 7, 2025
b5e7b1b
savepoint for img work
malloc-error Mar 7, 2025
21985c5
savepoint for img work
malloc-error Mar 7, 2025
ce07b63
images now addable to code edit tool
malloc-error Mar 7, 2025
93a73d0
spaghetti implementation of update (edit existing) code
malloc-error Mar 7, 2025
434cfb5
renaming
malloc-error Mar 7, 2025
52b2504
Merge branch 'main' into gen-ai-ux
malloc-error Mar 10, 2025
f1bfa0c
gen code over existing code basically works
malloc-error Mar 11, 2025
85604e9
Merge branch 'main' into gen-ai-ux
malloc-error Mar 11, 2025
e7985a4
added spinner
malloc-error Mar 11, 2025
c18c6f3
scrollable
malloc-error Mar 11, 2025
0db7b93
bring back state for gen code buffer
malloc-error Mar 11, 2025
3f52ed0
removed commented out material
malloc-error Mar 12, 2025
073df21
removed commented out material
malloc-error Mar 12, 2025
ec022b1
new code flow working
malloc-error Mar 12, 2025
302444f
diff vs no diff according to new project vs edit
malloc-error Mar 12, 2025
3bff396
Merge branch 'main' into gen-ai-ux (with manual resolution in main.da…
malloc-error Mar 12, 2025
0d0ccda
cleanup on suggested prompts
malloc-error Mar 12, 2025
f732553
cleaned up gen ai logic into its own class, mostly
malloc-error Mar 12, 2025
da535e5
cleanup
malloc-error Mar 13, 2025
6403750
Merge branch 'main' into gen-ai-ux
malloc-error Mar 13, 2025
37115e8
suggest fix works but regression in behavior for 'no fix found' state
malloc-error Mar 13, 2025
8e099c9
Merge branch 'main' into gen-ai-ux
malloc-error Mar 17, 2025
f33b1c6
auto reload on generate
malloc-error Mar 17, 2025
32a38a4
removed commented code, loading screen on exec frame while generating
malloc-error Mar 17, 2025
2900c6f
hide problems during ai generation and awaiting accept
malloc-error Mar 17, 2025
13bf778
Merge branch 'main' into gen-ai-ux
malloc-error Mar 19, 2025
8110925
fixed bug; save user code for new generations as well
malloc-error Mar 19, 2025
46c78de
handle no code generated cases
malloc-error Mar 21, 2025
dc7a798
hit enter to run a generation
malloc-error Mar 21, 2025
ba55348
Merge branch 'main' into gen-ai-ux
malloc-error Mar 21, 2025
61ad4bf
post merge cleanup
malloc-error Mar 21, 2025
0ac34be
post merge cleanup
malloc-error Mar 21, 2025
231143f
copy tweak
malloc-error Mar 21, 2025
74e2101
enable flag
malloc-error Mar 21, 2025
b6a1859
-
polina-c Mar 21, 2025
4f95ab9
Merge branch 'gen-ai-ux' of https://github.com/malloc-error/dart-pad …
polina-c Mar 21, 2025
80e4dfc
-
polina-c Mar 21, 2025
b34d9de
Update firebase.json
polina-c Mar 21, 2025
b0a7e14
Update firebase.json
polina-c Mar 21, 2025
a32b84a
-
polina-c Mar 21, 2025
ace82e1
Update main.dart
polina-c Mar 21, 2025
a846ba9
Merge pull request #2 from flutter-chat-dev/deployment
malloc-error Mar 21, 2025
91bcebd
-
polina-c Mar 25, 2025
0043f01
Merge pull request #3 from flutter-chat-dev/fixes
malloc-error Mar 25, 2025
fdb3a1c
Merge branch 'main' of github.com:dart-lang/dart-pad into genui-demo
polina-c Mar 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions pkgs/dartpad_ui/.firebaserc
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"projects": {
"default": "dart-pad"
},
"projects": {},
"targets": {
"dart-pad": {
"genui-dartpad": {
"hosting": {
"dartpad": [
"dart-pad-a3c64"
],
"preview": [
"sketch-pad-1cebb"
"genui-dartpad": [
"genui-dartpad"
]
}
}
Expand Down
Binary file modified pkgs/dartpad_ui/assets/gemini_sparkle_192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 2 additions & 95 deletions pkgs/dartpad_ui/firebase.json
Original file line number Diff line number Diff line change
@@ -1,100 +1,7 @@
{
"hosting": [
{
"target": "dartpad",
"public": "build/web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"redirects": [
{
"source": "/dart",
"destination": "/?sample=dart",
"type": 301
},
{
"source": "/flutter",
"destination": "/?sample=flutter",
"type": 301
},
{
"source": "/embed-dart?(.html)",
"destination": "/?embed=true",
"type": 301
},
{
"source": "/embed-flutter?(.html)",
"destination": "/?embed=true",
"type": 301
},
{
"source": "/embed-flutter_showcase?(.html)",
"destination": "/?embed=true",
"type": 301
},
{
"source": "/embed-html?(.html)",
"destination": "/?embed=true",
"type": 301
},
{
"source": "/embed-inline?(.html)",
"destination": "/?embed=true",
"type": 301
},
{
"source": "/workshops?(.html)",
"destination": "https://github.com/dart-lang/dart-pad/wiki/Workshop-authoring-guide",
"type": 301
}
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "/frame/assets/**",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
},
{
"source": "**",
"headers": [
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
},
{
"key": "Cross-Origin-Embedder-Policy",
"value": "credentialless"
},
{
"key": "Cross-Origin-Resource-Policy",
"value": "cross-origin"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
}
]
}
]
},
{
"target": "preview",
"target": "genui-dartpad",
"public": "build/web",
"ignore": [
"firebase.json",
Expand Down Expand Up @@ -187,4 +94,4 @@
]
}
]
}
}
60 changes: 27 additions & 33 deletions pkgs/dartpad_ui/lib/editor/editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -622,19 +622,16 @@ class _ReadOnlyCodeWidgetState extends State<ReadOnlyCodeWidget> {
Widget build(BuildContext context) {
return Focus(
autofocus: true,
child: SizedBox(
height: 500,
child: TextField(
controller: _textController,
readOnly: true,
maxLines: null,
style: GoogleFonts.robotoMono(
fontSize: 14,
fontWeight: FontWeight.w400,
color: Theme.of(context).textTheme.bodyMedium?.color,
),
decoration: const InputDecoration(border: InputBorder.none),
child: TextField(
controller: _textController,
readOnly: true,
maxLines: null,
style: GoogleFonts.robotoMono(
fontSize: 14,
fontWeight: FontWeight.w400,
color: Theme.of(context).textTheme.bodyMedium?.color,
),
decoration: const InputDecoration(border: InputBorder.none),
),
);
}
Expand All @@ -656,27 +653,24 @@ class ReadOnlyDiffWidget extends StatelessWidget {
Widget build(BuildContext context) {
return Focus(
autofocus: true,
child: SizedBox(
height: 500,
child: SingleChildScrollView(
scrollDirection: Axis.vertical,
child: PrettyDiffText(
oldText: existingSource,
newText: newSource,
defaultTextStyle: GoogleFonts.robotoMono(
fontSize: 14,
fontWeight: FontWeight.w400,
color: Theme.of(context).textTheme.bodyMedium?.color,
),
addedTextStyle: const TextStyle(
color: Colors.black,
backgroundColor: Color.fromARGB(255, 201, 255, 201),
),
deletedTextStyle: const TextStyle(
color: Colors.black,
backgroundColor: Color.fromARGB(255, 249, 199, 199),
decoration: TextDecoration.lineThrough,
),
child: SingleChildScrollView(
scrollDirection: Axis.vertical,
child: PrettyDiffText(
oldText: existingSource,
newText: newSource,
defaultTextStyle: GoogleFonts.robotoMono(
fontSize: 14,
fontWeight: FontWeight.w400,
color: Theme.of(context).textTheme.bodyMedium?.color,
),
addedTextStyle: const TextStyle(
color: Colors.black,
backgroundColor: Color.fromARGB(255, 201, 255, 201),
),
deletedTextStyle: const TextStyle(
color: Colors.black,
backgroundColor: Color.fromARGB(255, 249, 199, 199),
decoration: TextDecoration.lineThrough,
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion pkgs/dartpad_ui/lib/enable_gen_ai.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

// Turn on or off gen-ai features in the client.
const bool genAiEnabled = false;
const bool genAiEnabled = true;

/*

Expand Down
Loading
Loading