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

New UI 2023 #1102

Merged
merged 140 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
ce6563a
added js-build
OlegPhenomenon Jul 13, 2023
f0dc520
change index ui
OlegPhenomenon Jul 13, 2023
0ff5d6e
added filter to home page
OlegPhenomenon Jul 14, 2023
02444a1
added modals windows
OlegPhenomenon Jul 18, 2023
99f9213
added stimulus controllers for check for auctions ends and calculate …
OlegPhenomenon Jul 20, 2023
c60913c
added autobider
OlegPhenomenon Jul 21, 2023
6fd59ef
added timeleft, added deposit, updated view, added new flash
OlegPhenomenon Jul 28, 2023
9153e81
create table component, added ordeable feature
OlegPhenomenon Aug 16, 2023
ff28a71
rename stimulus controller by convetion
OlegPhenomenon Aug 16, 2023
f4d7363
delegate footer and header to components, implemented notification pa…
OlegPhenomenon Aug 17, 2023
79c1c55
implemented admin auction page, refactor the logic, update ordeable s…
OlegPhenomenon Aug 18, 2023
53e792c
fixed index page, added paid all to invoice page
OlegPhenomenon Aug 22, 2023
0f970a3
updated admins templates
OlegPhenomenon Aug 23, 2023
367e8cb
updated admin auction view
OlegPhenomenon Aug 25, 2023
b988982
updated profile page, webpush notifications, invoices, offers
OlegPhenomenon Aug 30, 2023
e971975
added claim domen modal window
OlegPhenomenon Aug 31, 2023
19a19fa
refactored autosave controller
OlegPhenomenon Sep 6, 2023
3e051c1
implement new wishlish page, billing profile page
OlegPhenomenon Sep 7, 2023
89f1399
updated modal windows, added new views, config turbo frame
OlegPhenomenon Sep 12, 2023
bb39304
integrated recaptcha
OlegPhenomenon Sep 13, 2023
32b0cde
added daily mail sucbscription, fix recaptcha flash messages, added r…
OlegPhenomenon Sep 13, 2023
3b601c6
updated localizations
OlegPhenomenon Sep 14, 2023
7cff1b7
added localization for login page
OlegPhenomenon Sep 14, 2023
2ae1736
added modal for forget password and confirmation, and change redirect…
OlegPhenomenon Sep 28, 2023
ca9c744
added notification modal, added menu in mobile view
OlegPhenomenon Sep 28, 2023
b4599b7
added localization
OlegPhenomenon Sep 29, 2023
1763a1e
added new settings, fixed broken links
OlegPhenomenon Oct 2, 2023
7308c76
updated profile page, added sign up page
OlegPhenomenon Oct 3, 2023
34fff19
rollback profile page
OlegPhenomenon Oct 5, 2023
a15f9e4
update templates
OlegPhenomenon Oct 5, 2023
bc346db
added password changed page, updated styles
OlegPhenomenon Oct 9, 2023
c680e31
updated deposit modal window
OlegPhenomenon Oct 12, 2023
28a2078
rebased
OlegPhenomenon Oct 30, 2023
8f8f2ac
updated google analytics path
OlegPhenomenon Oct 30, 2023
03bd5fb
fixed issues by 07.10.2023
OlegPhenomenon Nov 8, 2023
34880be
devide ui into components, fix some ui errors
OlegPhenomenon Nov 8, 2023
c1fccf2
comment out system tests
OlegPhenomenon Nov 8, 2023
f060c5f
refactoring 09/11/2023
OlegPhenomenon Nov 9, 2023
b8eb185
fixed tests, added cuprite
OlegPhenomenon Nov 13, 2023
fa79547
covered view components by tests
OlegPhenomenon Nov 16, 2023
4714708
added tests
OlegPhenomenon Nov 17, 2023
29a0e4c
refactoring: devide into components, added tests
OlegPhenomenon Nov 22, 2023
a313f39
fixed tests
OlegPhenomenon Dec 7, 2023
0fe2c25
fixed ordering in auction page
OlegPhenomenon Dec 7, 2023
7949e23
fixed webpush, improve autobider, improve offer page
OlegPhenomenon Dec 7, 2023
c93e658
fixed componen priview missing file
OlegPhenomenon Dec 14, 2023
07bccb3
updated fixed values for modal windows for english auction bids, adde…
OlegPhenomenon Dec 14, 2023
6b50788
updated billing issues
OlegPhenomenon Dec 18, 2023
f9c0cce
added finished auctions page, added cookies, added timezone localization
OlegPhenomenon Dec 18, 2023
7b4ec64
added localization for starts_at auctions value and fixed link for th…
OlegPhenomenon Dec 18, 2023
e493b2b
updated ui, updated new invoices path
OlegPhenomenon Dec 20, 2023
40a1634
fixed naming issue
Jan 31, 2024
21bf69e
updated phone confirmation page
Feb 26, 2024
e921a34
fixed issues from feedback
Mar 1, 2024
39925c1
replace to turbo billing update
Mar 1, 2024
917e87e
fixed tests
OlegPhenomenon Mar 5, 2024
7ef7e0a
moved captcha component to form
OlegPhenomenon Mar 20, 2024
0b165ea
moved captchas to form, fixed notifications margin
OlegPhenomenon Mar 20, 2024
c3135ce
fixed notification
OlegPhenomenon Mar 25, 2024
ba56b11
resolve conflicts
OlegPhenomenon May 13, 2024
e40b47a
updated rubocop
OlegPhenomenon May 13, 2024
d36890f
Auto compiling assets in dev
May 14, 2024
889cc56
breakpoint
OlegPhenomenon May 14, 2024
69c3fa8
init branch
May 15, 2024
05e308c
change ee/estonian translations
May 15, 2024
15b650d
update translation
May 15, 2024
32a0c3e
translations for EE
May 15, 2024
43a52aa
translate EE
May 15, 2024
7a8c99d
EE translation
May 15, 2024
7768f62
some EN translations
May 15, 2024
a3af2af
EN translations
May 15, 2024
6e3bd15
vat locale change (?)
May 15, 2024
5f70455
VAT change (?)
May 15, 2024
84469a8
fixed search, auth notification, summaryu daily
OlegPhenomenon May 16, 2024
e7eb2bb
fixed test
OlegPhenomenon May 16, 2024
e5f47c2
fixed autobider
OlegPhenomenon May 17, 2024
bdab96f
remove comment out code
OlegPhenomenon May 17, 2024
43cb845
Upgraded openai to gpt4o
May 20, 2024
20e920c
Corrected test
May 21, 2024
d74f307
Fixed result status update job
May 21, 2024
46a21c9
Imporved some frontend issues
May 21, 2024
ab2b0eb
Fixed main menu and implemented static notices
May 24, 2024
840c4a1
Fixed vat code validation for billing profiles
May 24, 2024
d4bf664
Fixed notices
May 24, 2024
c8fd127
Corrected billing profile model
May 24, 2024
55d5db4
Fixed current bid indication in modal
May 27, 2024
7b61769
Updated application.html.erb
May 27, 2024
20f972e
Merge branch 'new-ui-2023' into new-ui-2023-update-translations
maricavor May 29, 2024
6fd7e6d
Added partial payments to invoices
Jun 6, 2024
ac09ee2
Corrected structure.sql
Jun 6, 2024
96e5e2f
Formatted paid amount for invoice
Jun 6, 2024
2e802fa
Updated state_machine
Jun 6, 2024
fe56779
Merge pull request #1254 from internetee/new-ui-2023-update-translations
vohmar Jun 13, 2024
ba64f15
Merge pull request #1258 from internetee/add_partial_payments
vohmar Jun 13, 2024
ede5876
Fix rubocop
Jun 13, 2024
f6fcef7
Fix rubocop
Jun 13, 2024
7be4e1a
Fix rubocop
Jun 13, 2024
b975433
Fix rubocop
Jun 13, 2024
c95e194
Fix rubocop
Jun 13, 2024
1bb5d4c
Updated codeclimate gem
Jun 13, 2024
1a34ead
Updated github workflow
Jun 13, 2024
b4c1f3c
Fix install wkhtmltopdf
Jun 13, 2024
377ccac
Updated .codeclimate.yml
Jun 13, 2024
50b1fde
Updated rubocop version for codeclimate
Jun 14, 2024
f9f9d44
Corrected invoice payment issues
Jun 14, 2024
f189e90
Added acces denied translation to message
Jun 14, 2024
842bdce
Fixed error message on bulk payment
Jun 14, 2024
da68d87
Corrected invoice.paid_amount to force 0
Jun 14, 2024
1bda12a
removed modal window caching
OlegPhenomenon Jun 19, 2024
552db26
removed rubocop.yml from gitignore
OlegPhenomenon Jun 19, 2024
93a38ae
removed rubocop-thread_safety gem
OlegPhenomenon Jun 19, 2024
945d8b7
init branch
Jun 19, 2024
9ba1722
add translations
Jun 19, 2024
18e2b20
rename english_offers.ee.yml to english_offers.et.yml
Jun 19, 2024
4911009
update translations
Jun 19, 2024
42a5b55
fix more translations
Jun 19, 2024
ac9e4f3
change some more translations
Jun 20, 2024
5e148fa
update translations
Jun 20, 2024
c77b33a
change some translations
Jun 20, 2024
4447e86
add more translation fixes
Jun 20, 2024
7642605
add some more locale/translation changes
Jun 21, 2024
0b1ec1d
more locale changes
Jun 21, 2024
e9e1eaf
new locale approach
Jun 21, 2024
0cbcb6d
fix implementing html tags in locale
Jun 21, 2024
7ff0821
new try
Jun 21, 2024
f95c62c
local changes
Jun 21, 2024
172fed4
last rn
Jun 21, 2024
dc7aa8f
locale changes
Jun 21, 2024
f20abfa
removed rubocop-thread_safety gem
OlegPhenomenon Jun 19, 2024
b124aea
fixed localization of invoice auction name issue
OlegPhenomenon Jun 19, 2024
cd2cfc2
record refunded time
OlegPhenomenon Jun 19, 2024
95dd134
fixed translation issue with deposit invoices
OlegPhenomenon Jun 19, 2024
b8eeb23
refactored-notifications
OlegPhenomenon Jun 20, 2024
16b0d57
fixed refund job, implemented mixin for offer controller methods, ref…
OlegPhenomenon Jun 20, 2024
88f38fb
moved english controlelrs methods to concern
OlegPhenomenon Jun 20, 2024
5881b65
refactored
OlegPhenomenon Jun 20, 2024
a718ce6
fixed bid localize naming, put no value as initial valur for blind offer
OlegPhenomenon Jun 21, 2024
2d38983
fixed test
OlegPhenomenon Jun 21, 2024
01b278f
merged locale translations and clean them
OlegPhenomenon Jun 21, 2024
290039a
fixed test, added parallelize to the tests
OlegPhenomenon Jun 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 25 additions & 4 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,39 @@ prepare:
plugins:
brakeman:
enabled: true
checks:
mass_assign_permit!:
enabled: false
bundler-audit:
enabled: true
duplication:
enabled: true
config:
count_threshold: 3
languages:
- ruby
- javascript
ruby:
mass_threshold: 100
javascript:
mass_threshold: 100
eslint:
enabled: true
channel: eslint-5
fixme:
enabled: true
checks:
TODO:
enabled: false
rubocop:
enabled: true
channel: rubocop-1-12-1
# channel: rubocop-1-56-3
config: .rubocop.yml
checks:
method-lines:
config:
threshold: 40
method-count:
config:
threshold: 25
exclude_patterns:
- "bin/"
- "config/"
Expand All @@ -28,4 +48,5 @@ exclude_patterns:
- "vendor/"
- "test/"
- "karma.conf.js"
- "app/packs/src/semantic/"
- "app/packs/"
- "CHANGELOG.md"
26 changes: 14 additions & 12 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
ruby: [ '3.2.2' ]
os: [ubuntu-22.04]
ruby: [ '3.2', '3.2.2' ]
runs-on: ${{ matrix.os }}
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps:
Expand All @@ -36,14 +36,12 @@ jobs:
bundle config set deployment '[secure]'
bundle env
head -n1 $(which bundle)
- name: Install wkhtmlpdf (push)

- name: Install wkhtmltopdf (push)
run: |
sudo apt-get update
wget http://ppa.launchpad.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_amd64.deb
sudo dpkg -i libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_amd64.deb
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
sudo apt-get install -y gdebi
sudo gdebi --non-interactive wkhtmltox_0.12.6-1.focal_amd64.deb
sudo apt-get install -y xfonts-base xfonts-75dpi
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
if: github.event_name == 'push'

- name: Set ENV for codeclimate (pull_request)
Expand All @@ -66,6 +64,7 @@ jobs:
curl -LSs 'https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64' >./cc-test-reporter;
chmod +x ./cc-test-reporter
./cc-test-reporter before-build

- name: Run Tests
env:
PG_DATABASE: postgres
Expand All @@ -76,6 +75,7 @@ jobs:
RAILS_ENV: test
COVERAGE: true
DISABLE_SPRING: 1
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
cp config/database.yml.sample config/database.yml
cp config/customization.yml.sample config/customization.yml
Expand All @@ -87,17 +87,19 @@ jobs:
- name: Save coverage
run: ./cc-test-reporter format-coverage --output coverage/codeclimate.${{ matrix.ruby }}.json

- uses: actions/upload-artifact@v4.3.1
- uses: actions/upload-artifact@v3.1.3
with:
name: coverage-${{ matrix.ruby }}
path: coverage/codeclimate.${{ matrix.ruby }}.json

upload_coverage:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
os: [ ubuntu-22.04 ]
ruby: [ '3.2.2' ]
runs-on: ubuntu-22.04

env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
CC_TEST_REPORTER_URL: https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
Expand All @@ -111,7 +113,7 @@ jobs:
- name: Give test coverage reporter executable permissions
run: chmod +x cc-test-reporter

- uses: actions/download-artifact@v4.1.4
- uses: actions/download-artifact@v3.0.2
with:
name: coverage-${{ matrix.ruby }}
path: coverage
Expand Down
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@

/public/assets
.byebug_history
.rubocop-ruby.yml
.rubocop.yml

# Test files
/coverage/
Expand All @@ -55,5 +53,9 @@ yarn-debug.log*
/public/assets/builds
public/assets/builds/*
app/assets/builds/*
.DS_Store
/app/assets/builds/*
!/app/assets/builds/.keep1
!/app/assets/builds/.keep

.DS_Store
Dockerfile.dev
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
AllCops:
Exclude:
- 'test/**/*'
- 'config/**/*'
Style/Documentation:
Enabled: false
1 change: 0 additions & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
3.2.2

83 changes: 13 additions & 70 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,78 +1,21 @@
FROM internetee/ruby:3.2.2
FROM internetee/ruby:3.2.2-refactor as base

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update > /dev/null && apt-get install -y --no-install-recommends > /dev/null \
build-essential=* \
imagemagick=* \
curl \
wget \
gnupg2 \
git \
apt-utils \
&& apt-get dist-upgrade -yf\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
RUN sed -i -e 's/# et_EE.UTF-8 UTF-8/et_EE.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=et_EE.UTF-8

ENV LANG et_EE.UTF-8
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc -s | apt-key add -
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN apt-get update > /dev/null && apt-get install -y --no-install-recommends > /dev/null \
postgresql-client-13=* \
libpq-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# add repository for Node.js in the LTS version
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN npm install -g yarn@latest
COPY --link Gemfile Gemfile.lock ./
RUN gem install bundler && bundle install --jobs 20 --retry 5
COPY --link package.json yarn.lock ./
RUN yarn install --frozen-lockfile

RUN apt-get install -y --no-install-recommends > /dev/null \
nodejs=* \
qt5-default=* \
libqt5webkit5-dev=* \
gstreamer1.0-plugins-base=* \
libappindicator3-1=* \
gstreamer1.0-tools=* \
qtdeclarative5-dev=* \
fonts-liberation=* \
gstreamer1.0-x=* \
libasound2=* \
libnspr4=* \
libnss3=* \
libxss1=* \
libxtst6=* \
xdg-utils=* \
qtdeclarative5-dev=* \
fonts-liberation=* \
gstreamer1.0-x=* \
wkhtmltopdf \
libxslt1-dev \
libxml2-dev \
python-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
FROM base

RUN npm install -g yarn@latest
RUN useradd rails
RUN mkdir -p /home/rails && chown rails:rails /home/rails

RUN curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /chrome.deb
RUN dpkg -i /chrome.deb || apt-get update > /dev/null \
&& apt-get install -yf --no-install-recommends > /dev/null && apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN dpkg -i /chrome.deb
RUN rm /chrome.deb
RUN sed -i 's/SECLEVEL=2/SECLEVEL=1/' /etc/ssl/openssl.cnf
USER rails:rails

RUN mkdir -p /opt/webapps/app/tmp/pids
WORKDIR /opt/webapps/app
RUN mkdir -p /opt/webapps/app/tmp/pids

COPY Rakefile Gemfile Gemfile.lock ./
RUN gem install bundler && bundle install --jobs 20 --retry 5
COPY package.json yarn.lock ./
RUN yarn install --check-files
COPY --from=base --chown=rails:rails /usr/local/bundle /usr/local/bundle
COPY --from=base --chown=rails:rails /opt/webapps/app /opt/webapps/app

EXPOSE 3000
47 changes: 20 additions & 27 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,44 @@ gem 'amazing_print'
gem 'bootsnap', '>= 1.1.0', require: false
gem 'cancancan'
gem 'chartkick'
gem 'cssbundling-rails'
gem 'data_migrate'
gem 'delayed_job', '~> 4.1.0'
gem 'delayed_job_active_record'
gem 'devise'
gem 'directo', github: 'internetee/directo', branch: 'master'
gem 'faker'
gem 'faraday'
gem 'freezolite', require: false
gem 'hotwire-rails', '~> 0.1.3'
gem 'jbuilder', '~> 2.11'
gem 'jsbundling-rails'
gem 'jwt'
gem 'lograge'
gem 'mimemagic', '~> 0.4.3'
gem 'money'
gem 'noticed', '~> 1.6'
gem 'okcomputer', '~> 1.18.4'
gem 'omniauth-rails_csrf_protection'
gem 'omniauth-tara', github: 'internetee/omniauth-tara'
gem 'pagy', '~> 6.0'
gem 'pdfkit'
gem 'pg', '>= 0.18', '< 2.0'
gem 'puma', '~> 6.4.2'
gem 'pg_search'
gem 'propshaft'
gem 'rails', '>= 6.0.3.5'
gem 'rails-i18n'
gem 'recaptcha'
gem 'redis', '~> 5.0'
gem 'ruby-openai'
gem 'scenic'
gem 'simpleidn'
gem 'skylight'
gem 'sprockets', '~> 4.0'
gem 'turbo-rails'
gem 'webpacker', '~> 6.0.0.rc.5'
gem 'webpush'
gem 'valvat'

# token
gem 'jwt'
gem 'view_component'
gem 'webpush'

group :development, :test do
gem 'bullet'
Expand All @@ -52,37 +59,23 @@ group :development, :test do
gem "rubocop-packaging"
gem "rubocop-rspec"
gem "rubocop-shopify"
gem "rubocop-thread_safety"
# gem "rubocop-thread_safety"
end

group :development do
gem 'htmlbeautifier'
gem 'i18n-debug'
gem 'letter_opener', '~> 1.8'
gem 'listen', '>= 3.0.5', '< 3.9'
gem 'ruby-lsp-rails'
gem 'web-console', '>= 3.3.0'
end

group :test do
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
gem 'simplecov', '~> 0.10', '< 0.18', require: false
gem 'cuprite'
# gem 'selenium-webdriver'
gem 'simplecov', require: false
gem 'spy'
gem 'webmock'
end

# frontend
gem 'hotwire-rails', '~> 0.1.3'
# Use Redis for Action Cable

# gem 'redis', '~> 5.0'
gem 'redis', '~> 5.0'

# For search
gem 'pg_search'

# For pagination
gem 'pagy', '~> 6.0'

# For mock username
gem 'faker'

gem 'noticed', '~> 1.6'
Loading
Loading