Commit Graph

90 Commits

Author SHA1 Message Date
Simone Gotti 9187efc9c9 user/project: show run/task tabelement only when loaded 2019-07-13 00:22:56 +02:00
Simone Gotti 3ff8a1350b runs: add loading spinner 2019-07-13 00:22:56 +02:00
Simone Gotti 4baabd6365 settings: show secrets 2019-07-13 00:22:55 +02:00
Simone Gotti 239f7ee516 vars: update displaying
Change some columns sizes
Show also tags/refs
2019-07-13 00:22:55 +02:00
Simone Gotti 42f7ce7eaa rundetail: rework item presentation
* Add duration and finish time
* Move type (branch/tag/PR) to the left
2019-07-13 00:22:54 +02:00
Simone Gotti aad3358498 user: load run on component creation 2019-07-13 00:21:53 +02:00
Simone Gotti c3950fbdd6 project: don't change "Runs" tab element on hover 2019-07-13 00:21:53 +02:00
Simone Gotti 5f86a7a776 runs: rework runs list item presentation
* Add duration and finish time
* Move type (branch/tag/PR) to the left
* Move commit message below run name
* Add run number
2019-07-13 00:21:52 +02:00
Simone Gotti 83755c8a78 runs: show all branches/tags/PRs runs, not only last run
Do like "All runs" just filtered by branches/tags/PRs.

In future reintroduce a way to show only last N runs per type and additional
filtering
2019-07-05 16:20:18 +02:00
Simone Gotti 7c80b875f8 register/login: show only remotesources with register/login enabled 2019-07-05 13:49:16 +02:00
Simone Gotti 43e860d3c5 auth/data: avoid setting global errors when receiving a 401
If we do a router.push to the login view the previous component will receive
anyway the error and set the global error after the login view is mounted (!!!)
and so the main app will show the global error instead of the login view.

Not sure how to avoid this. As a really ugly workaround just return an empty
response on 401 so the components (since they are currently assumong the
response is always define) will throw an exception and not set the global error.
2019-07-05 13:41:43 +02:00
Simone Gotti fbed07059e *: rename user local run to user direct run 2019-06-11 12:06:06 +02:00
Simone Gotti 932e2346dd runs: use ref_type in place of event_type 2019-06-10 17:48:58 +02:00
Simone Gotti ae520b1d0c register: remove unneeded div 2019-06-07 11:06:44 +02:00
Simone Gotti 0680d9a9f9 log: make logs don't wrap and add overflow auto 2019-06-06 16:13:51 +02:00
Simone Gotti 6996917ff2 run/task: show live timer 2019-05-27 10:38:05 +02:00
Simone Gotti bcc00a3543 runs: use local error alert and not global alert
In this way it'll continuw polling the backend and restore when the error
condition ends.
2019-05-23 23:37:52 +02:00
Simone Gotti a5bd93ead4 fetch: return exception message
instead of returning the exception object
2019-05-23 23:37:11 +02:00
Simone Gotti 972da7d7d3 user: move user settings to navbar user dropdown 2019-05-23 14:09:08 +02:00
Simone Gotti 453299f5c7 task: add missing properties to rundetails 2019-05-21 18:11:02 +02:00
Simone Gotti fd24f02780 run: unify run status and classes logic 2019-05-21 18:05:34 +02:00
Simone Gotti 26d5247846 createproject: improve remote repos selection
Use a select to choose the remote source and fetch remote repos only for that
remote source
2019-05-21 17:43:15 +02:00
Simone Gotti 5b13083861 *: move settings to dropdown menu
and show them in the tab bar only when active
2019-05-21 14:55:43 +02:00
Simone Gotti 2891b62b6c *: move to tailwind css
I really like it!

TODO: Extract more components
2019-05-21 12:13:21 +02:00
Simone Gotti e47c3b977c register: move api to data/auth.js and handle errors 2019-05-21 11:06:38 +02:00
Simone Gotti 6d0899681c projectsettings: add update project repo linked account 2019-05-19 17:34:53 +02:00
Simone Gotti 449096c0a3 logs: handle line feed and always use streaming
remove the use of http server sent events, just use the streaming api

handle line feeds by rewriting the current line. This isn't perfect since it
won't handle subtle cases where the colors are change between lines but will
work in all standard cases

Now commands that writes a progess will work correctly without adding a new line
every time and users will see the progress in realtime.
2019-05-19 14:17:12 +02:00
Simone Gotti da8e3b9b5c up log stream 2019-05-18 14:13:16 +02:00
Simone Gotti 5aa383f23a usersettings: add new linked account setup 2019-05-17 23:45:20 +02:00
Simone Gotti 4862c6103e update runs.vue to be consistent with other components for user runs
Don't use the "username" property but just the ownername when projectref is
undefined like all the other components already do.
2019-05-17 17:28:11 +02:00
Simone Gotti a3918d9672 rundetail: show new restarted run 2019-05-17 17:22:11 +02:00
Simone Gotti 3232d6db45 *: add click away detection for dropdowns 2019-05-17 17:00:46 +02:00
Simone Gotti e25510e026 auth: update api auth endpoints 2019-05-16 10:04:33 +02:00
Simone Gotti 969cdb5182 createproject: keep only remote source with related linked account 2019-05-16 00:35:11 +02:00
Simone Gotti f85243acfe rundetail: handle api errors 2019-05-15 14:59:52 +02:00
Simone Gotti 336869fe73 rundetail: set run phase to cancelled on cancelRun call 2019-05-15 14:55:00 +02:00
Simone Gotti 0a47d7ecf7 rundetail: disable stop button if already stopping 2019-05-15 14:50:08 +02:00
Simone Gotti b10a7f18e1 rundetails: add run cancel button 2019-05-15 14:44:35 +02:00
Simone Gotti 74cd268431 router: handle /run path
/run will accept two query parameters: projectref and runid and generate the
final run path. This is useful for calls from commit statuses target_url so we
don't have to provide a web api path the could change in the future.
2019-05-15 11:21:18 +02:00
Simone Gotti dfd16f99b8 projectgroupsettings: implement update project group 2019-05-14 18:05:17 +02:00
Simone Gotti b45e0014cc *: show root project group settings 2019-05-14 15:47:35 +02:00
Simone Gotti 7e4346001d projbreadcrumbs: remove unused method 2019-05-14 15:43:28 +02:00
Simone Gotti 4a7baaab02 project(group)create: add private checkbox 2019-05-14 14:24:40 +02:00
Simone Gotti 5d6f6b8290 runs: add fetch more button and related logic 2019-05-14 14:04:36 +02:00
Simone Gotti 7f90c73650 org: add basic org members display 2019-05-14 13:18:09 +02:00
Simone Gotti 8bce9328ab collapse: open/close only when clicking on header 2019-05-14 10:46:52 +02:00
Simone Gotti e783958100 createprojectgroup: add loading indicator and enabled to button 2019-05-14 00:19:58 +02:00
Simone Gotti b3c22f8429 createproject: add loading indicator and enabled to button 2019-05-13 23:48:44 +02:00
Simone Gotti 923219ca65 *: implement new organization
Add dropdown in the main navbar with an option to create a new organization.
Implement new organization component and related route
2019-05-13 23:44:02 +02:00
Simone Gotti fbf3d7da88 navbar: make user drop down open on click 2019-05-13 23:27:53 +02:00