Skip to content

Commit

Permalink
Merge pull request #451 from 12rambau/master
Browse files Browse the repository at this point in the history
v_2.8.0
  • Loading branch information
12rambau authored Apr 18, 2022
2 parents 243246b + 48cfc7b commit 88eca27
Show file tree
Hide file tree
Showing 39 changed files with 768 additions and 284 deletions.
2 changes: 1 addition & 1 deletion .cz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ commitizen:
changelog_incremental: true
tag_format: v_$major.$minor.$patch$prerelease
update_changelog_on_bump: true
version: 2.7.0
version: 2.8.0
version_files:
- setup.py:version
- sepal_ui/__init__.py:__version__
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Test formatting
uses: psf/black@stable
with:
version: "21.7b0"
version: "22.3.0"
- name: PEP8 rules
uses: tonybajan/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: 'https://github.com/psf/black'
rev: 21.7b0
rev: 22.3.0
hooks:
- id: black
stages: [commit]
Expand Down
158 changes: 67 additions & 91 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
## v_2.8.0 (2022-04-18)

### Fix

- remove empty versions from the changelog
- prevent Alert with no parameters to raise a warning
- backward compatibility of the type parameter
- use msg for banner btn
- only display the oldest banner queue the other and hide them
- raise a warning if type is badly defined
- display the number of stackbar in the queue
- create the disclaimer tile on the fly
- change logo source in light theme
- unproject images in add_raster
- unproject images in add_raster Fix #434

### Feat

- new set and get children to sepalwidget. Aims to close #443
- create Banner widget to display important message to end-user
- override ipyleaflet Map add_layer method to use default style

### Refactor

- rename _tmp class name with the actual new sepalwidget name
- deal with type_ the same way we do it in Alert
- use a persistent parameter instead of timeout
- simplify add_banner method by calling Banner widget
- return map when new layer added + make more clear param name
- change alert by snackbar when creating a banner aims to close #438
- move theme, color and theme function to styles

## v_2.7.0 (2022-03-28)

### Refactor
Expand All @@ -20,6 +52,7 @@
- control the theme using a btn
- add theme in the config file
- add interaction with drawer. closes #415
- new fullscreen widget
- new LocaleSelect widget
- function to update config language
- allow the tranlator to read config file
Expand Down Expand Up @@ -59,15 +92,28 @@
- debug non working flags
- support for subvarieties of language Fix #408
- add a disabled trait to datepicker Fix #409

## v_2.6.2 (2022-02-18)

### Fix

- prevent crash when badly design viz params are used Fix #405

## v_2.6.1 (2022-02-17)

### Fix

- add the message file in the distrib
- make readme copatible with pypi release
- make readme compatible with pypi release has syntax errors in markup and would not be rendered on PyPI. line 6: Error: Document or section may not begin with a transition.

## v_2.6.0 (2022-02-16)

### Refactor

- ignore untitled files
- ignore untitled files
- remove __setattr__ magic method.
- typo in class name
- remove __setattr__ magic method.
- reshape messages to fit the translator requirements
Expand All @@ -81,6 +127,8 @@
- remove {locale}.json files
- remove list from json files potoon is not compatible with lists but only key dictionaries
- add basepath
- set the name in the properties of the GEJSON output
- don't use the named 'tmp' directory
- don't use the named 'tmp' directory Fix #391
- set the name in the properties of the GEJSON output Fix #390
- typo
Expand All @@ -100,6 +148,7 @@
### Fix

- scroll back to the top when change folde Fix #232
- only install pre-commit hooks once
- only install pre-commit hooks once Fix #373
- use https instead of git
- reset model output when selecting a new AOI Fix #366
Expand All @@ -112,6 +161,7 @@

### Fix

- solve the build issue in SEPAL
- cryptography since flake8 linting cryptography is not a lazy dependency anymore
- install missing packages

Expand Down Expand Up @@ -139,6 +189,7 @@
- minor logical operator writing
- deprecate toggle
- use class management methods Fix #119
- use kwargs pop
- fix some of the parameters
- remove __init__ in model
- use kwargs pop Avoid the duplication of parameter using an elegant and python method called dict poping
Expand Down Expand Up @@ -167,6 +218,7 @@
- close menu when date is selected Fix #17
- viz can be set in params
- make viz into a trait It now controls the vizibility
- hide the icon if set to empty
- set back the missing members
- hide the icon is set to empty
- add increm parameter
Expand All @@ -176,6 +228,7 @@
- limit the items list to type The self.items += is not a usable operator for list trait I was force to use a tmp list to really update the filter the items
- typo in Réunion name
- open link in new tabs Fix #311
- adapt test to new libs
- add a banner on top of app Fix #314
- init the items of the ClassTable Fix #313

Expand All @@ -186,22 +239,24 @@

## v_2.4.0 (2021-10-19)

### Refactor
### Feat

- make v_model default and empty value as None instead of empty string
- be consistent when concatenating
- filter by column and value in AOI.
- filter by column and value in AOI. - closes: #296

### Fix

- display specific warnings in alerts
- replace default v_model fon VectorField as trait
- doc build failed
- only display SepalWarning in Alerts
- this assignation was overwritting the w_asset dict
- vector field method. closes #306

### Feat
### Refactor

- filter by column and value in AOI. - closes: #296
- make v_model default and empty value as None instead of empty string
- be consistent when concatenating

## v_2.3.0 (2021-10-06)

Expand All @@ -210,6 +265,7 @@
- add enforce_aoi to reclassify_model
- use split instead of indexing Fix #302
- prevent tooltip error when calling. closes #298
- prevent tooltip error when calling. closes #298
- little typo
- fiix some minor bugs and add human sorted

Expand Down Expand Up @@ -240,6 +296,7 @@
- typo
- clip margins
- use RPC to serve the resize method
- use RPC to serve the resize method
- catch when on_widget and targets have different length
- get the widget instead of the widget name
- local variable referenced before assignment
Expand All @@ -258,8 +315,10 @@
### Feat

- declare all variable
- Copy to clipboard
- add copy-to-clipboard widget
- create common used fixtures
- add a targets parameter to switch method
- test reclassify model
- add a target parameter in the switch method
- create validation for the reclassify model method
Expand All @@ -285,6 +344,7 @@
- use init_ee instead of ee.initialize()
- import table
- minor typo
- remove type and feat: introducing switch decorator
- remove type

### Refactor
Expand All @@ -307,6 +367,7 @@
- typo
- reintroduce type attribute
- fix french typos
- create __all__ variable to fix imports
- place __all__ at the file start

### Feat
Expand All @@ -318,89 +379,4 @@
- separate the reclassified image and its visualization
- define default_asset trait in SelectAsset. it will accept whether strings for unique default assets or lists for multiple. The trait can be observed to update the list anytime
- introducing switch decorator

## v_2.0.6 (2021-06-22)

## v_2.0.5 (2021-06-17)

## v_2.0.4 (2021-06-15)

## v_2.0.3 (2021-06-09)

## v_2.0.2 (2021-06-08)

## v_2.0.1 (2021-06-02)

## v_2.0.0 (2021-05-26)

## v_1.1.5 (2021-04-02)

## v_1.1.4 (2021-03-26)

## v_1.1.3 (2021-03-26)

## v_1.1.2 (2021-03-24)

## v_1.1.1 (2021-03-17)

## v_1.1.0 (2021-02-26)

## v_1.0.2 (2021-01-15)

## v_1.0.1 (2020-12-24)

## v_1.0.0 (2020-12-04)

## v_0.7.9 (2020-11-19)

## v_0.7.8 (2020-11-16)

## v_0.7.7 (2020-11-05)

## v_0.7.6 (2020-11-02)

## v_0.7.5 (2020-11-02)

## v_0.7.4 (2020-11-02)

## v_0.7.3-beta (2020-10-09)

## v_0.7.2-beta (2020-10-09)

## v_0.7.1-beta (2020-09-18)

## v_0.7-beta (2020-09-17)

## v_0.6-beta (2020-09-14)

## v_0.5-beta (2020-08-11)

## v_0.4-beta (2020-08-06)

## v_0.3-beta (2020-07-31)

## v_0.2-beta (2020-07-27)

## v_0.1.11-alpha (2020-07-27)

## v_0.1.10-alpha (2020-07-27)

## v_0.1.9-alpha (2020-07-27)

## v0.1.8-alpha (2020-07-27)

## v_0.1.7-alpha (2020-07-27)

## v_0.1.6-alpha (2020-07-27)

## v_0.1.5-alpha (2020-07-27)

## v_0.1.4-alpha (2020-07-27)

## v_0.1.3-alpha (2020-07-27)

## v_0.1.2-alpha (2020-07-27)

## v_0.1-alpha (2020-07-27)

## v_0.0-alpha (2020-07-27)
- improve assetSelect component
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Currently translated in the following languages:

English, Français, Español

You can contribute to the translation effort on our `pontoon project <https://sepal-ui-translation.herokuapp.com/projects/sepal-ui/>`__.
You can contribute to the translation effort on our `crowdin project <https://crowdin.com/project/sepal-ui>`__.

--------------------------------------------------------------------------------

Expand All @@ -66,7 +66,7 @@ The full documentation is available `here <https://sepal-ui.readthedocs.io/en/la

We are happy to receive feedback and we welcome any kind of contribution.

.. image:: https://raw.githubusercontent.com/12rambau/sepal_ui/master/docs/source/_image/sepal_ui_demo.gif
.. image:: https://raw.githubusercontent.com/12rambau/sepal_ui/master/docs/source/_image/sepal_ui_screenshot.png

Contribute
----------
Expand Down
Binary file added docs/source/_image/sepal_ui_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 12 additions & 16 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
:root {

/*****************************************************************************
* Color
*
* Colors are defined in rgb string way, "red, green, blue"
**/
--pts-color-sepal: 24, 102, 145;

--pst-color-h1: var(--pts-color-sepal);
--pst-color-h2: var(--pts-color-sepal);
--pst-color-active-navigation: var(--pts-color-sepal);
}

div.jupyter_container.docutils {
padding: .4em;
}
Expand All @@ -24,7 +10,17 @@ div.jupyter_container.docutils {
display: inline-block;
}
.footer-item:not(:last-child) {
border-right: 1px solid rgba(var(--pst-color-text-base), 1);
border-right: 1px solid var(--pst-color-text-base);
margin-right: .5em;
padding-right: .5em;
}
}

/*******************************************************************************
* overwrite image filter in dark theme
* most of our images are from SEPAL which is already using a dark theme
* there is no need for extra contrast and dimned brightness
*
*/
html[data-theme=dark] img {
filter: brightness(1) contrast(1);
}
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Currently translated in the following languages:

English, Français, Español

You can contribute to the translation effort on our `pontoon project <https://sepal-ui-translation.herokuapp.com/projects/sepal-ui/>`__.
You can contribute to the translation effort on our `crowdin project <https://crowdin.com/project/sepal-ui>`__.

--------------------------------------------------------------------------------

Expand Down
3 changes: 3 additions & 0 deletions docs/source/modules/sepal_ui.scripts.utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ sepal\_ui.scripts.utils
to_colors
set_config_locale
set_config_theme
set_type

.. autofunction:: sepal_ui.scripts.utils.catch_errors

Expand Down Expand Up @@ -57,6 +58,8 @@ sepal\_ui.scripts.utils

.. autofunction:: sepal_ui.scripts.utils.set_config_theme

.. autofunction:: sepal_ui.scripts.utils.set_type




Expand Down
Loading

0 comments on commit 88eca27

Please sign in to comment.