Skip to content

Fix NFC assignment sync link selection - #23

Merged
Muawiya-contact merged 1 commit into
mainfrom
fix-nfc-assignment-link-selector
Nov 15, 2026
Merged

Muawiya-contact merged 1 commit into
mainfrom
fix-nfc-assignment-link-selector

Conversation

@Muawiya-contact

Copy link
Copy Markdown
Member

What changed

NFC CMS assignment rows contain two relevant-looking links: a file download and the assignment page. Maya now examines every row link and accepts only a same-site canonical assignment URL of the form /student/assignments/<id>. This avoids Playwright strict-mode failures and prevents attachment links or external URLs from being treated as assignment destinations.

Why this matters

The live VM check exposed this exact failure after Vault credentials and read-only NFC sync were enabled. Before this fix, Maya could log in successfully but stopped while reading rows that had both links.

Validation

  • browser-use --doctor
  • node --import tsx --test tests/*.test.mjs — 152 passing
  • npm run typecheck
  • npm run lint
  • Live pre-fix VM check reproduced the strict-selector failure; Vault access itself was verified without printing either credential.

Scope

This PR fixes deadline/assignment discovery only. It does not upload, submit, replace, or alter an NFC CMS assignment. The broader upload feature remains tracked separately in #17.

Fixes #22

@netlify

netlify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for maya-assistant ready!

Name Link
🔨 Latest commit 4e574b7
🔍 Latest deploy log https://app.netlify.com/projects/maya-assistant/deploys/6af9834bacf61628cd0171a0
😎 Deploy Preview https://deploy-preview-23--maya-assistant.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T10:02:51.504737Z
We couldn’t complete this review. Comment @codex review to try again.
4e574b7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Muawiya-contact Muawiya-contact left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok

@Muawiya-contact
Muawiya-contact merged commit 5eb2ee0 into main Nov 15, 2026
6 checks passed
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.

Fix NFC assignment sync when rows include attachment links

1 participant