The gate agent announced our flight would be boarding in a few minutes then a short time later announced the flight was on maintenance and there was no departure time allocated. Then five minutes later the agent announced we were boarding. It's always better when the passenger knows what's going on. If the maintenance was a cleaning issue it should have been noted, for instance. Don't make us feel like yo-yos.