Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat!: Open Food Facts website redesign #7414

Merged
merged 111 commits into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
0adac96
[CHG] V1 front2022
Apr 22, 2022
9b58a4f
extract info from encapsulating message -- start
stephanegigandet Apr 22, 2022
d7f491f
start of GS1 CIC template
stephanegigandet Apr 22, 2022
6c6aff5
agena3000 cic
stephanegigandet Apr 25, 2022
ad9c540
test templates for agena3000 cic
stephanegigandet Apr 25, 2022
303d039
[CHG] front advance 2
Apr 25, 2022
b842952
Merge commit 'ad9c540d4a55c6f6380f60c515f2efd83fabe923' into end-front
Apr 25, 2022
e70419e
[CHG] advance
Apr 26, 2022
3aad16a
[CHG] topbar end
Apr 27, 2022
f99ab60
Merge commit '9546629cdd692521ae5001e3d3028ee09a0da798' into end-front
Apr 27, 2022
7b4b53b
[CHG] tags product block
Apr 27, 2022
c02b17c
[CHG] link color in topbars
Apr 27, 2022
edb3a36
[CHG] pagination css
Apr 27, 2022
bcc127a
[CHG] backs
May 3, 2022
e3b974a
[CHG] merge
May 3, 2022
2e570d3
[CHG] retours fin
May 3, 2022
1477831
2 spaces indent instead of 4
stephanegigandet May 17, 2022
ba5ca63
merged main, fixed conflicts
stephanegigandet May 17, 2022
d6c75da
start of work on menus
stephanegigandet May 18, 2022
e113155
merged master, tried to solve conflicts
stephanegigandet Jun 30, 2022
18cc9c5
merged master, tried to solve conflicts
stephanegigandet Jun 30, 2022
96d8347
merged master, tried to solve conflicts
stephanegigandet Jun 30, 2022
f894e6a
Merge branch 'main' into redesign2
stephanegigandet Jul 15, 2022
f3da14d
fix issue with list of products and edit button
stephanegigandet Jul 15, 2022
bff0940
bigger OFF logo
stephanegigandet Jul 15, 2022
81bf348
update some colors
stephanegigandet Jul 15, 2022
3890521
improve colors, buttons and dropdows
stephanegigandet Jul 18, 2022
af609e8
better buttons
stephanegigandet Jul 18, 2022
9188840
signin / signout form
stephanegigandet Jul 19, 2022
c08e02f
better product cards, colors changes
stephanegigandet Jul 20, 2022
61c6d4b
improve buttons
stephanegigandet Jul 22, 2022
a0c63d8
improve top bar
stephanegigandet Jul 22, 2022
a7e076d
merged main
stephanegigandet Jul 26, 2022
d55bb12
starting the product page
stephanegigandet Jul 26, 2022
cc724b7
starting the product page
stephanegigandet Jul 26, 2022
ff4bf6d
fix: countries.pl for countries dropdown
stephanegigandet Jul 26, 2022
e1f6993
Merge branch 'main' of github.com:openfoodfacts/openfoodfacts-server
stephanegigandet Jul 26, 2022
991cdfb
Merge branch 'main' into redesign2
stephanegigandet Jul 26, 2022
a900043
updates to product page
stephanegigandet Jul 26, 2022
305ad36
show product match and score on product page
stephanegigandet Jul 27, 2022
8db00ce
colored banner for product match
stephanegigandet Jul 28, 2022
1ff77ba
improve product cards
stephanegigandet Jul 28, 2022
66bf002
top product banner
stephanegigandet Jul 28, 2022
cadcea7
donation banner
stephanegigandet Jul 28, 2022
57d2418
illustrations
stephanegigandet Jul 29, 2022
b6f2175
navigation tabs
stephanegigandet Jul 29, 2022
95906c8
fixes and improves preferences buttons
stephanegigandet Aug 1, 2022
e28e88b
merged main
stephanegigandet Aug 1, 2022
f9f9089
/cgi/i18n/ was moved to /cgi
stephanegigandet Aug 1, 2022
688a5a7
moved strings to .po files
stephanegigandet Aug 2, 2022
94ca406
Merge branch 'main' into redesign2
stephanegigandet Aug 23, 2022
9f4c240
moved illustrations
stephanegigandet Aug 24, 2022
5673025
started work on footer
stephanegigandet Aug 24, 2022
672061d
footer messages
stephanegigandet Aug 26, 2022
93c0b65
Merge branch 'main' into redesign2
stephanegigandet Sep 1, 2022
79e8919
footer - install the app
stephanegigandet Sep 2, 2022
ad76946
merged main
stephanegigandet Sep 7, 2022
bbc71db
product page tabs
stephanegigandet Sep 8, 2022
3f4511b
product images
stephanegigandet Sep 8, 2022
e2378ac
bigger product images
stephanegigandet Sep 8, 2022
c29b60c
encoding issue
stephanegigandet Sep 9, 2022
abf1757
product images
stephanegigandet Sep 9, 2022
0e2c824
main product image
stephanegigandet Sep 9, 2022
d7d5dfe
colors
stephanegigandet Sep 12, 2022
90c37f9
top bar menu colors
stephanegigandet Sep 12, 2022
540bd31
fix hand cuts
stephanegigandet Sep 13, 2022
9e4c920
product page navigation
stephanegigandet Sep 13, 2022
fef568b
remove old product page content
stephanegigandet Sep 13, 2022
aed9002
simplify and fix product tabs #7336
stephanegigandet Sep 16, 2022
bc2a9dd
fix cc image link and page
stephanegigandet Sep 16, 2022
c1687db
product tabs translations #7307
stephanegigandet Sep 16, 2022
a081a83
add missing parameter
stephanegigandet Sep 19, 2022
4b53b43
Merge branch 'main' into redesign2
stephanegigandet Sep 20, 2022
f024ff4
colors and small changes
stephanegigandet Sep 21, 2022
d18f1bd
tabs for product edit form - start
stephanegigandet Sep 21, 2022
4b1ad73
Merge branch 'main' into redesign2
stephanegigandet Sep 26, 2022
134ed5a
product edit form
stephanegigandet Sep 26, 2022
a6fe1c6
Merge branch 'main' into redesign2
stephanegigandet Sep 27, 2022
660b480
fixes for texts and list of products
stephanegigandet Sep 27, 2022
db86513
Merge branch 'main' into redesign2
stephanegigandet Sep 28, 2022
d204e77
fix padding for search form accordion
stephanegigandet Sep 29, 2022
0ad4cd4
Update en.po
teolemon Sep 29, 2022
2eb627a
fix: remove duplicate
teolemon Sep 29, 2022
1efacbd
perltidy
stephanegigandet Sep 29, 2022
46640a3
make sure code does not contain strange chars
stephanegigandet Sep 29, 2022
87c16c0
Merge branch 'redesign2' of github.com:openfoodfacts/openfoodfacts-se…
stephanegigandet Sep 29, 2022
0bf4391
ignore some js files
stephanegigandet Sep 29, 2022
d11974b
fix eslint issues
stephanegigandet Sep 29, 2022
16e2fd6
stylelint
stephanegigandet Sep 29, 2022
2ccd09f
Update lib/ProductOpener/Images.pm
stephanegigandet Oct 3, 2022
6252027
Update lib/ProductOpener/Display.pm
stephanegigandet Oct 3, 2022
0baf01b
Update lib/ProductOpener/Display.pm
stephanegigandet Oct 3, 2022
f265fd0
Update html/js/scrollNav.js
stephanegigandet Oct 3, 2022
6eaffa2
remove debug string
stephanegigandet Oct 3, 2022
ae2c439
Merge branch 'main' into redesign2
stephanegigandet Oct 4, 2022
cf06813
fix: add registration and forgot password links in redesign2 (#7442)
LandonPattison Oct 5, 2022
ba42940
Merge branch 'redesign2' of github.com:openfoodfacts/openfoodfacts-se…
stephanegigandet Oct 5, 2022
02fe080
fix #7434 - user menu links
stephanegigandet Oct 6, 2022
6157a41
Merge branch 'main' into redesign2
stephanegigandet Oct 6, 2022
dd0eb48
fix lint
stephanegigandet Oct 6, 2022
6cd8bad
smaller preferences buttons
stephanegigandet Oct 6, 2022
7cca28c
Merge branch 'main' into redesign2
stephanegigandet Oct 10, 2022
a4cd7c2
update test
stephanegigandet Oct 10, 2022
ee27970
font family to make sonarcloud happy
stephanegigandet Oct 10, 2022
8f6f4c6
fix: simplify material icons font loading
stephanegigandet Oct 10, 2022
e8b970e
fix: put footer at the bottom of the page + sign-in button on product…
stephanegigandet Oct 10, 2022
9c19bd0
fix: more responsive donate banner (#7467)
stephanegigandet Oct 10, 2022
633bfec
fix broken merge
stephanegigandet Oct 10, 2022
27a2b08
fix: flutter app expects titles for panel groups
stephanegigandet Oct 11, 2022
7b4491a
fix icon in panels
stephanegigandet Oct 11, 2022
4002bb8
Merge branch 'main' into redesign2
stephanegigandet Oct 11, 2022
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
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ html/js/dist/
html/js/datatables.*.js
html/js/jquery*.js
html/js/sigma.*.js
html/js/hc-sticky.js
html/js/scrollNav.js
html/js/stikelem.js
5 changes: 3 additions & 2 deletions cgi/login.pl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
my $redirect = single_param('redirect');
$template_data_ref->{redirect} = $redirect;
if (defined $User_id) {
my $loc = $redirect || $formatted_subdomain;
my $loc = $redirect || $formatted_subdomain . "/cgi/session.pl";
$r->headers_out->set(Location => $loc);
$r->err_headers_out->add('Set-Cookie' => $request_ref->{cookie});
$r->status(302);
Expand Down Expand Up @@ -85,8 +85,9 @@

$template_data_ref->{errors} = \@errors;

# Display the sign in form
my $html;
process_template('web/pages/login_form/login.tt.html', $template_data_ref, \$html) or $html = '';
process_template('web/pages/session/sign_in_form.tt.html', $template_data_ref, \$html) or $html = '';
if ($tt->error()) {
$html .= '<p>' . $tt->error() . '</p>';
}
Expand Down
2 changes: 1 addition & 1 deletion cgi/product_image.pl
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
$template_data_ref->{attribution} = $attribution;

my $html;
process_template('product_image.tt.html', $template_data_ref, \$html) or $html = '';
process_template('web/pages/product/includes/product_image.tt.html', $template_data_ref, \$html) or $html = '';
$html .= "<p>" . $tt->error() . "</p>";

$request_ref->{title} = $alt;
Expand Down
3 changes: 2 additions & 1 deletion cgi/product_multilingual.pl
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,6 @@ ($product_ref, $field, $language)
$header .= <<HTML
<link rel="stylesheet" type="text/css" href="/css/dist/cropper.css" />
<link rel="stylesheet" type="text/css" href="/css/dist/tagify.css" />
<link rel="stylesheet" type="text/css" href="/css/dist/product-multilingual.css?v=$file_timestamps{'css/dist/product-multilingual.css'}" />
HTML
;

Expand Down Expand Up @@ -1435,6 +1434,8 @@ ($product_ref, $field, $language)
or $html = "<p>" . $tt->error() . "</p>";
process_template('web/pages/product_edit/product_edit_form_display.tt.js', $template_data_ref_display, \$js);
$initjs .= $js;
$request_ref->{page_type} = "product_edit";
$request_ref->{page_format} = "banner";

}
elsif (($action eq 'display') and ($type eq 'delete') and ($User{moderator})) {
Expand Down
21 changes: 18 additions & 3 deletions cgi/session.pl
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@
}
}

process_template('web/pages/session/session.tt.html', $template_data_ref, \$html)
or $html = "<p>" . $tt->error() . "</p>";

if (single_param('jqm')) {

my %response;
Expand All @@ -101,6 +98,24 @@

}
else {
my $template;

if ((defined param('length')) and (param('length') eq 'logout')) {
# The user is signing out
$template = "signed_out";
}
elsif (defined $User_id) {
# The user is signed in
$template = "signed_in";
}
else {
# The user is signing in: display the login form
$template = "sign_in_form";
}

process_template("web/pages/session/$template.tt.html", $template_data_ref, \$html)
or $html = "<p>" . $tt->error() . "</p>";

$request_ref->{title} = lang('session_title');
$request_ref->{content_ref} = \$html;
display_page($request_ref);
Expand Down
6 changes: 4 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const svgmin = require("gulp-svgmin");
const jsSrc = [
'./html/js/display*.js',
'./html/js/product-multilingual.js',
'./html/js/search.js'
'./html/js/search.js',
'./html/js/hc-sticky.js',
'./html/js/stikelem.js',
'./html/js/scrollNav.js'
];

const sassSrc = "./scss/**/*.scss";
Expand Down Expand Up @@ -130,7 +133,6 @@ function copyCss() {
"./node_modules/leaflet.markercluster/dist/MarkerCluster.css",
"./node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css",
"./node_modules/@yaireo/tagify/dist/tagify.css",
"./html/css/product-multilingual.css",
"./node_modules/cropperjs/dist/cropper.css",
"./node_modules/jvectormap-next/jquery-jvectormap.css",
"./node_modules/select2/dist/css/select2.min.css"
Expand Down
27 changes: 27 additions & 0 deletions html/images/illustrations/app-icon-in-the-clouds.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions html/images/illustrations/donate-heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions html/images/illustrations/donut.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions html/images/illustrations/footer-orange.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading