Skip to content

Commit d0799b8

Browse files
authored
Merge from docusealco/wip
2 parents 1f48be1 + 889fcad commit d0799b8

39 files changed

+1073
-111
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Install Ruby
1212
uses: ruby/setup-ruby@v1
1313
with:
14-
ruby-version: 3.4.1
14+
ruby-version: 3.4.2
1515
- name: Cache gems
1616
uses: actions/cache@v4
1717
with:
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install Ruby
3636
uses: ruby/setup-ruby@v1
3737
with:
38-
ruby-version: 3.4.1
38+
ruby-version: 3.4.2
3939
- name: Cache gems
4040
uses: actions/cache@v4
4141
with:
@@ -85,7 +85,7 @@ jobs:
8585
- name: Install Ruby
8686
uses: ruby/setup-ruby@v1
8787
with:
88-
ruby-version: 3.4.1
88+
ruby-version: 3.4.2
8989
- name: Cache gems
9090
uses: actions/cache@v4
9191
with:
@@ -127,7 +127,7 @@ jobs:
127127
- name: Install Ruby
128128
uses: ruby/setup-ruby@v1
129129
with:
130-
ruby-version: 3.4.1
130+
ruby-version: 3.4.2
131131
- name: Set up Node
132132
uses: actions/setup-node@v1
133133
with:

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM ruby:3.4.1-alpine AS fonts
1+
FROM ruby:3.4.2-alpine AS fonts
22

33
WORKDIR /fonts
44

55
RUN apk --no-cache add fontforge wget && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Regular.ttf && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Bold.ttf && wget https://github.com/impallari/DancingScript/raw/master/fonts/DancingScript-Regular.otf && wget https://cdn.jsdelivr.net/gh/notofonts/notofonts.github.io/fonts/NotoSansSymbols2/hinted/ttf/NotoSansSymbols2-Regular.ttf && wget https://github.com/Maxattax97/gnu-freefont/raw/master/ttf/FreeSans.ttf && wget https://github.com/impallari/DancingScript/raw/master/OFL.txt
66

77
RUN fontforge -lang=py -c 'font1 = fontforge.open("FreeSans.ttf"); font2 = fontforge.open("NotoSansSymbols2-Regular.ttf"); font1.mergeFonts(font2); font1.generate("FreeSans.ttf")'
88

9-
FROM ruby:3.4.1-alpine AS webpack
9+
FROM ruby:3.4.2-alpine AS webpack
1010

1111
ENV RAILS_ENV=production
1212
ENV NODE_ENV=production
@@ -32,7 +32,7 @@ COPY ./app/views ./app/views
3232

3333
RUN echo "gem 'shakapacker'" > Gemfile && ./bin/shakapacker
3434

35-
FROM ruby:3.4.1-alpine AS app
35+
FROM ruby:3.4.2-alpine AS app
3636

3737
ENV RAILS_ENV=production
3838
ENV BUNDLE_WITHOUT="development:test"

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source 'https://rubygems.org'
44

5-
ruby '3.4.1'
5+
ruby '3.4.2'
66

77
gem 'arabic-letter-connector', require: 'arabic-letter-connector/logic'
88
gem 'aws-sdk-s3', require: false

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ DEPENDENCIES
652652
webmock
653653

654654
RUBY VERSION
655-
ruby 3.4.1p0
655+
ruby 3.4.2p28
656656

657657
BUNDLED WITH
658658
2.5.3

app/controllers/api/submissions_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ def index
1717
submissions = submissions.joins(template: :folder).where(folder: { name: params[:template_folder] })
1818
end
1919

20+
if params.key?(:archived)
21+
submissions = params[:archived].in?(['true', true]) ? submissions.archived : submissions.active
22+
end
23+
2024
submissions = Submissions::Filter.call(submissions, current_user, params)
2125

2226
submissions = paginate(submissions.preload(:created_by_user, :submitters,

app/controllers/user_configs_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ class UserConfigsController < ApplicationController
55
authorize_resource :user_config
66

77
ALLOWED_KEYS = [
8-
UserConfig::RECEIVE_COMPLETED_EMAIL
8+
UserConfig::RECEIVE_COMPLETED_EMAIL,
9+
UserConfig::SHOW_APP_TOUR
910
].freeze
1011

1112
InvalidKey = Class.new(StandardError)
@@ -28,6 +29,7 @@ def load_user_config
2829
def user_config_params
2930
params.required(:user_config).permit(:key, :value, { value: {} }, { value: [] }).tap do |attrs|
3031
attrs[:value] = attrs[:value] == '1' if attrs[:value].in?(%w[1 0])
32+
attrs[:value] = attrs[:value] == 'true' if attrs[:value].in?(%w[true false])
3133
end
3234
end
3335
end

app/javascript/application.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import CheckboxGroup from './elements/checkbox_group'
3232
import MaskedInput from './elements/masked_input'
3333
import SetDateButton from './elements/set_date_button'
3434
import IndeterminateCheckbox from './elements/indeterminate_checkbox'
35+
import AppTour from './elements/app_tour'
3536

3637
import * as TurboInstantClick from './lib/turbo_instant_click'
3738

@@ -99,6 +100,7 @@ safeRegisterElement('checkbox-group', CheckboxGroup)
99100
safeRegisterElement('masked-input', MaskedInput)
100101
safeRegisterElement('set-date-button', SetDateButton)
101102
safeRegisterElement('indeterminate-checkbox', IndeterminateCheckbox)
103+
safeRegisterElement('app-tour', AppTour)
102104

103105
safeRegisterElement('template-builder', class extends HTMLElement {
104106
connectedCallback () {
@@ -124,7 +126,8 @@ safeRegisterElement('template-builder', class extends HTMLElement {
124126
withSignYourselfButton: this.dataset.withSignYourselfButton !== 'false',
125127
withConditions: this.dataset.withConditions === 'true',
126128
currencies: (this.dataset.currencies || '').split(',').filter(Boolean),
127-
acceptFileTypes: this.dataset.acceptFileTypes
129+
acceptFileTypes: this.dataset.acceptFileTypes,
130+
showTourStartForm: this.dataset.showTourStartForm === 'true'
128131
})
129132

130133
this.component = this.app.mount(this.appElem)

0 commit comments

Comments
 (0)