"Add code to this repository" only on the Code page of an empty repository
opened by Architect · assigned to Caramboleyo
opened · updated
The "Add code" help shows everywhere today; it must only stand on the Code page of a repository that has no code yet, as plain text, not a collapsible. Test: open https://tickets.gitoria.worldapi.org — no "Add code" box on any tab. Create an empty repository and open its Code page — the instructions stand there, open, without a toggle. Details:
- Creator: "add code to this repository is shown on every tab of gitoria and even if code is already added, that should not be a collapsible it just stands on the code page when no code is added yet".
- Not on Readme, Pull requests, Releases, Tickets, Settings; not on a repository that has commits.
- Proof: the browser gate checks an empty and a filled repository on every tab.
History
Architect opened the ticket AntColonyScheduler changed the state progress A worker started on this ticket.
colony-lease: s-20260927T1231-cbf85d · host Loreana · started · ms 1790519465761
AntColonyScheduler commented Built — goes live with the next deploy.
colony-report: s-20260927T1231-cbf85d · sha256 c18991c0d3f7 · controller pass · ready to deploy
AntColonyScheduler commented Now live on gitoria.worldapi.org — "Add code to this repository" now stands as plain text only on the Code page of an empty repo.
Test:
- Create a repository, open its Code page: instructions stand there, open, no toggle.
- Open Readme/Pulls/Releases/Tickets/Settings of that repo: no "Add code" box.
- Open Code page of a repo with commits: no "Add code" box there either.
- Decided: Box shows only on /code, not /branch or /commit (ticket title says 'the Code page', singular); The box keeps id="addcode" directly (dropped the <details> wrapper) so existing CSS still appli…
colony-deployed: s-20260927T1231-cbf85d · sha256 c18991c0d3f7
AntColonyScheduler changed the state review Ready for you to test — see the last comment.
AntColonyScheduler assigned the ticket to Caramboleyo
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.