Comments (6)
Thanks a lot. Will start working on it and keep u posted.
from taskcluster.
@mitchhentges This should now be fixed. Thanks again for creating the issue. If you have a similar problem with other views of the new site, feel free to create another issue :)
from taskcluster.
I could disable the "Save Hook" button whenever the hook is unchanged but that would create a second problem:
- User clicks on "Save Hook"
- The button becomes disabled while the request hasn't been fulfilled yet
- Once the hook is saved, the button will remain disabled since there are no new changes. The user is even more confused about whether the hook was saved.
Solution: Send a confirmation (brief message at the bottom of the screen) when the hook is saved and disable the button if no there's no unsaved changes.
from taskcluster.
I think a confirmation would be useful, but I don't think that it's super necessary: I've seen other applications disable a save button immediately upon it being clicked. The only concern would be if I click it, it becomes disabled, and I close the tab/the backend fails but I don't realize that the save didn't complete.
Also, if you leave the button un-disabled until the request finishes, then you have the following hypothetical issue:
- User clicks on "Save Hook"
- Backend is running slow today, it's taking time (> 1s) to save hook
- User hasn't received any feedback that clicking the button has done anything. They click it again (maybe multiple times)
- Multiple requests are made to save the hook, increasing load
- After some time, all the requests finish, and the user is spammed with
$n
confirmations that the hook was saved
Perhaps a good compromise would be:
- User clicks on "Save Hook"
- Button disabled
- Upon the server responding, a confirmation is shown (success/fail)
(To super bikeshed, you could change the "Save Hook" button's icon to a loading icon on-click, then put it back to normal once the server responds - showing a notification on-fail - but that's a little tougher 😛 )
from taskcluster.
Hi, I would like to this one up.
@helfi92 could you please guide me how to go about with this one?
from taskcluster.
Hi @akshithashetty. Here's what is needed to do:
-
Disable the save icon button when a hook is unchanged. You can use the
equals
method from the ramda package to compare both hooks object. You can import the function viaimport { equals } from 'ramda'
. -
Use the snackbar component we have in
src/component/Snackbar
to show a confirmation box when the save action is successful. You can also refer to ourstyleguide
for the props definitions.
Note: In order to save a hook, you will need to be successfully logged in. Instructions on logging in can be found in https://github.com/taskcluster/taskcluster-web#web-server.
Hope that helps.
from taskcluster.
Related Issues (20)
- Intermittent interactive test task hang
- d2g: `maxRunTime` needs to be accounted for before padding for artifact uploads HOT 1
- Rename simple engine to do-not-use engine HOT 3
- multiuser engine doesn't have graphics access on macOS HOT 1
- Expired artifacts should ideally be acknowledged as having existed. HOT 1
- redirect after creating a new hook in ui doesn't url encode properly
- Upgrade graphql to 16.8
- d2g: add support for task.payload.capabilities.disableSeccomp
- can't build generic worker after golang1.22 upgrade HOT 6
- non-utf8 output in interactive tasks causes them to abort HOT 3
- docker worker interactive tasks do not work properly curses applications HOT 4
- Intermittent failure: websocktunnel: TestExponentialBackoffFailure HOT 2
- Intermittent github check "Google Cloud Build / taskcluster (taskcluster-dev)" HOT 6
- Upgrade graphql websocket subscriptions
- Github integration should support "approve workflow" option
- d2g: docker-worker artifacts without an expires property are translated to generic-worker artifact with expires 0001-01-01T00:00:00.000Z
- d2g: payload.capabilities.devices.hostSharedMemory requires --privileged under podman
- E2E UI tests
- D2G: Xvfb issue with a docker-worker task
- Worker Manager google cloud provider: worker group is region but zone would be more useful
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taskcluster.