Skip to content

Dev - #20

Merged
sedv8808 merged 3 commits into
mainfrom
dev
Aug 10, 2026
Merged

Dev#20
sedv8808 merged 3 commits into
mainfrom
dev

Conversation

@sedv8808

Copy link
Copy Markdown
Contributor

This pull request modernizes and improves the authentication flow and developer experience for the project. The main changes upgrade the Node.js and Yarn toolchain for CI, fix session validation and expiry logic, and enhance user feedback for login errors. The changes also ensure consistent session state and error reporting in the UI.

CI and Toolchain Modernization:

  • Upgraded the CI workflow to use Node.js 22 and Yarn 4 via Corepack, and adjusted caching and dependency installation to match the new Yarn version and the absence of a committed lockfile. (.github/workflows/main.yml, .yarnrc.yml, package.json) [1] [2] [3]

Authentication and Session Handling Improvements:

  • Refined the logic for validating user sessions, ensuring accurate expiry checks using the session's actual expiry time from the backend, and fixed logic that could prevent fresh logins after a session expires. (src/stores/auth.store.js) (F54360afL24R24, [1] [2] [3]
  • Updated the steward check endpoint and ensured session expiry is kept in sync with the server. (src/stores/auth.store.js)

User Feedback and UI Enhancements:

  • Exposed authentication errors from the store to the OrcidLogin component, reset errors on new login attempts, and displayed human-readable error messages to users when login is refused. (src/views/pagedecorators/headercomponents/OrcidLogin.vue) [1] [2] [3]
  • Added scoped styles for error messages to make them more noticeable in the login UI. (src/views/pagedecorators/headercomponents/OrcidLogin.vue)

Copilot AI lite review requested due to automatic review settings August 10, 2026 23:24
@sedv8808
sedv8808 merged commit e819a43 into main Aug 10, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the repository’s Yarn configuration and GitHub Actions workflow to support a modern Yarn (Berry) + Corepack setup, along with related ignore rules for local Yarn artifacts.

Changes:

  • Add a Yarn Berry config (.yarnrc.yml) to use the node-modules linker.
  • Update .gitignore to ignore Yarn 4 local artifacts (while allowing patches/plugins/releases to be committed if needed).
  • Modernize CI by using Node.js 22, enabling Corepack, adjusting caching, and switching to a Yarn 4-compatible install command.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

File Description
.yarnrc.yml Configures Yarn to use node-modules linker under Yarn 4.
.gitignore Ignores Yarn Berry local artifacts to reduce repo noise.
.github/workflows/main.yml Moves CI to Node 22 + Corepack and updates Yarn install/caching strategy.

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

Comment on lines +38 to +44
# setup-node's built-in `cache: yarn` is not used: it requires a committed
# lockfile, and yarn.lock is gitignored in this repo.
- name: Cache Yarn downloads
uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('package.json') }}
Comment on lines +27 to +31
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22'

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.

2 participants