Skip to content

Commit 46e1619

Browse files
committed
Add netlify debug and fix review errors
1 parent 42cdbef commit 46e1619

File tree

5 files changed

+10
-49
lines changed

5 files changed

+10
-49
lines changed

netlify/edge-functions/replace-social-content.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ async function replaceSocialContent(
261261
try {
262262
content = await getContent(request.url);
263263
} catch (ex) {
264+
console.error("SIMON DEBUG", request.url);
264265
console.error(ex);
265266
content = DefaultSocialContent;
266267
}

review/suppressed/NoUnused.Modules.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{ "count": 1, "filePath": "elm-stuff/gitdeps/github.com/unisonweb/ui-core/src/Code/Browser.elm" },
77
{ "count": 1, "filePath": "elm-stuff/gitdeps/github.com/unisonweb/ui-core/src/Code/DefinitionDetailTooltip.elm" },
88
{ "count": 1, "filePath": "elm-stuff/gitdeps/github.com/unisonweb/ui-core/src/Code/Workspace.elm" },
9+
{ "count": 1, "filePath": "elm-stuff/gitdeps/github.com/unisonweb/ui-core/src/Lib/Milliseconds.elm" },
910
{ "count": 1, "filePath": "elm-stuff/gitdeps/github.com/unisonweb/ui-core/src/Lib/Paginated.elm" },
1011
{ "count": 1, "filePath": "elm-stuff/gitdeps/github.com/unisonweb/ui-core/src/Lib/ProdDebug.elm" },
1112
{ "count": 1, "filePath": "elm-stuff/gitdeps/github.com/unisonweb/ui-core/src/Lib/ScrollEvent.elm" },

src/UnisonShare/Check.elm

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ checkIdFromUrl =
8787
|> Parser.andThen parseMaybe
8888

8989

90-
title : Check -> String
91-
title check =
92-
""
93-
94-
95-
9690
-- DECODE
9791

9892

src/UnisonShare/Page/ProjectContributionChecksPage.elm

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,29 @@
11
module UnisonShare.Page.ProjectContributionChecksPage exposing (..)
22

33
import Code.BranchRef as BranchRef
4-
import Code.Definition.Reference exposing (Reference)
5-
import Code.DefinitionSummaryTooltip as DefinitionSummaryTooltip
6-
import Code.FullyQualifiedName as FQN
74
import Code.Hash as Hash
8-
import Code.Perspective as Perspective
9-
import Code.ProjectDependency as ProjectDependency
10-
import Code.Syntax as Syntax
11-
import Code.Syntax.SyntaxConfig as SyntaxConfig
12-
import Code.Version as Version
13-
import Html exposing (Html, br, code, div, h2, header, label, p, pre, span, strong, text)
14-
import Html.Attributes exposing (class, id, style)
15-
import Http
16-
import Json.Decode as Decode
17-
import Lib.HttpApi as HttpApi exposing (HttpResult)
5+
import Html exposing (Html, div, header, pre, text)
6+
import Html.Attributes exposing (class)
187
import Lib.UserHandle as UserHandle
198
import Lib.Util as Util
20-
import List.Nonempty as NEL
219
import RemoteData exposing (RemoteData(..), WebData)
2210
import Set exposing (Set)
2311
import Set.Extra as SetE
24-
import String.Extra exposing (pluralize)
2512
import Time
2613
import UI
27-
import UI.Button as Button
2814
import UI.Card as Card
29-
import UI.Click as Click
3015
import UI.DateTime as DateTime exposing (DateTime)
3116
import UI.Divider as Divider
3217
import UI.FoldToggle as FoldToggle
33-
import UI.Icon as Icon exposing (Icon)
3418
import UI.PageContent as PageContent exposing (PageContent)
35-
import UI.Placeholder as Placeholder
36-
import UI.StatusBanner as StatusBanner
3719
import UI.StatusIndicator as StatusIndicator
38-
import UI.TabList as TabList
39-
import UI.Tooltip as Tooltip
40-
import UnisonShare.Account as Account
41-
import UnisonShare.Api as ShareApi
42-
import UnisonShare.AppContext as AppContext exposing (AppContext)
43-
import UnisonShare.BranchDiff as BranchDiff exposing (BranchDiff)
44-
import UnisonShare.BranchDiff.ChangeLine as ChangeLine exposing (ChangeLine)
45-
import UnisonShare.BranchDiff.ChangeLineId as ChangeLineId exposing (ChangeLineId)
46-
import UnisonShare.BranchDiff.DefinitionType as DefinitionType exposing (DefinitionType)
47-
import UnisonShare.BranchDiff.LibDep as LibDep exposing (LibDep)
48-
import UnisonShare.BranchDiff.ToggledChangeLines as ToggledChangeLines exposing (ToggledChangeLines)
49-
import UnisonShare.BranchDiffState as BranchDiffState exposing (BranchDiffState)
50-
import UnisonShare.Check as Check exposing (Check, CheckId, CheckStatus)
20+
import UnisonShare.AppContext exposing (AppContext)
21+
import UnisonShare.Check as Check exposing (Check, CheckId)
5122
import UnisonShare.Contribution exposing (ContributionDetails)
5223
import UnisonShare.Contribution.ContributionRef exposing (ContributionRef)
53-
import UnisonShare.DefinitionDiff as DefinitionDiff
54-
import UnisonShare.DefinitionDiffCard as DefinitionDiffCard
55-
import UnisonShare.Link as Link
5624
import UnisonShare.Page.ProjectContributionPageHelpers as ProjectContributionPageHelpers exposing (tabs)
5725
import UnisonShare.Project exposing (ProjectDetails)
58-
import UnisonShare.Project.ProjectRef as ProjectRef exposing (ProjectRef)
59-
import UnisonShare.Route as Route
60-
import UnisonShare.Session as Session
26+
import UnisonShare.Project.ProjectRef exposing (ProjectRef)
6127
import Url
6228

6329

@@ -77,7 +43,7 @@ type alias Model =
7743

7844

7945
init : AppContext -> ProjectRef -> ContributionRef -> Maybe CheckId -> ( Model, Cmd Msg )
80-
init appContext projectRef contribRef checkId =
46+
init appContext projectRef contribRef _ =
8147
( { checks = Loading
8248
, folds = Set.empty
8349
}
@@ -96,7 +62,7 @@ type Msg
9662

9763

9864
update : AppContext -> ProjectRef -> ContributionRef -> Msg -> Model -> ( Model, Cmd Msg )
99-
update appContext projectRef contribRef msg model =
65+
update _ _ _ msg model =
10066
case msg of
10167
FetchChecksFinished checks ->
10268
( { model | checks = checks }, Cmd.none )
@@ -117,7 +83,7 @@ update appContext projectRef contribRef msg model =
11783

11884

11985
fetchChecks : AppContext -> ProjectRef -> ContributionRef -> Cmd Msg
120-
fetchChecks appContext projectRef contribRef =
86+
fetchChecks _ projectRef _ =
12187
let
12288
baseTime =
12389
Time.millisToPosix 1701619200000

src/UnisonShare/Page/ProjectContributionPageHelpers.elm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module UnisonShare.Page.ProjectContributionPageHelpers exposing (..)
22

33
import Html exposing (..)
4-
import UI
54
import UI.DateTime as DateTime
65
import UI.TabList as TabList
76
import UnisonShare.Contribution as Contribution exposing (ContributionDetails)

0 commit comments

Comments
 (0)