Commit Graph

26 Commits

Author SHA1 Message Date
pngwn
817819d7a1
Fix the types (#1843)
* fix types

* fail CI when typechecking fails

* maybe fix

* more fix

* remove all rferences to theme

* fix login
2022-07-21 19:12:46 +01:00
pngwn
8710d3a079
Wrap dataframe (#1571)
* add suport for table cell wrapping

* revert pkginfo change

* revert pkginfo change

* fixed tests

* formatting

* type hint

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-16 17:02:01 -07:00
pngwn
83a1bfd15a
fix tab error (#1329) 2022-05-18 15:20:41 -07:00
pngwn
096f4b5b56
add label to data frame (#1328) 2022-05-18 15:14:12 -07:00
pngwn
e535cd8a35
tweak bg colour (#1307) 2022-05-17 14:58:25 +01:00
Victor Muštar
523c3692c4
spacing (#1254) 2022-05-13 18:19:36 +01:00
aliabid94
5fc00b4567
Automatic word-break in highlighted text, combine_adjacent support (#1209)
* changes

* changes

* updated PyPi version to 2.9b26

* changes

* css tweaks (#1213)

* css tweaks

* more tweaks

* fix lint error

Co-authored-by: pngwn <hello@pngwn.io>
2022-05-11 20:09:25 +01:00
Victor Muštar
962a254a6b
WIP: Add dark mode support (#1187)
* add gray 950 to tailwind config

* overwrite global css for dark-mode

* add dark-mode to css tokens

* add dark-mode to components

* workbench dark-mode update

* checkbox tweak

* create icon components

* tweaks

* formatting

* formatting

* handle dark mode query params + system settings

* fix css

Co-authored-by: pngwn <hello@pngwn.io>
2022-05-09 17:26:09 -07:00
pngwn
eca95a549d
Timeseries improvements (#1149)
* ensure chart works with decimal values + generatesaxis lines for values below 10

* add negative example

* use color palette for chart

* add colors kwarg to Timeseries

* fix test?
2022-05-03 14:05:17 -07:00
pngwn
81e981eb7a
use color palette for chatbot (#1152) 2022-05-03 13:53:24 -07:00
pngwn
e34210ccda
max_lines + autoheight for textbox (#1153)
* ensure autoheight always reruns when value changes

* implement lines + max_lines for textbox

* update demo

* fix test
2022-05-03 18:28:57 +01:00
pngwn
ce77c73551
add select event for tabitems (#1154) 2022-05-03 18:21:29 +01:00
pngwn
1032313988
highlighted text colors (#1119)
* highlighted text colors

* fix document error
2022-05-02 09:41:34 +01:00
pngwn
2b0898b9a2
Scroll to output (#1077)
* implement loader + scroll into view

* changes

* refactor components to use Block inside the app

* cleanup

* cleanup

* implement all changes for all changes for all relevant components

* fix formatting

* demos

* add status tracker to every component

* fix tests

* fix unti test flake: randInt

* cleanup CI

* fix CI

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-26 15:48:39 +01:00
Victor Muštar
87ea33dc42
UI design update (#1041)
* ui update

tabs
button
container
spacing
responsive row
mobile
chatbot
style
JSON node

* ui misc

* gradio orange shades

* workbench layout

* button shade

* rm unused

* audio animation

* tabs spacings

* table

* form update

* misc

* misc

* sketch placeholder

* table update

* table rings

* JSON copy button

- Logic not implemented

* textbox default placeholder

* table

remove old table

* label style

* button global css

* Update Button.svelte

* cs

* table btn

* carousel height

* audio style

* audio static

* static image size

* formatting

* skip test that aren't testing anything

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2022-04-21 10:27:12 +01:00
Dawood Khan
499f106c9e
Model3D + Plot Components (#1010)
* add model3D

* model3d component

* add plot component

* format

* ingnore plot.svelte from prettier

* update build script

* update circleci config

* remove circleci config change

* change build script

* remove change to build script

* remove plot.svelte

* remove duplicate save_flagged func

* fix node space issue + format issues

* Update ui.yml

* Update ui.yml

* Update ui.yml

* remove changes to config files

* updated codecov version

* Update ui.yml

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-18 15:26:30 -04:00
pngwn
9cb40dc99a
ensure dataframe updates as expected (#981)
* ensure input  updates as expected

* ci debug

* ci debug

* ci debug

* fix broken path

* cleanup

* cleanup

* cleanup

* remove pkg-up

* fix dataframe

* ensure headers can be edited

* allow the table to render empty content without exploding

* fixed components and test components

* fixed test inputs and test outputs

* formatting

* Update test_components.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-13 21:53:35 +01:00
pngwn
61c2e0e680
static mode for textbox (#929)
* static mode for textbox

* fix checkbox and remove title

* address comments

* autoresize textarea for output textbox

* wait for the DOM to update before resizing the textarea
2022-04-07 20:36:49 +01:00
pngwn
f2d71abe88
Redesign 1 (#918)
* redesign forms

* finalise forms

* upload components

* fix CSS conflicts

* abstract block + update image

* restyle modify buttons

* add file, audio, video

* revert example

* address comments
2022-04-05 18:11:29 +01: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
ec80912433 convert all components to new form 2022-03-08 13:35:42 +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