Commit Graph

51 Commits

Author SHA1 Message Date
Simon Knox f8efaf1bf8 issue note store 2017-11-30 22:44:41 +00:00
Filipa Lacerda 1ab8aeeefd
Moves placeholders components into shared folder with documentation. Makes them easier to reuse in MR and Snippets comments 2017-10-19 10:39:47 +01:00
Phil Hughes fa2af5e0f5
Flash is now a ES6 module
Reduced the technical debt around our JS flash function by making it a
module that is imported rather than relying on the global function.
The global function still exists mainly for technical debt with how
some requests are being completed, but new JS should import the module
directly.

Also reduces some tech debt in the file by removing the need for jQuery.
Instead Flash is now 100% vanilla JS.
2017-10-10 10:14:22 +01:00
Fatih Acet ebf7d52d7c IssueNotesRefactor: Hide note reply form when submitted and show it again if there is an error. 2017-08-23 15:41:07 +03:00
Fatih Acet 0d08ba3dce IssueNotesRefactor: Fix error messages of edit/reply failure for discussions. 2017-08-23 01:10:24 +03:00
Fatih Acet 7e82e45d87 IssueNotesRefactor: Prevent anon user to try to add award. 2017-08-18 19:32:39 +03:00
Fatih Acet 70a322c5da IssueNotesRefactor: Support legacy last edited by case. 2017-08-18 18:52:17 +03:00
Fatih Acet 4e77db3962 IssueNotesRefactor: Fix discussion last updated text. 2017-08-18 18:52:17 +03:00
Fatih Acet 91be957cc9 IssueNotesRefactor: Fix padding bottom of the discussion note header. 2017-08-18 03:27:50 +03:00
Fatih Acet 6c0add67e2 IssueNotesRefactor: Fix bottom padding inconsistency of reply form. 2017-08-18 03:23:05 +03:00
Douwe Maan 99ba5d0d50 Remove view=full_data from NotesController 2017-08-17 18:55:04 +02:00
Filipa Lacerda cf77cdba51 Adds unit tests for discussion component 2017-08-11 19:54:58 +01:00
Filipa Lacerda b96a3d4d60 Fix open discussions
Put back deleted tests
2017-08-11 15:54:56 +01:00
Filipa Lacerda b38e690344 Fix open discussions 2017-08-11 14:56:28 +01:00
Filipa Lacerda 3158fa7e89 [ci skip] Improve code as per code reviews 2017-08-10 12:26:29 +01:00
Sean McGivern 6f5f7e4049 Convert ?full_data=1 -> ?view=full_data 2017-08-07 12:59:34 +01:00
Filipa Lacerda 08b76721f3 Fix eslint 2017-08-04 11:46:55 +01:00
Filipa Lacerda 03436e61e2 Handle autosave reset when form is submitted 2017-08-04 10:53:58 +01:00
Filipa Lacerda 507b15e705 [ci skip] Enable submit button on paste
Reset form after response is submitted
2017-08-04 10:32:38 +01:00
Filipa Lacerda 9e4164d417 Keep the replies when the user leaves the page 2017-08-03 20:00:03 +01:00
Filipa Lacerda 0d78eeb2a8 [ci skip] Fix eslint errors 2017-08-03 12:15:54 +01:00
Filipa Lacerda 20f2987aa1 [ci skip] Fix broken links for signin and register path 2017-08-02 17:19:06 +01:00
Filipa Lacerda 923a062302 [ci skip] Disable slash commands in edit mode 2017-08-02 16:22:38 +01:00
Filipa Lacerda d8ebcb747a [ci skip] Fix toggle discussion 2017-08-02 12:25:14 +01:00
Filipa Lacerda 91481002ac [ci skip] Fix broken discussion reply 2017-08-02 11:57:28 +01:00
Filipa Lacerda 2845dad2af Find last note created by current user through vue instead of querying the DOM 2017-07-28 18:43:19 +01:00
Filipa Lacerda 57b1b8156a [ci skip] use tooltip directive 2017-07-26 17:27:26 +01:00
Filipa Lacerda d2cfd4060f Fix edit text 2017-07-26 16:26:03 +01:00
Filipa Lacerda ffef16690c Use mapActions, mapGetters and mapMutations for components 2017-07-26 12:02:01 +01:00
Filipa Lacerda cf5cc6a9cc Follow vuex docs to divide store into: actions, getters and mutations
Use constants for mutation types as per vuex docs
2017-07-25 20:01:53 +01:00
Fatih Acet c09b5852a9 IssueNotesRefactor: Remove new keyword from Flash calls. 2017-07-21 22:35:26 +03:00
Fatih Acet a2326c8a12 IssueNotesRefactor: kebab-case all Vue data bindings. 2017-07-21 22:35:26 +03:00
Fatih Acet 787616d418 IssueNotesRefactor: Update order of Vue properties to match docs. 2017-07-21 22:35:26 +03:00
Fatih Acet a59f23695b IssueNotesRefactor: camelCase component names. 2017-07-21 22:35:26 +03:00
Fatih Acet 72dfc763b4 IssueNotesRefactor: MR comment fixes. 2017-07-21 22:35:26 +03:00
Fatih Acet aed5632ca4 IssueNotesRefactor: Fix showing placeholders in discussion wrapper. 2017-07-21 22:35:26 +03:00
Fatih Acet eae72cc714 IssueNotesRefactor: Move quick actions logic to Store. 2017-07-21 22:35:26 +03:00
Fatih Acet afece66004 IssueNotesRefactor: Fix anchor of note timestamp. 2017-07-21 22:35:25 +03:00
Fatih Acet 0f098eb60a IssueNotesRefactor: Create signed out widget. 2017-07-21 22:35:25 +03:00
Fatih Acet 91f4906901 IssueNotesRefactor: Implement ESC to cancel note form. 2017-07-21 22:35:25 +03:00
Fatih Acet d24e47a983 IssueDiscussionsRefactor: Do changes after data format change and fix dummy data. 2017-07-21 22:35:25 +03:00
Fatih Acet e57093ff62 IssueNotesRefactor: Implement main note form. 2017-07-21 22:35:25 +03:00
Fatih Acet 092d4ca60c IssueNotesRefactor: Move catch statements into main file to make ESLint happy.
It was happy before I don’t know what broke its heart.
2017-07-21 22:35:25 +03:00
Fatih Acet ff6acdf180 IssueNotesRefactor: Implement discussion reply. 2017-07-21 22:35:25 +03:00
Fatih Acet 905ad9cdd5 IssueNotesRefactor: Implement show/hide of discussion reply form. 2017-07-21 22:35:25 +03:00
Fatih Acet 696de46ace IssueNotesRefactor: Implement note delete. 2017-07-21 22:35:25 +03:00
Fatih Acet 96ede7f731 IssueNotesRefactor: Implement logic for delete action.
No backend request for now. It’s just client side logic.
2017-07-21 22:35:25 +03:00
Fatih Acet 66f4af5c65 IssueNotesRefactor: Refactor toggle to work with delegated handler. 2017-07-21 22:35:25 +03:00
Fatih Acet 7374d2cc9b Add missing button title. 2017-07-21 22:35:24 +03:00
Fatih Acet 57ccfb9a4f Fix some ESLint errors. 2017-07-21 22:35:24 +03:00