Track what needs to be done in-source

This commit is contained in:
Lucien Greathouse 2018-05-26 03:15:39 -07:00
parent 63ea182f94
commit bf6766919e
8 changed files with 15 additions and 4 deletions

View file

@ -8,6 +8,7 @@ local HttpError = require(script.Parent.HttpError)
local ApiContext = {}
ApiContext.__index = ApiContext
-- TODO: Audit cases of errors and create enum values for each of them.
ApiContext.Error = {
ServerIdMismatch = "ServerIdMismatch",
}

View file

@ -13,6 +13,7 @@ local function dprint(...)
end
end
-- TODO: Factor out into separate library, especially error handling
local Http = {}
function Http.get(url)

View file

@ -45,6 +45,8 @@ local function main()
local currentSession
-- TODO: More robust session tracking to handle errors
-- TODO: Icon!
toolbar:CreateButton("Connect", "Connect to Rojo Session", "")
.Click:Connect(function()
checkUpgrade()

View file

@ -11,8 +11,8 @@ function Session.new()
setmetatable(self, Session)
-- TODO: Rewrite all instance tracking logic and implement a real reconciler
local created = {}
created["0"] = game:GetService("ReplicatedFirst")
local api