Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
f25fe61
ui
sakithb Aug 18, 2025
0066ef6
add bottom margin
sakithb Aug 18, 2025
2cd9e88
endpoint + tests
sakithb Aug 19, 2025
c0e63e8
fix failing test
sakithb Aug 19, 2025
dec9451
wip
sakithb Aug 30, 2025
e55d1a2
use switch
sakithb Sep 1, 2025
b0625ef
Remove Name input. We will use the name given in the feed
sakithb Sep 3, 2025
2d61d8a
fetch feed within http request
sakithb Sep 3, 2025
27b800c
Use MapRequestPayload
sakithb Sep 3, 2025
0afeab4
use hds modal footer
sakithb Sep 3, 2025
71fd414
wip
sakithb Sep 3, 2025
aaec74f
add serializer package
sakithb Sep 3, 2025
d2475aa
Merge branch 'main' into issue/38
supun-io Sep 5, 2025
0c9b0aa
minor fixes
supun-io Sep 5, 2025
7ccff63
wip
sakithb Sep 8, 2025
45f2e95
move inspection to createPublication
sakithb Sep 10, 2025
362293c
error handling
sakithb Sep 10, 2025
c91dc6a
ui
sakithb Aug 18, 2025
482a4bd
add bottom margin
sakithb Aug 18, 2025
6ca1f21
endpoint + tests
sakithb Aug 19, 2025
82633e2
fix failing test
sakithb Aug 19, 2025
fa059b3
wip
sakithb Aug 30, 2025
d83796f
use switch
sakithb Sep 1, 2025
ba8c053
wip
sakithb Sep 3, 2025
dcff3f2
add serializer package
sakithb Sep 3, 2025
8055d6e
use AuthInterface
sakithb Sep 10, 2025
1d267eb
remove security bundle
sakithb Sep 12, 2025
f3a594a
Merge branch 'main' into issue/40
supun-io Sep 24, 2025
96d9c53
Merge remote-tracking branch 'origin/issue/40' into issue/40
Nadil-K Sep 25, 2025
9241771
minor fixes
Nadil-K Sep 25, 2025
00f5f88
remove duplicate modals
Nadil-K Sep 25, 2025
ace225f
Merge branch 'issue/38' into issue/40
Nadil-K Sep 25, 2025
ab1856e
Merge pull request #43 from hyvor/issue/40
Nadil-K Sep 25, 2025
3e7bf90
merge fix
Nadil-K Sep 25, 2025
b51ea01
minor fix
Nadil-K Sep 25, 2025
a07eab4
backend fixes
Nadil-K Sep 25, 2025
989e290
no title / ui fix
Nadil-K Sep 25, 2025
b9a174b
add test for POST /collections
sakithb Sep 29, 2025
0f7069f
move API calls to actions files / use toast.error()
sakithb Sep 29, 2025
7e13ea2
fix tests for AddPublicationTest
sakithb Sep 29, 2025
91f5e28
add back .env
sakithb Sep 29, 2025
e459072
add back .env
sakithb Sep 29, 2025
eb68c6a
wip
sakithb Sep 12, 2025
46ae75a
make article view responsive
sakithb Sep 18, 2025
6691a72
changed mobile layout
sakithb Sep 23, 2025
13ddef6
mobile improvements
sakithb Sep 30, 2025
3f2ebc7
rebased issue/38
sakithb Sep 30, 2025
8065989
docker final build
sakithb Oct 2, 2025
e79e07b
wip
sakithb Oct 4, 2025
dc98fde
add .env.dev
sakithb Oct 4, 2025
ee0f9de
add monolog
sakithb Oct 4, 2025
d4cca81
add LOG_LEVEL
sakithb Oct 8, 2025
fdbeb1d
DB url in .env.test
sakithb Oct 9, 2025
fcc7b6c
fix tests
sakithb Oct 9, 2025
2efcc72
fix phpstan errors
sakithb Oct 11, 2025
a9b0373
update ci files
sakithb Oct 11, 2025
fc827a6
update phpstan ci job
sakithb Oct 11, 2025
daf3502
fix frontend checks
sakithb Oct 11, 2025
e0e45b4
setup oidc
sakithb Oct 14, 2025
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: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Run PHPStan
run: |
docker run backend-dev \
docker run -e APP_ENV=dev backend-dev \
sh -c "bin/console cache:warmup && ./vendor/bin/phpstan analyse --memory-limit=1G --ansi"

phpunit:
Expand All @@ -61,5 +61,6 @@ jobs:
--network ci \
-e APP_ENV=test \
backend-dev sh -c "
php bin/console doctrine:database:create --if-not-exists &&
php bin/console doctrine:migrations:migrate --no-interaction &&
./vendor/bin/phpunit"
19 changes: 17 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,20 @@ COPY meta/image/dev/run.dev /app/run
CMD ["sh", "/app/run"]

###################################################
# FROM backend-base AS final
# TODO
FROM backend-base AS final

ENV APP_ENV=prod \
APP_DEBUG=0

COPY backend /app/backend

RUN composer install --no-interaction --no-dev --optimize-autoloader --classmap-authoritative --no-scripts

COPY --from=frontend-prod /app/frontend/build /app/static

COPY meta/image/prod/Caddyfile.prod /etc/caddy/Caddyfile
COPY meta/image/prod/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY meta/image/prod/run.prod /app/run

EXPOSE 80
CMD ["sh", "/app/run"]
14 changes: 7 additions & 7 deletions backend/.env
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
APP_ENV=

###> symfony/framework-bundle ###
APP_SECRET=634272ac4a9ace811b9fe1ab649d2176
APP_SECRET=
###< symfony/framework-bundle ###

DATABASE_URL="postgresql://postgres:postgres@hyvor-service-pgsql:5432/hyvor_reader?serverVersion=16&charset=utf8"
HYVOR_FAKE=1
DATABASE_URL=

###> symfony/messenger ###
MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
MESSENGER_TRANSPORT_DSN=
###< symfony/messenger ###

###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=flock
LOCK_DSN=
###< symfony/lock ###

LOG_LEVEL=
13 changes: 9 additions & 4 deletions backend/.env.dev
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
APP_ENV=dev

###> symfony/framework-bundle ###
APP_SECRET=634272ac4a9ace811b9fe1ab649d2176
###< symfony/framework-bundle ###
APP_SECRET=Qgg+kph9o0lULpebas4C9xa+tvoNC5b94rCjRf/5gAY=

DATABASE_URL="postgresql://postgres:postgres@hyvor-service-pgsql:5432/hyvor_reader?serverVersion=16&charset=utf8"
HYVOR_FAKE=1
HYVOR_FAKE=1

MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0

LOCK_DSN=flock

LOG_LEVEL=debug
5 changes: 4 additions & 1 deletion backend/.env.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
APP_SECRET=Qgg+kph9o0lULpebas4C9xa+tvoNC5b94rCjRf/5gAY=

DATABASE_URL="postgresql://postgres:postgres@hyvor-service-pgsql:5432/hyvor_reader?serverVersion=16&charset=utf8"
LOCK_DSN=flock
17 changes: 9 additions & 8 deletions backend/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
"doctrine/doctrine-bundle": "^2.15",
"doctrine/doctrine-migrations-bundle": "^3.4.2",
"doctrine/orm": "^3.5.0",
"nesbot/carbon": "^3.10.1",
"hyvor/internal": "^3.1.4",
"nesbot/carbon": "^3.10.1",
"phpdocumentor/reflection-docblock": "^5.6",
"phpstan/phpdoc-parser": "^2.3",
"runtime/frankenphp-symfony": "^0.2.0",
"symfony/console": "7.3.*",
"symfony/doctrine-messenger": "7.3.*",
Expand All @@ -24,8 +26,12 @@
"symfony/http-client": "7.3.*",
"symfony/lock": "7.3.*",
"symfony/messenger": "7.3.*",
"symfony/monolog-bundle": "^3.10",
"symfony/property-access": "7.3.*",
"symfony/property-info": "7.3.*",
"symfony/runtime": "7.3.*",
"symfony/scheduler": "7.3.*",
"symfony/serializer": "7.3.*",
"symfony/uid": "7.3.*",
"symfony/yaml": "7.3.*"
},
Expand Down Expand Up @@ -62,13 +68,7 @@
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
}
},
"conflict": {
"symfony/symfony": "*"
Expand All @@ -82,6 +82,7 @@
"require-dev": {
"dama/doctrine-test-bundle": "^8.3",
"phpstan/phpstan": "^2.1.17",
"phpstan/phpstan-doctrine": "^2.0",
"phpunit/phpunit": "^10.0",
"symfony/browser-kit": "7.3.*",
"symfony/css-selector": "7.3.*",
Expand Down
Loading