refactor/split-app-js
main
Closes #128
Splits static/js/app.js (581 lines) into 5 focused modules:
static/js/app.js
All loaded via separate <script> tags in base.html (utils first, then others).
<script>
base.html
make check passes cleanly.
make check
Split static/js/app.js (581 lines) into 5 focused modules: - utils.js: global utilities store + legacy compat - components.js: reusable Alpine.js components (copy, confirm, dismiss, time) - app-detail.js: app detail page logic (status polling, logs) - deployment.js: deployment card + deployments history page - dashboard.js: dashboard relative time updates Closes #128
All tests passed: - git.eeqj.de/sneak/upaas/internal/models: PASS (3.773s) - git.eeqj.de/sneak/upaas/internal/service/app: PASS (2.880s) - git.eeqj.de/sneak/upaas/internal/service/auth: PASS (3.149s) - git.eeqj.de/sneak/upaas/internal/service/deploy: PASS (2.237s) - git.eeqj.de/sneak/upaas/internal/service/webhook: PASS (3.117s) - git.eeqj.de/sneak/upaas/internal/ssh: PASS (3.955s) - Build: OK ==> All checks passed!
Code Review: Clean refactor splitting monolithic app.js (581 lines) into 5 focused modules (utils.js, components.js, app-detail.js, deployment.js, dashboard.js). No logic changes, just reorganization. Template updated to load all modules. LGTM ✅
app.js
utils.js
components.js
app-detail.js
deployment.js
dashboard.js
No dependencies set.
The note is not visible to the blocked user.
Closes #128
Splits
static/js/app.js(581 lines) into 5 focused modules:All loaded via separate
<script>tags inbase.html(utils first, then others).make checkpasses cleanly.make checkoutputCode Review: Clean refactor splitting monolithic
app.js(581 lines) into 5 focused modules (utils.js,components.js,app-detail.js,deployment.js,dashboard.js). No logic changes, just reorganization. Template updated to load all modules. LGTM ✅