Skip to content
Merged

Dev #2043

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c052bea
debugging create route error
ahjyrkia Dec 16, 2025
a6593a7
Merge pull request #2036 from HSLdevcom/70948-create-route-error
ahjyrkia Dec 16, 2025
f519cd5
lint fixes
ahjyrkia Dec 17, 2025
30d97ab
Merge pull request #2037 from HSLdevcom/70948-create-route-error
ahjyrkia Dec 17, 2025
ff9bd2f
debug
ahjyrkia Dec 17, 2025
6660f2a
Merge pull request #2038 from HSLdevcom/70948-create-route-error
ahjyrkia Dec 17, 2025
fbf9c5d
dependency updates and refactor
ahjyrkia Mar 9, 2026
1ffd417
added workflow trigger for dev pr
ahjyrkia Mar 9, 2026
f6e20c2
formatting and fixes
ahjyrkia Mar 9, 2026
976da54
Merge pull request #2039 from HSLdevcom/71190-dependency-upgrades
ahjyrkia Mar 11, 2026
fe162e8
build fix
ahjyrkia Mar 15, 2026
e9c287a
Merge pull request #2040 from HSLdevcom/71190-dependency-upgrades
ahjyrkia Mar 15, 2026
62d2bdf
manifest url fix, build on pr
ahjyrkia Mar 15, 2026
805e62d
nodelayer fix
ahjyrkia Mar 15, 2026
d2275b6
debug searchStore
ahjyrkia Mar 16, 2026
4108e4a
logging
ahjyrkia Mar 16, 2026
f044b64
more logging
ahjyrkia Mar 16, 2026
a48cdd8
more debug
ahjyrkia Mar 16, 2026
d1f13a9
searchStore constructor update
ahjyrkia Mar 16, 2026
36c015e
testing store changes
ahjyrkia Mar 16, 2026
f47bc00
debugs
ahjyrkia Mar 16, 2026
b049e17
searchresults fix
ahjyrkia Mar 16, 2026
2540072
testing more mobx changes
ahjyrkia Mar 16, 2026
45ad9e4
revert changes
ahjyrkia Mar 16, 2026
806fa3e
removed logs
ahjyrkia Mar 17, 2026
6e858e6
Merge pull request #2041 from HSLdevcom/71190-dependency-upgrades
ahjyrkia Mar 17, 2026
a5e5533
editNodeLayer fix
ahjyrkia Mar 19, 2026
34aed4c
Merge pull request #2042 from HSLdevcom/71190-dependency-upgrades
ahjyrkia Mar 24, 2026
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
5 changes: 3 additions & 2 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- develop
pull_request:
branches:
- develop

jobs:
deploy-dev:
Expand All @@ -13,8 +16,6 @@ jobs:
id: date
run: echo "::set-output name=date::$(TZ='Europe/Helsinki' date +'%d.%m.%Y_%H:%M')"
- uses: actions/checkout@v4
with:
ref: develop
- name: Build UI and publish Docker image
uses: elgohr/Publish-Docker-Github-Action@v5
with:
Expand Down
19 changes: 6 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
FROM node:12.16.1-alpine AS builder
FROM node:20-alpine AS builder

ENV WORK=/opt/joremapui

RUN mkdir -p ${WORK}
WORKDIR ${WORK}

# Install app dependencies
COPY yarn.lock package.json .yarnrc ${WORK}
RUN yarn
COPY package.json yarn.lock .yarnrc ./
RUN yarn install --frozen-lockfile

COPY . ${WORK}
COPY . .

ARG APP_ENVIRONMENT
ENV ENVIRONMENT=${APP_ENVIRONMENT}
Expand All @@ -30,14 +27,10 @@ RUN yarn build
FROM node:20-alpine AS server

ENV WORK=/opt/joremapui

# Create app directory
RUN mkdir -p ${WORK}
WORKDIR ${WORK}

# Install serve
RUN yarn global add serve@^14.2.3

COPY --from=builder /opt/joremapui/build build/
COPY --from=builder /opt/joremapui/build ./build

CMD ["serve", "-s", "-l", "5000", "build/"]
CMD ["serve", "-s", "-l", "5000", "build"]
152 changes: 48 additions & 104 deletions config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@ const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const getClientEnvironment = require('./env');
const paths = require('./paths');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');

// Webpack uses `publicPath` to determine where the app is being served from.
// In development, we always serve from the root. This makes config easier.
Expand All @@ -27,6 +22,7 @@ const env = getClientEnvironment(publicUrl);
// It is focused on developer experience and fast rebuilds.
// The production configuration is different and lives in a separate file.
module.exports = {
mode: 'development',
// You may want 'eval' instead if you prefer to see the compiled output in DevTools.
// See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.
devtool: 'cheap-module-source-map',
Expand All @@ -36,17 +32,8 @@ module.exports = {
entry: [
// We ship a few polyfills by default:
require.resolve('./polyfills'),
// Include an alternative client for WebpackDevServer. A client's job is to
// connect to WebpackDevServer by a socket and get notified about changes.
// When you save a file, the client will either apply hot updates (in case
// of CSS changes), or refresh the page (in case of JS changes). When you
// make a syntax error, this client will display a syntax error overlay.
// Note: instead of the default WebpackDevServer client, we use a custom one
// to bring better experience for Create React App users. You can replace
// the line below with these two lines if you prefer the stock client:
// require.resolve('webpack-dev-server/client') + '?/',
// require.resolve('webpack/hot/dev-server'),
require.resolve('react-dev-utils/webpackHotDevClient'),
require.resolve('webpack-dev-server/client') + '?/',
require.resolve('webpack/hot/dev-server'),
// Finally, this is your app's code:
paths.appIndexJs
// We include the app code last so that if there is a runtime error during
Expand All @@ -69,20 +56,9 @@ module.exports = {
path.resolve(info.absoluteResourcePath).replace(/\\/g, '/')
},
resolve: {
// This allows you to set a fallback for where Webpack should look for modules.
// We placed these paths second because we want `node_modules` to "win"
// if there are any conflicts. This matches Node resolution mechanism.
// https://github.com/facebookincubator/create-react-app/issues/253
modules: ['node_modules', paths.appNodeModules].concat(
// It is guaranteed to exist because we tweak it in `env.js`
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
),
// These are the reasonable defaults supported by the Node ecosystem.
// We also include JSX as a common component filename extension to support
// some tools, although we do not recommend using it, see:
// https://github.com/facebookincubator/create-react-app/issues/290
// `web` extension prefixes have been added for better support
// for React Native Web.
extensions: [
'.mjs',
'.web.ts',
Expand All @@ -96,27 +72,26 @@ module.exports = {
'.jsx'
],
alias: {
// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web'
},
plugins: [
// Prevents users from importing files from outside of src/ (or node_modules/).
// This often causes confusion because we only process files within src/ with babel.
// To fix this, we prevent you from importing files out of src/ -- if you'd like to,
// please link the files into your node_modules/ and let module-resolution kick in.
// Make sure your source files are compiled, as they will not be processed in any way.
new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]),
new TsconfigPathsPlugin({ configFile: paths.appTsConfig })
]
tsconfig: paths.appTsConfig,
fallback: {
dgram: false,
fs: false,
net: false,
tls: false,
child_process: false,
},
},
module: {
strictExportPresence: true,
rules: [
// TODO: Disable require.ensure as it's not a standard language feature.
// We are waiting for https://github.com/facebookincubator/create-react-app/issues/2176.
// { parser: { requireEnsure: false } },

{
test: /\.m?js$/,
resolve: {
fullySpecified: false,
},
},
{
test: /\.(js|jsx|mjs)$/,
loader: require.resolve('source-map-loader'),
Expand Down Expand Up @@ -166,60 +141,49 @@ module.exports = {
{
test: /\.scss$/,
use: [
'style-loader', // creates style nodes from JS strings
require.resolve('style-loader'),
{
loader: require.resolve('typings-for-css-modules-loader'),
loader: require.resolve('css-loader'),
options: {
modules: true,
url: false,
importLoaders: 1,
esModule: true,
modules: {
namedExport: true,
exportLocalsConvention: 'camelCaseOnly',
localIdentName: '[local]-[hash:base64:4]',
camelCase: true,
importLoaders: 1
}
},
},
},
{
loader: 'sass-loader',
loader: require.resolve('sass-loader'),
options: {
// Prefer `dart-sass`
implementation: require('sass')
}
} // compiles Sass to CSS, using Dart Sass
]
implementation: require('sass'),
},
},
],
},
// "postcss" loader applies autoprefixer to our CSS.
// "css" loader resolves paths in CSS and adds assets as dependencies.
// "style" loader turns CSS into JS modules that inject <style> tags.
// In production, we use a plugin to extract that CSS to a file, but
// in development "style" loader enables hot editing of CSS.
{
test: /\.css$/,
use: [
require.resolve('style-loader'),
{
loader: require.resolve('css-loader'),
options: {
url: false,
importLoaders: 1
}
},
{
loader: require.resolve('postcss-loader'),
options: {
// Necessary for external CSS imports to work
// https://github.com/facebookincubator/create-react-app/issues/2677
ident: 'postcss',
plugins: () => [
require('postcss-flexbugs-fixes'),
autoprefixer({
browsers: [
'>1%',
'last 4 versions',
'Firefox ESR',
'not ie < 9' // React doesn't support IE8 anyway
],
flexbox: 'no-2009'
})
]
}
loader: require.resolve('postcss-loader'),
options: {
postcssOptions: {
plugins: [
require('postcss-flexbugs-fixes'),
autoprefixer(),
],
},
},
}
]
},
Expand All @@ -246,55 +210,35 @@ module.exports = {
]
},
plugins: [
// Makes some environment variables available in index.html.
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
// In development, this will be an empty string.
new InterpolateHtmlPlugin(env.raw),
// Generates an `index.html` file with the <script> injected.
new HtmlWebpackPlugin({
inject: true,
template: paths.appHtml
}),
// Add module names to factory functions so they appear in browser profiler.
new webpack.NamedModulesPlugin(),
// Makes some environment variables available to the JS code, for example:
// if (process.env.NODE_ENV === 'development') { ... }. See `./env.js`.
new webpack.DefinePlugin(env.stringified),
// This is necessary to emit hot updates (currently CSS only):
new webpack.HotModuleReplacementPlugin(),
// Watcher doesn't work well if you mistype casing in a path so we use
// a plugin that prints an error when you attempt to do this.
// See https://github.com/facebookincubator/create-react-app/issues/240
new CaseSensitivePathsPlugin(),
// If you require a missing module and then `npm install` it, you still have
// to restart the development server for Webpack to discover it. This plugin
// makes the discovery automatic so you don't have to restart.
// See https://github.com/facebookincubator/create-react-app/issues/186
new WatchMissingNodeModulesPlugin(paths.appNodeModules),
// Moment.js is an extremely popular library that bundles large locale files
// by default due to how Webpack interprets its code. This is a practical
// solution that requires the user to opt into importing specific locales.
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
// You can remove this if you don't use Moment.js:
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
// Perform type checking and linting in a separate process to speed up compilation
new ForkTsCheckerWebpackPlugin({
/*new ForkTsCheckerWebpackPlugin({
async: true,
watch: paths.appSrc,
tsconfig: paths.appTsConfig,
tslint: paths.appTsLint
})
//tslint: paths.appTsLint
})*/
],
// Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works.
node: {
dgram: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty'
},
// Turn off performance hints during development because we don't do any
// splitting or minification in interest of speed. These warnings become
// cumbersome.
Expand Down
Loading
Loading