Skip to content

Staging - #206

Open
bourgeoa wants to merge 113 commits into
mainfrom
staging
Open

Staging#206
bourgeoa wants to merge 113 commits into
mainfrom
staging

Conversation

@bourgeoa

Copy link
Copy Markdown
Contributor

No description provided.

SharonStrats and others added 27 commits June 4, 2026 14:15
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
remove message twice
prompt: append messagesection once in issue.js
fix(dev): use authn compatibility login flow
Copilot AI lite review requested due to automatic review settings August 20, 2026 17:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the build/output to a new lib/ bundle, factors shared webpack module rules, and introduces CSS-based styling plus improved error handling (including accessible modal dialogs) across the issue pane UI.

Changes:

  • Consolidate webpack module rules into webpack.module.rules.mjs and update dev/prod webpack configs to use them, producing normal + minified UMD bundles in lib/.
  • Replace many inline styles / console usage with CSS classes and centralized debug logging + reusable error UI (errors.js) and modal dialogs (localUtils.js).
  • Update packaging/CI for a staging workflow and prerelease publishing setup (new version, new main, staging branch CI, lib/ ignore, etc.).

Reviewed changes

Copilot reviewed 25 out of 29 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
webpack.module.rules.mjs New shared webpack module.rules (JS/TS, CSS, TTL).
webpack.dev.config.mjs Switch dev webpack config to shared moduleRules.
webpack.config.mjs New production builds (normal + minified) into lib/, copy CSS, add terser/min build.
src/newTracker.js Move button styling to CSS, add alert dialog + debug logging.
src/newTracker.css Add class-based styling for the new tracker button.
src/newIssue.js Add alert dialog + CSS-based layout, add close button and cancel hook.
src/newIssue.css Styles for the new issue form/title input.
src/localUtils.js New accessible modal dialog helper with focus trap and overlay management.
src/localUtils.css Styles for modal overlay/dialog + buttons.
src/issuePane.js Integrate error section, CSS imports, and improved error/log handling across flows.
src/issuePane.css Add issue pane styles for buttons and error section layout.
src/issue.js Refactor overlay visibility to CSS classes; integrate modal + error section + CSS classes.
src/issue.css Add styling for overlay, issue cards, issue panel, and message area.
src/errors.js New reusable error-section renderer (renderErrorSection) and complain helper.
src/errors.css Ensure hidden error sections are actually not displayed (override mashlib CSS).
src/debug.js Centralize console logging behind log/warn/error/trace.
src/csvButton.js Improve CSV copy flow with dialogs and error handling.
src/csvButton.css CSS file for CSV button styling (imported by issue pane).
src/board.js Replace inline styles with CSS classes and import board.css.
src/board.css Add board/table/card styling via classes.
README.md Add dev setup section + note about generative AI annotations.
package.json Switch outputs to lib/, update version/deps, mark CSS as side effects, add engines.
eslint.config.mjs Ignore lib/**.
dev/index.js Make login banner updates more defensive and update login detection logic.
dev/dev-global.css Add extensive local-dev global CSS/variables and accessibility styles.
declarations.d.ts Add TypeScript module declaration for importing .ttl as string.
.gitignore Ignore lib/ build output.
.github/workflows/ci.yml Add staging branch triggers and add upstream dependency update job + permissions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/localUtils.js
Comment on lines +60 to +66
function hideSiblings (hide, dom) {
const siblings = Array.from(dom.body.children).filter(c => c !== modalOverlay)
siblings.forEach(el => {
if (hide) el.setAttribute('aria-hidden', 'true')
else el.removeAttribute('aria-hidden')
})
}
Comment thread src/issue.js
Comment on lines +115 to +117
widgets.button(context.dom, icons.iconBase + 'noun_1180156.svg', 'close', hideOverlay))
button.classList.add('trackerOverlayCloseButton')
delete button.style.backgroundColor // do not want white
Comment thread src/localUtils.js
Comment on lines +40 to +44
const focusable = Array.from(modalOverlay.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(el => !el.hasAttribute('disabled'))
if (focusable.length === 0) return
const idx = focusable.indexOf(dom.activeElement)
if (e.shiftKey) {
if (idx === 0) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants