Skip to content

Commit 847b90f

Browse files
committed
Merge branch 'temp3_for-taruntarun' into for-taruntarun
2 parents 698233c + 6c95105 commit 847b90f

1,684 files changed

Lines changed: 57248 additions & 25664 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2.1
22

33
orbs:
4-
ruby: circleci/ruby@2.5.2
5-
node: circleci/node@7.1.0
4+
ruby: circleci/ruby@2.5.4
5+
node: circleci/node@7.2.0
66

77
executors:
88
default:
@@ -23,7 +23,7 @@ executors:
2323
environment:
2424
POSTGRES_USER: root
2525
POSTGRES_HOST_AUTH_METHOD: trust
26-
- image: cimg/redis:7.4.2
26+
- image: cimg/redis:7.4.5
2727

2828
commands:
2929
install-system-dependencies:
@@ -32,14 +32,14 @@ commands:
3232
name: Install system dependencies
3333
command: |
3434
sudo apt-get update
35-
sudo apt-get install -y libicu-dev libidn11-dev
35+
sudo apt-get install -y libicu-dev libidn11-dev libvips42
3636
prepare-yarn:
3737
steps:
3838
- run:
39-
name: Specification version of yarn to 4.9.0
39+
name: Specification version of yarn to 4.10.3
4040
command: |
4141
sudo corepack enable
42-
sudo COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn set version 4.9.0
42+
sudo COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn set version 4.10.3
4343
install-ruby-dependencies:
4444
parameters:
4545
ruby-version:
@@ -52,7 +52,7 @@ commands:
5252
bundle config without 'development production'
5353
name: Set bundler settings
5454
- ruby/install-deps:
55-
bundler-version: '2.6.7'
55+
bundler-version: '2.7.2'
5656
key: ruby<< parameters.ruby-version >>-gems-v2
5757
wait-db:
5858
steps:
@@ -63,15 +63,15 @@ commands:
6363
jobs:
6464
build:
6565
docker:
66-
- image: cimg/ruby:3.3.5-node
66+
- image: cimg/ruby:3.4.7-node
6767
environment:
6868
RAILS_ENV: test
6969
steps:
7070
- checkout
7171
- install-system-dependencies
7272
- prepare-yarn
7373
- install-ruby-dependencies:
74-
ruby-version: '3.3'
74+
ruby-version: '3.4'
7575
- node/install-packages:
7676
cache-version: v2
7777
pkg-manager: yarn
@@ -129,6 +129,7 @@ workflows:
129129
ruby-version:
130130
- '3.2'
131131
- '3.3'
132+
- '.ruby-version'
132133
name: test-ruby<< matrix.ruby-version >>
133134
requires:
134135
- build

.devcontainer/compose.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99
environment:
1010
RAILS_ENV: development
1111
NODE_ENV: development
12+
VITE_RUBY_HOST: 0.0.0.0
1213
BIND: 0.0.0.0
1314
BOOTSNAP_CACHE_DIR: /tmp
1415
REDIS_HOST: redis
@@ -22,11 +23,12 @@ services:
2223
ES_PORT: '9200'
2324
LIBRE_TRANSLATE_ENDPOINT: http://libretranslate:5000
2425
LOCAL_DOMAIN: ${LOCAL_DOMAIN:-localhost:3000}
26+
VITE_DEV_SERVER_PUBLIC: ${VITE_DEV_SERVER_PUBLIC:-localhost:3036}
2527
# Overrides default command so things don't shut down after the process ends.
2628
command: sleep infinity
2729
ports:
2830
- '3000:3000'
29-
- '3035:3035'
31+
- '3036:3036'
3032
- '4000:4000'
3133
networks:
3234
- external_network

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.gitattributes
66
.gitignore
77
.github
8+
.vscode
89
public/system
910
public/assets
1011
public/packs
@@ -20,6 +21,7 @@ postgres14
2021
redis
2122
elasticsearch
2223
chart
24+
storybook-static
2325
.yarn/
2426
!.yarn/patches
2527
!.yarn/plugins

.env.production.sample

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ ES_PREFIX=mastodon_production
4444
# Make sure to use `bundle exec rails secret` to generate secrets
4545
# -------
4646
SECRET_KEY_BASE=
47-
OTP_SECRET=
4847

4948
# Encryption secrets
5049
# ------------------
@@ -93,9 +92,6 @@ SESSION_RETENTION_PERIOD=31556952
9392

9493
# Fetch All Replies Behavior
9594
# --------------------------
96-
# When a user expands a post (DetailedStatus view), fetch all of its replies
97-
# (default: false)
98-
FETCH_REPLIES_ENABLED=false
9995

10096
# Period to wait between fetching replies (in minutes)
10197
FETCH_REPLIES_COOLDOWN_MINUTES=15
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://joinmastodon.org/funding.json

.github/ISSUE_TEMPLATE/1.web_bug_report.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug Report (Web Interface)
22
description: There is a problem using Mastodon's web interface.
3-
labels: ['status/to triage', 'area/web interface']
3+
labels: ['area/web interface']
44
type: Bug
55
body:
66
- type: markdown
@@ -48,24 +48,24 @@ body:
4848
attributes:
4949
label: Mastodon version
5050
description: |
51-
This is displayed at the bottom of the About page, eg. `v4.4.0-alpha.1`
52-
placeholder: v4.3.0
51+
This is displayed at the bottom of the About page, eg. `v4.4.0-beta.1`
52+
placeholder: v4.4.0-beta.1
5353
validations:
5454
required: true
5555
- type: input
5656
attributes:
5757
label: Browser name and version
5858
description: |
5959
What browser are you using when getting this bug? Please specify the version as well.
60-
placeholder: Firefox 131.0.0
60+
placeholder: Firefox 139.0.0
6161
validations:
6262
required: true
6363
- type: input
6464
attributes:
6565
label: Operating system
6666
description: |
6767
What OS are you running? Please specify the version as well.
68-
placeholder: macOS 15.0.1
68+
placeholder: macOS 15.5
6969
validations:
7070
required: true
7171
- type: textarea

.github/ISSUE_TEMPLATE/2.server_bug_report.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Bug Report (server / API)
22
description: |
33
There is a problem with the HTTP server, REST API, ActivityPub interaction, etc.
4-
labels: ['status/to triage']
54
type: 'Bug'
65
body:
76
- type: markdown
@@ -49,8 +48,8 @@ body:
4948
attributes:
5049
label: Mastodon version
5150
description: |
52-
This is displayed at the bottom of the About page, eg. `v4.4.0-alpha.1`
53-
placeholder: v4.3.0
51+
This is displayed at the bottom of the About page, eg. `v4.4.0-beta.1`
52+
placeholder: v4.4.0-beta.1
5453
validations:
5554
required: false
5655
- type: textarea
@@ -60,7 +59,7 @@ body:
6059
Any additional technical details you may have, like logs or error traces
6160
value: |
6261
If this is happening on your own Mastodon server, please fill out those:
63-
- Ruby version: (from `ruby --version`, eg. v3.4.1)
64-
- Node.js version: (from `node --version`, eg. v20.18.0)
62+
- Ruby version: (from `ruby --version`, eg. v3.4.4)
63+
- Node.js version: (from `node --version`, eg. v22.16.0)
6564
validations:
6665
required: false

.github/ISSUE_TEMPLATE/3.troubleshooting.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ body:
5050
label: Mastodon version
5151
description: |
5252
This is displayed at the bottom of the About page, eg. `v4.4.0-alpha.1`
53-
placeholder: v4.3.0
53+
placeholder: v4.4.0-beta.1
5454
validations:
5555
required: false
5656
- type: textarea
@@ -60,9 +60,9 @@ body:
6060
Details about your environment, like how Mastodon is deployed, if containers are used, version numbers, etc.
6161
value: |
6262
Please at least include those informations:
63-
- Operating system: (eg. Ubuntu 22.04)
64-
- Ruby version: (from `ruby --version`, eg. v3.4.1)
65-
- Node.js version: (from `node --version`, eg. v20.18.0)
63+
- Operating system: (eg. Ubuntu 24.04.2)
64+
- Ruby version: (from `ruby --version`, eg. v3.4.4)
65+
- Node.js version: (from `node --version`, eg. v22.16.0)
6666
validations:
6767
required: false
6868
- type: textarea

.github/renovate.json5

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
':labels(dependencies)',
77
':prConcurrentLimitNone', // Remove limit for open PRs at any time.
88
':prHourlyLimit2', // Rate limit PR creation to a maximum of two per hour.
9+
':enableVulnerabilityAlertsWithLabel(security)',
910
],
1011
rebaseWhen: 'conflicted',
1112
minimumReleaseAge: '3', // Wait 3 days after the package has been published before upgrading it
@@ -23,28 +24,13 @@
2324
matchManagers: ['npm'],
2425
matchPackageNames: [
2526
'tesseract.js', // Requires code changes
26-
'react-hotkeys', // Requires code changes
27-
28-
// Requires Webpacker upgrade or replacement
29-
'@svgr/webpack',
30-
'@types/webpack',
31-
'babel-loader',
32-
'compression-webpack-plugin',
33-
'css-loader',
34-
'imports-loader',
35-
'mini-css-extract-plugin',
36-
'postcss-loader',
37-
'sass-loader',
38-
'terser-webpack-plugin',
39-
'webpack',
40-
'webpack-assets-manifest',
41-
'webpack-bundle-analyzer',
42-
'webpack-dev-server',
43-
'webpack-cli',
4427

4528
// react-router: Requires manual upgrade
4629
'history',
4730
'react-router-dom',
31+
32+
// react-spring: Requires manual upgrade when upgrading react
33+
'@react-spring/web',
4834
],
4935
matchUpdateTypes: ['major'],
5036
dependencyDashboardApproval: true,
@@ -53,7 +39,6 @@
5339
// Require Dependency Dashboard Approval for major version bumps of these Ruby packages
5440
matchManagers: ['bundler'],
5541
matchPackageNames: [
56-
'rack', // Needs to be synced with Rails version
5742
'strong_migrations', // Requires manual upgrade
5843
'sidekiq', // Requires manual upgrade
5944
'sidekiq-unique-jobs', // Requires manual upgrades and sync with Sidekiq version
@@ -109,6 +94,19 @@
10994
matchUpdateTypes: ['patch', 'minor'],
11095
groupName: 'eslint (non-major)',
11196
},
97+
{
98+
// Group all Storybook-related packages in the same PR
99+
matchManagers: ['npm'],
100+
matchPackageNames: [
101+
'chromatic',
102+
'storybook',
103+
'@storybook/*',
104+
'msw',
105+
'msw-storybook-addon',
106+
],
107+
matchUpdateTypes: ['patch', 'minor'],
108+
groupName: 'storybook (non-major)',
109+
},
112110
{
113111
// Group actions/*-artifact in the same PR
114112
matchManagers: ['github-actions'],
@@ -157,6 +155,12 @@
157155
matchUpdateTypes: ['patch', 'minor'],
158156
groupName: 'opentelemetry-ruby (non-major)',
159157
},
158+
{
159+
// Group Playwright Ruby & JS deps in the same PR, as they need to be in sync
160+
matchManagers: ['bundler', 'npm'],
161+
matchPackageNames: ['playwright-ruby-client', 'playwright'],
162+
groupName: 'Playwright',
163+
},
160164
// Add labels depending on package manager
161165
{ matchManagers: ['npm', 'nvm'], addLabels: ['javascript'] },
162166
{ matchManagers: ['bundler', 'ruby-version'], addLabels: ['ruby'] },

.github/workflows/build-releases.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
secrets: inherit
2929

3030
build-image-streaming:
31-
if: startsWith(github.ref, 'refs/tags/v4.3.')
3231
uses: ./.github/workflows/build-container-image.yml
3332
with:
3433
file_to_build: streaming/Dockerfile

0 commit comments

Comments
 (0)