-
Notifications
You must be signed in to change notification settings - Fork 133
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
[MM-16229] Implement proper client-side error handling for create/attach Jira issue dialogs #154
[MM-16229] Implement proper client-side error handling for create/attach Jira issue dialogs #154
Conversation
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.
Looks good to me. Thanks Chris! Confirming that the error text color is theme-dependent? From reading the diff file seems like it is
@jasonblais It's the error-text class, so I'm assuming yes. Here's with the default theme: |
That doesn't make sense. it's Electron which is just Chrome. Any explanation for this? This overall seems over complicating what should be simple. Can't we just validate on submit? |
|
|
@crspeller No, they're good questions -- I just hope I'm understanding you.
|
@crspeller I asked basically the same even if semantically different question talking to @cpoile offline, "why don't we do it on the server?" I suppose the answer is, we value displaying these errors in line, enough to have this code. I really welcome this conversation - I'm server-side (and simplicity) biased. I'd say we have a separate conversation about it - input validation philosophy for interactive plugins? And for now merge this PR if it's the only outstanding question? |
|
|
This approach is more consistent with Mattermost modals as far as I know |
@jasonblais Thanks for pointing out those modals. |
What new_channel_modal does:
What we're doing here:
We have to add the components to the map, and remove them, because people can switch projects and new jira_field components are created and destroyed. So we have to keep track of that. I'm totally open to any other solutions. :) (Please!) But I don't think this is overly complicated. I tried a couple solutions before settling on this, but I can't think of any other way to do it when we don't know what fields we have to validate ahead of time. |
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.
Alright we will have to accept this complexity then.
#192) * Revert "Update main.go (#154)" This reverts commit be4a281d0cc791d10e6e5ae917b325b2f054e475. * Revert "[MM-33506] Use embed package to include plugin manifest (#145)" This reverts commit ca9ee3c17c6920a636a33f378e17395afd6f329f. * Revert "Don't generate manifest.ts (#127)" This reverts commit 18d30b50bc7ba800c9f05bfd82970781db0aea3e. * install-go-tools target, adopt gotestsum * bring back make apply + automatic versioning * Update build/manifest/main.go Co-authored-by: Michael Kochell <[email protected]> * suppress git describe error when no tags match * make version/release notes opt-in * fix whitespace in Makefile * document version management options --------- Co-authored-by: Michael Kochell <[email protected]>
* [MM-45] Update plugin with respect to phase 1 upgrades * Sync with playbooks: install-go-tools, gotestsum, and dynamic versions (#192) * Revert "Update main.go (#154)" This reverts commit be4a281d0cc791d10e6e5ae917b325b2f054e475. * Revert "[MM-33506] Use embed package to include plugin manifest (#145)" This reverts commit ca9ee3c17c6920a636a33f378e17395afd6f329f. * Revert "Don't generate manifest.ts (#127)" This reverts commit 18d30b50bc7ba800c9f05bfd82970781db0aea3e. * install-go-tools target, adopt gotestsum * bring back make apply + automatic versioning * Update build/manifest/main.go Co-authored-by: Michael Kochell <[email protected]> * suppress git describe error when no tags match * make version/release notes opt-in * fix whitespace in Makefile * document version management options --------- Co-authored-by: Michael Kochell <[email protected]> * Fetch plugin logs from server (#193) Co-authored-by: Jesse Hallam <[email protected]> --------- Co-authored-by: Mattermost Build <[email protected]> Co-authored-by: Jesse Hallam <[email protected]> Co-authored-by: Michael Kochell <[email protected]> Co-authored-by: Ben Schumacher <[email protected]>
Summary
required
.Unrelated fixes:
Looks like:


Links
MM-16229