Commit Graph

26 Commits

Author SHA1 Message Date
pngwn
8ed9f3be62 add tests for textbox 2022-03-23 16:56:36 +00:00
pngwn
26d2c190fc
add test infra + add browser tests to CI (#852)
* add test infra

* improve test setup and utils

* finish a test

* add browser tests to ci

* fix ci

* fix ci

* fix ci

* fix ci

* debug ci

* debug ci

* debug ci

* debug ci

* debug ci

* debug ci

* debug ci

* fix ci

* update lockfile

* fix formatting

* install browser when not cached

* bust cache

* debug test in ci

* fix button label

* generate screenshots for failed tests

* generate screenshots for failed tests

* generate screenshots for failed tests

* fix tests

* clean uip debug logs

* add setuip + teardown to functional tests

* remove build from static checks
2022-03-23 15:19:12 +00:00
aliabid94
a8ab1c81a1
Blocks dev (#853)
* Blocks-Components-v2
- default -> default_value refactoring

* Blocks-Components-v2
- refactor output types into output_type and make them auto

* Blocks-Backend-Events
- all events are implemented

* Blocks-Backend-Events
- refactor fn: str -> Callable

* Blocks-Backend-Events
- add change event to TabItem

* Blocks Backend Components
- Remove KeyValues from components

* Blocks-Backend-Components-v2
- Resolve Components imports in inputs and outputs

* Blocks-Backend-Components-v2
- fix default parameter usage in demos

* Blocks-Backend-Components-v2
- fix default parameter usage in demos

* Blocks-Backend-Components-v2
- fix default parameter usage in demos

* Blocks-Backend-Components-v2
- docstring updates

* revert demos

* Blocks-Backend-Components-v2
- tweaks

* Blocks-Backend-Components-v2
- add change event to Tabs

* Interfaces from Blocks (#849)

Build interfaces from blocks

Co-authored-by: Ali Abid <aliabid94@gmail.com>

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-03-22 15:40:36 -07:00
pngwn
cdd4b5a81a fix lockfile 2022-03-11 16:10:23 +00:00
pngwn
163806c4f6 Merge branch 'Blocks-Components' into gradio-dash-fe 2022-03-11 16:07:28 +00:00
pngwn
50cb72b4ea more stuff 2022-03-11 16:00:48 +00:00
pngwn
ddbd121a03 more 2022-03-07 13:36:49 +00:00
pngwn
0044c243db pull all components into packages 2022-03-02 16:42:43 +00:00
pngwn
262f5d3e45 fix tooling issues 2022-02-25 12:24:32 +00:00
pngwn
7924ac5829 populate workbench 2022-02-23 11:17:41 +00:00
pngwn
4d9b600627 set up component workbench 2022-02-22 12:20:28 +00:00
pngwn
4f26051d35
fix: dark mode (#652)
* swap postcss nested for tailwinf nesting plugin

* dark mode dataframe

* make background height expand with content

* updated test images

* fixed images

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-02-17 13:21:18 -08:00
aliabid94
2734bd782e
python format fix [hotfix] (#615)
* format fix

* fix image tests

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-02-14 21:03:51 -08:00
dawoodkhan82
ba0c996a2f undo pretty format of website 2022-02-14 16:50:15 -05:00
dawoodkhan82
670da0f27e merge master 2022-02-14 16:20:56 -05:00
pngwn
db59544d50
add unit tests (#602)
* add unit tests

* add tests to ci

* fix naming of tests
2022-02-14 15:24:04 +00:00
dawoodkhan82
2438b0bb90 more pretty formatting 2022-02-11 11:34:49 -05:00
dawoodkhan82
b87d42b747 update pnpm-lock file 2022-02-11 11:01:38 -05:00
dawoodkhan82
053ead7d31 package fix 2022-02-11 10:57:38 -05:00
pngwn
37c8ee3974
use ui for frontend (#589)
* add static src to modify sketch

* add themes

* update all tooling to use the new frontend dir

* revert formatting

* update template index

* fix formatting

* fix scripts for new ui folder

* remoce console.logs

* remoce console.logs

* ensure dataeries clear works correctly

* ensure label chart has correct width

* remove cropper when component is destroyed

* update tailwind

* remove console logs

* fix formatting

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-02-10 19:22:22 +00:00
pngwn
d6f54b6607
type components with typescript (#545)
* type audio component

* add types

* add types for dropdown

* add types for File

* type image component

* type number component

* type radio

* type slider

* type textbox

* type timeseries

* type video

* remove logs

* fix formatting

* some output component types

* type JSON output

* type label output

* type timeseries and video output

* type more output components

* more types

* type interface and app

* update config to ts

* update nam,es
2022-02-07 14:34:53 +00:00
pngwn
70981c3732
add ci for ui (#524)
* add ci for frontend

* add ci for frontend

* fix workflow

* fix format errors
2022-02-02 15:49:37 +00:00
pngwn
dd94a47f59
add typescript (#521) 2022-02-02 14:02:09 +00:00
pngwn
e3c613af68
add vite (#517)
* switch from rollup to vite

* remove unused deps
2022-02-01 18:25:20 +00:00
pngwn
980b9f60eb
format frontend code with prettier (#516) 2022-02-01 15:46:50 +00:00
pngwn
f11a127ea4
Multi pkg (#515)
* bootstrap ui package

* bootstrap packages

* update frontend docs

* fix gitignore

* fix gitignore

* fix gitignore

* add pnpm link to docs
2022-02-01 13:45:55 +00:00