-
-
Notifications
You must be signed in to change notification settings - Fork 873
Upgrade UI #818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade UI #818
Changes from all commits
7a5b699
ca2d087
7cfa314
54f6de1
edddfc9
734113d
0ca5156
a7733b4
85d10bf
6ced902
031461f
918f705
de34fab
2e3328c
da6a1ec
edee7c4
f4ca0cc
86285f4
9352aab
cd385fb
01c4566
6ad4477
fd9e687
6215a2c
f04cb2d
73d42c5
d929e66
8741d1e
3d8bee8
43574a0
271f555
d99b423
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,12 +7,11 @@ ifdef GOTOOLCHAIN | |
| else | ||
| GO_VERSION=$(shell go mod edit -json | jq -r .Toolchain | sed -e 's/go//') | ||
| endif | ||
| DOCKER_BUILD_IMAGE=gotify/build | ||
| DOCKER_BUILD_IMAGE=docker.io/gotify/build | ||
| DOCKER_WORKDIR=/proj | ||
| DOCKER_RUN=docker run --rm -e LD_FLAGS="$$LD_FLAGS" -v "$$PWD/.:${DOCKER_WORKDIR}" -v "`go env GOPATH`/pkg/mod/.:/go/pkg/mod:ro" -w ${DOCKER_WORKDIR} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @eternal-flame-AD Do you have time to give this PR a small manual test? It should work as the e2e tests are successful, but there may be something I overlooked. The UI coloring changed a little because the defaults of the material-ui lib changed.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, will do today or tomorrow! |
||
| DOCKER_GO_BUILD=go build -mod=readonly -a -installsuffix cgo -ldflags "$$LD_FLAGS" | ||
| DOCKER_TEST_LEVEL ?= 0 # Optionally run a test during docker build | ||
| NODE_OPTIONS=$(shell if node --help | grep -q -- "--openssl-legacy-provider"; then echo --openssl-legacy-provider; fi) | ||
|
|
||
| test: test-coverage test-js | ||
| check: check-go check-swagger check-js | ||
|
|
@@ -116,7 +115,7 @@ _build_within_docker: | |
| ${DOCKER_GO_BUILD} -o ${OUTPUT} | ||
|
|
||
| build-js: | ||
| (cd ui && NODE_OPTIONS="${NODE_OPTIONS}" yarn build) | ||
| (cd ui && yarn build) | ||
|
|
||
| build-linux-amd64: | ||
| ${DOCKER_RUN} ${DOCKER_BUILD_IMAGE}:$(GO_VERSION)-linux-amd64 make _build_within_docker OUTPUT=${BUILD_DIR}/gotify-linux-amd64 | ||
|
|
||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // @ts-check | ||
|
|
||
| import eslint from '@eslint/js'; | ||
| import tseslint from 'typescript-eslint'; | ||
|
|
||
| export default tseslint.config(eslint.configs.recommended, tseslint.configs.recommended); |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reconnecting doesn't correctly refresh the currently visible data.
reconnect.webm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how you made this happen, I blocked
/messageand clicked refresh and can get stuck in this state.Probably it's MessagesStore#loadMore needs a
.finally(() => (this.loading = false)), I think it is an old bug bc IIRC I accidentally got it stuck refreshing before too.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a separate problem, I'll fix this too. The one I can reproduce happens after restarting gotify/server. The cause of this bug is that the state is cleared after a reconnect happens (there could be new messages while the websocket was disconnected, so we do a full refresh). This happens here
server/ui/src/reactions.ts
Lines 37 to 45 in 43574a0
server/ui/src/message/Messages.tsx
Lines 30 to 34 in 43574a0
This useEffect isn't reexecuted after the state is cleared by the reaction. On the current master version this is done in a different way that is reexecuted.